Share via


WorkloadNetworkDnsZoneProperties Class

  • java.lang.Object
    • com.azure.resourcemanager.avs.fluent.models.WorkloadNetworkDnsZoneProperties

Implements

public final class WorkloadNetworkDnsZoneProperties
implements JsonSerializable<WorkloadNetworkDnsZoneProperties>

NSX DNS Zone Properties.

Constructor Summary

Constructor Description
WorkloadNetworkDnsZoneProperties()

Creates an instance of WorkloadNetworkDnsZoneProperties class.

Method Summary

Modifier and Type Method and Description
String displayName()

Get the displayName property: Display name of the DNS Zone.

List<String> dnsServerIps()

Get the dnsServerIps property: DNS Server IP array of the DNS Zone.

Long dnsServices()

Get the dnsServices property: Number of DNS Services using the DNS zone.

List<String> domain()

Get the domain property: Domain names of the DNS Zone.

static WorkloadNetworkDnsZoneProperties fromJson(JsonReader jsonReader)

Reads an instance of WorkloadNetworkDnsZoneProperties from the JsonReader.

WorkloadNetworkDnsZoneProvisioningState provisioningState()

Get the provisioningState property: The provisioning state.

Long revision()

Get the revision property: NSX revision number.

String sourceIp()

Get the sourceIp property: Source IP of the DNS Zone.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

WorkloadNetworkDnsZoneProperties withDisplayName(String displayName)

Set the displayName property: Display name of the DNS Zone.

WorkloadNetworkDnsZoneProperties withDnsServerIps(List<String> dnsServerIps)

Set the dnsServerIps property: DNS Server IP array of the DNS Zone.

WorkloadNetworkDnsZoneProperties withDnsServices(Long dnsServices)

Set the dnsServices property: Number of DNS Services using the DNS zone.

WorkloadNetworkDnsZoneProperties withDomain(List<String> domain)

Set the domain property: Domain names of the DNS Zone.

WorkloadNetworkDnsZoneProperties withRevision(Long revision)

Set the revision property: NSX revision number.

WorkloadNetworkDnsZoneProperties withSourceIp(String sourceIp)

Set the sourceIp property: Source IP of the DNS Zone.

Methods inherited from java.lang.Object

Constructor Details

WorkloadNetworkDnsZoneProperties

public WorkloadNetworkDnsZoneProperties()

Creates an instance of WorkloadNetworkDnsZoneProperties class.

Method Details

displayName

public String displayName()

Get the displayName property: Display name of the DNS Zone.

Returns:

the displayName value.

dnsServerIps

public List<String> dnsServerIps()

Get the dnsServerIps property: DNS Server IP array of the DNS Zone.

Returns:

the dnsServerIps value.

dnsServices

public Long dnsServices()

Get the dnsServices property: Number of DNS Services using the DNS zone.

Returns:

the dnsServices value.

domain

public List<String> domain()

Get the domain property: Domain names of the DNS Zone.

Returns:

the domain value.

fromJson

public static WorkloadNetworkDnsZoneProperties fromJson(JsonReader jsonReader)

Reads an instance of WorkloadNetworkDnsZoneProperties from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

Throws:

IOException

- If an error occurs while reading the WorkloadNetworkDnsZoneProperties.

provisioningState

public WorkloadNetworkDnsZoneProvisioningState provisioningState()

Get the provisioningState property: The provisioning state.

Returns:

the provisioningState value.

revision

public Long revision()

Get the revision property: NSX revision number.

Returns:

the revision value.

sourceIp

public String sourceIp()

Get the sourceIp property: Source IP of the DNS Zone.

Returns:

the sourceIp value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withDisplayName

public WorkloadNetworkDnsZoneProperties withDisplayName(String displayName)

Set the displayName property: Display name of the DNS Zone.

Parameters:

displayName - the displayName value to set.

Returns:

the WorkloadNetworkDnsZoneProperties object itself.

withDnsServerIps

public WorkloadNetworkDnsZoneProperties withDnsServerIps(List<String> dnsServerIps)

Set the dnsServerIps property: DNS Server IP array of the DNS Zone.

Parameters:

dnsServerIps - the dnsServerIps value to set.

Returns:

the WorkloadNetworkDnsZoneProperties object itself.

withDnsServices

public WorkloadNetworkDnsZoneProperties withDnsServices(Long dnsServices)

Set the dnsServices property: Number of DNS Services using the DNS zone.

Parameters:

dnsServices - the dnsServices value to set.

Returns:

the WorkloadNetworkDnsZoneProperties object itself.

withDomain

public WorkloadNetworkDnsZoneProperties withDomain(List<String> domain)

Set the domain property: Domain names of the DNS Zone.

Parameters:

domain - the domain value to set.

Returns:

the WorkloadNetworkDnsZoneProperties object itself.

withRevision

public WorkloadNetworkDnsZoneProperties withRevision(Long revision)

Set the revision property: NSX revision number.

Parameters:

revision - the revision value to set.

Returns:

the WorkloadNetworkDnsZoneProperties object itself.

withSourceIp

public WorkloadNetworkDnsZoneProperties withSourceIp(String sourceIp)

Set the sourceIp property: Source IP of the DNS Zone.

Parameters:

sourceIp - the sourceIp value to set.

Returns:

the WorkloadNetworkDnsZoneProperties object itself.

Applies to