Class CacheNetworkSettings


  • public final class CacheNetworkSettings
    extends Object
    Cache network settings.
    • Constructor Detail

      • CacheNetworkSettings

        public CacheNetworkSettings()
    • Method Detail

      • mtu

        public Integer mtu()
        Get the mtu property: The IPv4 maximum transmission unit configured for the subnet.
        Returns:
        the mtu value.
      • withMtu

        public CacheNetworkSettings withMtu​(Integer mtu)
        Set the mtu property: The IPv4 maximum transmission unit configured for the subnet.
        Parameters:
        mtu - the mtu value to set.
        Returns:
        the CacheNetworkSettings object itself.
      • utilityAddresses

        public List<String> utilityAddresses()
        Get the utilityAddresses property: Array of additional IP addresses used by this Cache.
        Returns:
        the utilityAddresses value.
      • dnsServers

        public List<String> dnsServers()
        Get the dnsServers property: DNS servers for the cache to use. It will be set from the network configuration if no value is provided.
        Returns:
        the dnsServers value.
      • withDnsServers

        public CacheNetworkSettings withDnsServers​(List<String> dnsServers)
        Set the dnsServers property: DNS servers for the cache to use. It will be set from the network configuration if no value is provided.
        Parameters:
        dnsServers - the dnsServers value to set.
        Returns:
        the CacheNetworkSettings object itself.
      • dnsSearchDomain

        public String dnsSearchDomain()
        Get the dnsSearchDomain property: DNS search domain.
        Returns:
        the dnsSearchDomain value.
      • withDnsSearchDomain

        public CacheNetworkSettings withDnsSearchDomain​(String dnsSearchDomain)
        Set the dnsSearchDomain property: DNS search domain.
        Parameters:
        dnsSearchDomain - the dnsSearchDomain value to set.
        Returns:
        the CacheNetworkSettings object itself.
      • ntpServer

        public String ntpServer()
        Get the ntpServer property: NTP server IP Address or FQDN for the cache to use. The default is time.windows.com.
        Returns:
        the ntpServer value.
      • withNtpServer

        public CacheNetworkSettings withNtpServer​(String ntpServer)
        Set the ntpServer property: NTP server IP Address or FQDN for the cache to use. The default is time.windows.com.
        Parameters:
        ntpServer - the ntpServer value to set.
        Returns:
        the CacheNetworkSettings object itself.
      • validate

        public void validate()
        Validates the instance.
        Throws:
        IllegalArgumentException - thrown if the instance is not valid.