java.lang.Object
com.azure.resourcemanager.privatedns.models.AaaaRecord
All Implemented Interfaces:
com.azure.json.JsonSerializable<AaaaRecord>

public final class AaaaRecord extends Object implements com.azure.json.JsonSerializable<AaaaRecord>
An AAAA record.
  • Constructor Summary

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

    Modifier and Type
    Method
    Description
    static AaaaRecord
    fromJson(com.azure.json.JsonReader jsonReader)
    Reads an instance of AaaaRecord from the JsonReader.
    Get the ipv6Address property: The IPv6 address of this AAAA record.
    com.azure.json.JsonWriter
    toJson(com.azure.json.JsonWriter jsonWriter)
    void
    Validates the instance.
    withIpv6Address(String ipv6Address)
    Set the ipv6Address property: The IPv6 address of this AAAA record.

    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

    • AaaaRecord

      public AaaaRecord()
      Creates an instance of AaaaRecord class.
  • Method Details

    • ipv6Address

      public String ipv6Address()
      Get the ipv6Address property: The IPv6 address of this AAAA record.
      Returns:
      the ipv6Address value.
    • withIpv6Address

      public AaaaRecord withIpv6Address(String ipv6Address)
      Set the ipv6Address property: The IPv6 address of this AAAA record.
      Parameters:
      ipv6Address - the ipv6Address value to set.
      Returns:
      the AaaaRecord 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<AaaaRecord>
      Throws:
      IOException
    • fromJson

      public static AaaaRecord fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads an instance of AaaaRecord from the JsonReader.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      An instance of AaaaRecord 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 AaaaRecord.