Class CacheNetworkSettings
java.lang.Object
com.azure.resourcemanager.storagecache.models.CacheNetworkSettings
Cache network settings.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGet the dnsSearchDomain property: DNS search domain.Get the dnsServers property: DNS servers for the cache to use.mtu()
Get the mtu property: The IPv4 maximum transmission unit configured for the subnet.Get the ntpServer property: NTP server IP Address or FQDN for the cache to use.Get the utilityAddresses property: Array of additional IP addresses used by this Cache.void
validate()
Validates the instance.withDnsSearchDomain
(String dnsSearchDomain) Set the dnsSearchDomain property: DNS search domain.withDnsServers
(List<String> dnsServers) Set the dnsServers property: DNS servers for the cache to use.Set the mtu property: The IPv4 maximum transmission unit configured for the subnet.withNtpServer
(String ntpServer) Set the ntpServer property: NTP server IP Address or FQDN for the cache to use.
-
Constructor Details
-
CacheNetworkSettings
public CacheNetworkSettings()
-
-
Method Details
-
mtu
Get the mtu property: The IPv4 maximum transmission unit configured for the subnet.- Returns:
- the mtu value.
-
withMtu
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
Get the utilityAddresses property: Array of additional IP addresses used by this Cache.- Returns:
- the utilityAddresses value.
-
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
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
Get the dnsSearchDomain property: DNS search domain.- Returns:
- the dnsSearchDomain value.
-
withDnsSearchDomain
Set the dnsSearchDomain property: DNS search domain.- Parameters:
dnsSearchDomain
- the dnsSearchDomain value to set.- Returns:
- the CacheNetworkSettings object itself.
-
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
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.
-