DnsConfiguration Class
- java.
lang. Object - com.
azure. resourcemanager. containerinstance. models. DnsConfiguration
- com.
Implements
public final class DnsConfiguration
implements JsonSerializable<DnsConfiguration>
DNS configuration for the container group.
Constructor Summary
Constructor | Description |
---|---|
DnsConfiguration() |
Creates an instance of Dns |
Method Summary
Modifier and Type | Method and Description |
---|---|
static
Dns |
fromJson(JsonReader jsonReader)
Reads an instance of Dns |
List<String> |
nameServers()
Get the name |
String |
options()
Get the options property: The DNS options for the container group. |
String |
searchDomains()
Get the search |
Json |
toJson(JsonWriter jsonWriter) |
void |
validate()
Validates the instance. |
Dns |
withNameServers(List<String> nameServers)
Set the name |
Dns |
withOptions(String options)
Set the options property: The DNS options for the container group. |
Dns |
withSearchDomains(String searchDomains)
Set the search |
Methods inherited from java.lang.Object
Constructor Details
DnsConfiguration
public DnsConfiguration()
Creates an instance of DnsConfiguration class.
Method Details
fromJson
public static DnsConfiguration fromJson(JsonReader jsonReader)
Reads an instance of DnsConfiguration from the JsonReader.
Parameters:
Returns:
Throws:
nameServers
public List
Get the nameServers property: The DNS servers for the container group.
Returns:
options
public String options()
Get the options property: The DNS options for the container group.
Returns:
searchDomains
public String searchDomains()
Get the searchDomains property: The DNS search domains for hostname lookup in the container group.
Returns:
toJson
validate
public void validate()
Validates the instance.
withNameServers
public DnsConfiguration withNameServers(List
Set the nameServers property: The DNS servers for the container group.
Parameters:
Returns:
withOptions
public DnsConfiguration withOptions(String options)
Set the options property: The DNS options for the container group.
Parameters:
Returns:
withSearchDomains
public DnsConfiguration withSearchDomains(String searchDomains)
Set the searchDomains property: The DNS search domains for hostname lookup in the container group.
Parameters:
Returns:
Applies to
Azure SDK for Java