ZoneInner Class
- java.
lang. Object - com.
azure. core. management. ProxyResource - com.
azure. core. management. Resource - com.
azure. resourcemanager. dns. fluent. models. ZoneInner
- com.
- com.
- com.
public final class ZoneInner
extends Resource
Describes a DNS zone.
Constructor Summary
Constructor | Description |
---|---|
ZoneInner() |
Creates an instance of Zone |
Method Summary
Modifier and Type | Method and Description |
---|---|
String |
etag()
Get the etag property: The etag of the zone. |
static
Zone |
fromJson(JsonReader jsonReader)
Reads an instance of Zone |
String |
id()
Get the id property: Fully qualified resource Id for the resource. |
Long |
maxNumberOfRecordSets()
Get the max |
Long |
maxNumberOfRecordsPerRecordSet()
Get the max |
String |
name()
Get the name property: The name of the resource. |
List<String> |
nameServers()
Get the name |
Long |
numberOfRecordSets()
Get the number |
List<Sub |
registrationVirtualNetworks()
Get the registration |
List<Sub |
resolutionVirtualNetworks()
Get the resolution |
Json |
toJson(JsonWriter jsonWriter) |
String |
type()
Get the type property: The type of the resource. |
void |
validate()
Validates the instance. |
Zone |
withEtag(String etag)
Set the etag property: The etag of the zone. |
Zone |
withLocation(String location) |
Zone |
withRegistrationVirtualNetworks(List<SubResource> registrationVirtualNetworks)
Set the registration |
Zone |
withResolutionVirtualNetworks(List<SubResource> resolutionVirtualNetworks)
Set the resolution |
Zone |
withTags(Map<String,String> tags) |
Zone |
withZoneType(ZoneType zoneType)
Set the zone |
Zone |
zoneType()
Get the zone |
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:
fromJson
public static ZoneInner fromJson(JsonReader jsonReader)
Reads an instance of ZoneInner from the JsonReader.
Parameters:
Returns:
Throws:
id
public String id()
Get the id property: Fully qualified resource Id for the resource.
Overrides:
ZoneInner.id()Returns:
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:
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:
name
public String name()
Get the name property: The name of the resource.
Overrides:
ZoneInner.name()Returns:
nameServers
public List
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:
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:
registrationVirtualNetworks
public List
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:
resolutionVirtualNetworks
public List
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:
toJson
public JsonWriter toJson(JsonWriter jsonWriter)
Overrides:
ZoneInner.toJson(JsonWriter jsonWriter)Parameters:
Throws:
type
public String type()
Get the type property: The type of the resource.
Overrides:
ZoneInner.type()Returns:
validate
public void validate()
Validates the instance.
withEtag
public ZoneInner withEtag(String etag)
Set the etag property: The etag of the zone.
Parameters:
Returns:
withLocation
public ZoneInner withLocation(String location)
Overrides:
ZoneInner.withLocation(String location)Parameters:
withRegistrationVirtualNetworks
public ZoneInner withRegistrationVirtualNetworks(List
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:
Returns:
withResolutionVirtualNetworks
public ZoneInner withResolutionVirtualNetworks(List
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:
Returns:
withTags
public ZoneInner withTags(Map
Overrides:
ZoneInner.withTags(Map<String,String> tags)Parameters:
withZoneType
public ZoneInner withZoneType(ZoneType zoneType)
Set the zoneType property: The type of this DNS zone (Public or Private).
Parameters:
Returns:
zoneType
public ZoneType zoneType()
Get the zoneType property: The type of this DNS zone (Public or Private).
Returns:
Applies to
Azure SDK for Java