Freigeben über


DnsConfiguration Class

  • java.lang.Object
    • com.azure.resourcemanager.containerinstance.models.DnsConfiguration

Implements

public final class DnsConfiguration
implements JsonSerializable<DnsConfiguration>

DNS configuration for the container group.

Constructor Summary

Constructor Description
DnsConfiguration()

Creates an instance of DnsConfiguration class.

Method Summary

Modifier and Type Method and Description
static DnsConfiguration fromJson(JsonReader jsonReader)

Reads an instance of DnsConfiguration from the JsonReader.

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.

JsonWriter toJson(JsonWriter jsonWriter)
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.

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:

jsonReader - The JsonReader being read.

Returns:

An instance of DnsConfiguration if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If the deserialized JSON object was missing any required properties.

nameServers

public List nameServers()

Get the nameServers property: The DNS servers for the container group.

Returns:

the nameServers value.

options

public String options()

Get the options property: The DNS options for the container group.

Returns:

the options value.

searchDomains

public String searchDomains()

Get the searchDomains property: The DNS search domains for hostname lookup in the container group.

Returns:

the searchDomains value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withNameServers

public DnsConfiguration withNameServers(List nameServers)

Set the nameServers property: The DNS servers for the container group.

Parameters:

nameServers - the nameServers value to set.

Returns:

the DnsConfiguration object itself.

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.

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.

Applies to