Class PtrRecord

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

public final class PtrRecord extends Object implements com.azure.json.JsonSerializable<PtrRecord>
A PTR record.
  • Constructor Summary

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

    Modifier and Type
    Method
    Description
    static PtrRecord
    fromJson(com.azure.json.JsonReader jsonReader)
    Reads an instance of PtrRecord from the JsonReader.
    Get the ptrdname property: The PTR target domain name for this PTR record.
    com.azure.json.JsonWriter
    toJson(com.azure.json.JsonWriter jsonWriter)
    void
    Validates the instance.
    withPtrdname(String ptrdname)
    Set the ptrdname property: The PTR target domain name for this PTR 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

    • PtrRecord

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

    • ptrdname

      public String ptrdname()
      Get the ptrdname property: The PTR target domain name for this PTR record.
      Returns:
      the ptrdname value.
    • withPtrdname

      public PtrRecord withPtrdname(String ptrdname)
      Set the ptrdname property: The PTR target domain name for this PTR record.
      Parameters:
      ptrdname - the ptrdname value to set.
      Returns:
      the PtrRecord 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<PtrRecord>
      Throws:
      IOException
    • fromJson

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