ZoneInner Class

public final class ZoneInner
extends Resource

Describes a DNS zone.

Constructor Summary

Constructor Description
ZoneInner()

Creates an instance of ZoneInner class.

Method Summary

Modifier and Type Method and Description
String etag()

Get the etag property: The etag of the zone.

static ZoneInner fromJson(JsonReader jsonReader)

Reads an instance of ZoneInner from the JsonReader.

String id()

Get the id property: Fully qualified resource Id for the resource.

Long maxNumberOfRecordSets()

Get the maxNumberOfRecordSets property: The maximum number of record sets that can be created in this DNS zone.

Long maxNumberOfRecordsPerRecordSet()

Get the maxNumberOfRecordsPerRecordSet property: The maximum number of records per record set that can be created in this DNS zone.

String name()

Get the name property: The name of the resource.

List<String> nameServers()

Get the nameServers property: The name servers for this DNS zone.

Long numberOfRecordSets()

Get the numberOfRecordSets property: The current number of record sets in this DNS zone.

List<SubResource> registrationVirtualNetworks()

Get the registrationVirtualNetworks property: A list of references to virtual networks that register hostnames in this DNS zone.

List<SubResource> resolutionVirtualNetworks()

Get the resolutionVirtualNetworks property: A list of references to virtual networks that resolve records in this DNS zone.

JsonWriter toJson(JsonWriter jsonWriter)
String type()

Get the type property: The type of the resource.

void validate()

Validates the instance.

ZoneInner withEtag(String etag)

Set the etag property: The etag of the zone.

ZoneInner withLocation(String location)
ZoneInner withRegistrationVirtualNetworks(List<SubResource> registrationVirtualNetworks)

Set the registrationVirtualNetworks property: A list of references to virtual networks that register hostnames in this DNS zone.

ZoneInner withResolutionVirtualNetworks(List<SubResource> resolutionVirtualNetworks)

Set the resolutionVirtualNetworks property: A list of references to virtual networks that resolve records in this DNS zone.

ZoneInner withTags(Map<String,String> tags)
ZoneInner withZoneType(ZoneType zoneType)

Set the zoneType property: The type of this DNS zone (Public or Private).

ZoneType zoneType()

Get the zoneType property: The type of this DNS zone (Public or Private).

Methods inherited from ProxyResource

Methods inherited from Resource

Methods inherited from java.lang.Object

Constructor Details

ZoneInner

public ZoneInner()

Creates an instance of ZoneInner class.

Method Details

etag

public String etag()

Get the etag property: The etag of the zone.

Returns:

the etag value.

fromJson

public static ZoneInner fromJson(JsonReader jsonReader)

Reads an instance of ZoneInner from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of ZoneInner 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.

id

public String id()

Get the id property: Fully qualified resource Id for the resource.

Overrides:

ZoneInner.id()

Returns:

the id value.

maxNumberOfRecordSets

public Long maxNumberOfRecordSets()

Get the maxNumberOfRecordSets property: The maximum number of record sets that can be created in this DNS zone. This is a read-only property and any attempt to set this value will be ignored.

Returns:

the maxNumberOfRecordSets value.

maxNumberOfRecordsPerRecordSet

public Long maxNumberOfRecordsPerRecordSet()

Get the maxNumberOfRecordsPerRecordSet property: The maximum number of records per record set that can be created in this DNS zone. This is a read-only property and any attempt to set this value will be ignored.

Returns:

the maxNumberOfRecordsPerRecordSet value.

name

public String name()

Get the name property: The name of the resource.

Overrides:

ZoneInner.name()

Returns:

the name value.

nameServers

public List nameServers()

Get the nameServers property: The name servers for this DNS zone. This is a read-only property and any attempt to set this value will be ignored.

Returns:

the nameServers value.

numberOfRecordSets

public Long numberOfRecordSets()

Get the numberOfRecordSets property: The current number of record sets in this DNS zone. This is a read-only property and any attempt to set this value will be ignored.

Returns:

the numberOfRecordSets value.

registrationVirtualNetworks

public List registrationVirtualNetworks()

Get the registrationVirtualNetworks property: A list of references to virtual networks that register hostnames in this DNS zone. This is a only when ZoneType is Private.

Returns:

the registrationVirtualNetworks value.

resolutionVirtualNetworks

public List resolutionVirtualNetworks()

Get the resolutionVirtualNetworks property: A list of references to virtual networks that resolve records in this DNS zone. This is a only when ZoneType is Private.

Returns:

the resolutionVirtualNetworks value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

ZoneInner.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

type

public String type()

Get the type property: The type of the resource.

Overrides:

ZoneInner.type()

Returns:

the type value.

validate

public void validate()

Validates the instance.

withEtag

public ZoneInner withEtag(String etag)

Set the etag property: The etag of the zone.

Parameters:

etag - the etag value to set.

Returns:

the ZoneInner object itself.

withLocation

public ZoneInner withLocation(String location)

Overrides:

ZoneInner.withLocation(String location)

Parameters:

location

withRegistrationVirtualNetworks

public ZoneInner withRegistrationVirtualNetworks(List registrationVirtualNetworks)

Set the registrationVirtualNetworks property: A list of references to virtual networks that register hostnames in this DNS zone. This is a only when ZoneType is Private.

Parameters:

registrationVirtualNetworks - the registrationVirtualNetworks value to set.

Returns:

the ZoneInner object itself.

withResolutionVirtualNetworks

public ZoneInner withResolutionVirtualNetworks(List resolutionVirtualNetworks)

Set the resolutionVirtualNetworks property: A list of references to virtual networks that resolve records in this DNS zone. This is a only when ZoneType is Private.

Parameters:

resolutionVirtualNetworks - the resolutionVirtualNetworks value to set.

Returns:

the ZoneInner object itself.

withTags

public ZoneInner withTags(Map tags)

Overrides:

ZoneInner.withTags(Map<String,String> tags)

Parameters:

tags

withZoneType

public ZoneInner withZoneType(ZoneType zoneType)

Set the zoneType property: The type of this DNS zone (Public or Private).

Parameters:

zoneType - the zoneType value to set.

Returns:

the ZoneInner object itself.

zoneType

public ZoneType zoneType()

Get the zoneType property: The type of this DNS zone (Public or Private).

Returns:

the zoneType value.

Applies to