Class ZoneProperties
java.lang.Object
com.azure.resourcemanager.dns.fluent.models.ZoneProperties
- All Implemented Interfaces:
com.azure.json.JsonSerializable<ZoneProperties>
public final class ZoneProperties
extends Object
implements com.azure.json.JsonSerializable<ZoneProperties>
Represents the properties of the zone.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ZonePropertiesfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of ZoneProperties from the JsonReader.Get the maxNumberOfRecordSets property: The maximum number of record sets that can be created in this DNS zone.Get the maxNumberOfRecordsPerRecordSet property: The maximum number of records per record set that can be created in this DNS zone.Get the nameServers property: The name servers for this DNS zone.Get the numberOfRecordSets property: The current number of record sets in this DNS zone.List<com.azure.core.management.SubResource>Get the registrationVirtualNetworks property: A list of references to virtual networks that register hostnames in this DNS zone.List<com.azure.core.management.SubResource>Get the resolutionVirtualNetworks property: A list of references to virtual networks that resolve records in this DNS zone.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withRegistrationVirtualNetworks(List<com.azure.core.management.SubResource> registrationVirtualNetworks) Set the registrationVirtualNetworks property: A list of references to virtual networks that register hostnames in this DNS zone.withResolutionVirtualNetworks(List<com.azure.core.management.SubResource> resolutionVirtualNetworks) Set the resolutionVirtualNetworks property: A list of references to virtual networks that resolve records in this DNS zone.withZoneType(ZoneType zoneType) Set the zoneType property: The type of this DNS zone (Public or Private).zoneType()Get the zoneType property: The type of this DNS zone (Public or Private).Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
ZoneProperties
public ZoneProperties()Creates an instance of ZoneProperties class.
-
-
Method Details
-
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
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.
-
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.
-
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.
-
zoneType
Get the zoneType property: The type of this DNS zone (Public or Private).- Returns:
- the zoneType value.
-
withZoneType
Set the zoneType property: The type of this DNS zone (Public or Private).- Parameters:
zoneType- the zoneType value to set.- Returns:
- the ZoneProperties object itself.
-
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.
-
withRegistrationVirtualNetworks
public ZoneProperties withRegistrationVirtualNetworks(List<com.azure.core.management.SubResource> 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 ZoneProperties object itself.
-
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.
-
withResolutionVirtualNetworks
public ZoneProperties withResolutionVirtualNetworks(List<com.azure.core.management.SubResource> 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 ZoneProperties object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<ZoneProperties>- Throws:
IOException
-
fromJson
Reads an instance of ZoneProperties from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of ZoneProperties 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 ZoneProperties.
-