public final class DnsConfiguration extends Object
| Constructor and Description |
|---|
DnsConfiguration() |
| Modifier and Type | Method and Description |
|---|---|
List<String> |
nameServers()
Get the nameServers property: The DNS servers for the container group.
|
String |
options()
Get the options property: The DNS options for the container group.
|
String |
searchDomains()
Get the searchDomains property: The DNS search domains for hostname lookup in the container group.
|
void |
validate()
Validates the instance.
|
DnsConfiguration |
withNameServers(List<String> nameServers)
Set the nameServers property: The DNS servers for the container group.
|
DnsConfiguration |
withOptions(String options)
Set the options property: The DNS options for the container group.
|
DnsConfiguration |
withSearchDomains(String searchDomains)
Set the searchDomains property: The DNS search domains for hostname lookup in the container group.
|
public List<String> nameServers()
public DnsConfiguration withNameServers(List<String> nameServers)
nameServers - the nameServers value to set.public String searchDomains()
public DnsConfiguration withSearchDomains(String searchDomains)
searchDomains - the searchDomains value to set.public String options()
public DnsConfiguration withOptions(String options)
options - the options value to set.public void validate()
IllegalArgumentException - thrown if the instance is not valid.Copyright © 2021 Microsoft Corporation. All rights reserved.