Class DnsConfiguration
- java.lang.Object
-
- com.azure.resourcemanager.containerinstance.models.DnsConfiguration
-
public final class DnsConfiguration extends Object
DNS configuration for the container group.
-
-
Constructor Summary
Constructors Constructor Description DnsConfiguration()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<String>nameServers()Get the nameServers property: The DNS servers for the container group.Stringoptions()Get the options property: The DNS options for the container group.StringsearchDomains()Get the searchDomains property: The DNS search domains for hostname lookup in the container group.voidvalidate()Validates the instance.DnsConfigurationwithNameServers(List<String> nameServers)Set the nameServers property: The DNS servers for the container group.DnsConfigurationwithOptions(String options)Set the options property: The DNS options for the container group.DnsConfigurationwithSearchDomains(String searchDomains)Set the searchDomains property: The DNS search domains for hostname lookup in the container group.
-
-
-
Method Detail
-
nameServers
public List<String> nameServers()
Get the nameServers property: The DNS servers for the container group.- Returns:
- the nameServers value.
-
withNameServers
public DnsConfiguration withNameServers(List<String> nameServers)
Set the nameServers property: The DNS servers for the container group.- Parameters:
nameServers- the nameServers value to set.- Returns:
- the DnsConfiguration object itself.
-
searchDomains
public String searchDomains()
Get the searchDomains property: The DNS search domains for hostname lookup in the container group.- Returns:
- the searchDomains value.
-
withSearchDomains
public DnsConfiguration withSearchDomains(String searchDomains)
Set the searchDomains property: The DNS search domains for hostname lookup in the container group.- Parameters:
searchDomains- the searchDomains value to set.- Returns:
- the DnsConfiguration object itself.
-
options
public String options()
Get the options property: The DNS options for the container group.- Returns:
- the options value.
-
withOptions
public DnsConfiguration withOptions(String options)
Set the options property: The DNS options for the container group.- Parameters:
options- the options value to set.- Returns:
- the DnsConfiguration object itself.
-
validate
public void validate()
Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
-