java.lang.Object
com.azure.core.management.ProxyResource
com.azure.core.management.Resource
com.azure.resourcemanager.dns.fluent.models.ZoneInner
All Implemented Interfaces:
com.azure.json.JsonSerializable<com.azure.core.management.ProxyResource>

public final class ZoneInner extends com.azure.core.management.Resource
Describes a DNS zone.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Creates an instance of ZoneInner class.
  • Method Summary

    Modifier and Type
    Method
    Description
    Get the etag property: The etag of the zone.
    static ZoneInner
    fromJson(com.azure.json.JsonReader jsonReader)
    Reads an instance of ZoneInner from the JsonReader.
    id()
    Get the id property: Fully qualified resource Id for the resource.
    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 name property: The name of the resource.
    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.JsonWriter
    toJson(com.azure.json.JsonWriter jsonWriter)
    Get the type property: The type of the resource.
    void
    Validates the instance.
    Set the etag property: The etag of the zone.
    withLocation(String location)
    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.
    Set the zoneType property: The type of this DNS zone (Public or Private).
    Get the zoneType property: The type of this DNS zone (Public or Private).

    Methods inherited from class com.azure.core.management.Resource

    location, tags

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface com.azure.json.JsonSerializable

    toJson, toJson, toJsonBytes, toJsonString
  • 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.
    • 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.
    • id

      public String id()
      Get the id property: Fully qualified resource Id for the resource.
      Overrides:
      id in class com.azure.core.management.ProxyResource
      Returns:
      the id value.
    • name

      public String name()
      Get the name property: The name of the resource.
      Overrides:
      name in class com.azure.core.management.ProxyResource
      Returns:
      the name value.
    • type

      public String type()
      Get the type property: The type of the resource.
      Overrides:
      type in class com.azure.core.management.ProxyResource
      Returns:
      the type value.
    • withLocation

      public ZoneInner withLocation(String location)
      Overrides:
      withLocation in class com.azure.core.management.Resource
    • withTags

      public ZoneInner withTags(Map<String,String> tags)
      Overrides:
      withTags in class com.azure.core.management.Resource
    • 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.
    • 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.
    • nameServers

      public List<String> 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

      public ZoneType zoneType()
      Get the zoneType property: The type of this DNS zone (Public or Private).
      Returns:
      the zoneType value.
    • 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.
    • registrationVirtualNetworks

      public List<com.azure.core.management.SubResource> 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 ZoneInner 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 ZoneInner object itself.
    • resolutionVirtualNetworks

      public List<com.azure.core.management.SubResource> 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 ZoneInner 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 ZoneInner object itself.
    • validate

      public void validate()
      Validates the instance.
      Throws:
      IllegalArgumentException - thrown if the instance is not valid.
    • toJson

      public com.azure.json.JsonWriter toJson(com.azure.json.JsonWriter jsonWriter) throws IOException
      Specified by:
      toJson in interface com.azure.json.JsonSerializable<com.azure.core.management.ProxyResource>
      Overrides:
      toJson in class com.azure.core.management.Resource
      Throws:
      IOException
    • fromJson

      public static ZoneInner fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      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:
      IllegalStateException - If the deserialized JSON object was missing any required properties.
      IOException - If an error occurs while reading the ZoneInner.