Class SoaRecord

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

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

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

    Modifier and Type
    Method
    Description
    Get the email property: The email contact for this SOA record.
    Get the expireTime property: The expire time for this SOA record.
    static SoaRecord
    fromJson(com.azure.json.JsonReader jsonReader)
    Reads an instance of SoaRecord from the JsonReader.
    Get the host property: The domain name of the authoritative name server for this SOA record.
    Get the minimumTtl property: The minimum value for this SOA record.
    Get the refreshTime property: The refresh value for this SOA record.
    Get the retryTime property: The retry time for this SOA record.
    Get the serialNumber property: The serial number for this SOA record.
    com.azure.json.JsonWriter
    toJson(com.azure.json.JsonWriter jsonWriter)
    void
    Validates the instance.
    Set the email property: The email contact for this SOA record.
    withExpireTime(Long expireTime)
    Set the expireTime property: The expire time for this SOA record.
    Set the host property: The domain name of the authoritative name server for this SOA record.
    withMinimumTtl(Long minimumTtl)
    Set the minimumTtl property: The minimum value for this SOA record.
    withRefreshTime(Long refreshTime)
    Set the refreshTime property: The refresh value for this SOA record.
    withRetryTime(Long retryTime)
    Set the retryTime property: The retry time for this SOA record.
    withSerialNumber(Long serialNumber)
    Set the serialNumber property: The serial number for this SOA 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

    • SoaRecord

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

    • host

      public String host()
      Get the host property: The domain name of the authoritative name server for this SOA record.
      Returns:
      the host value.
    • withHost

      public SoaRecord withHost(String host)
      Set the host property: The domain name of the authoritative name server for this SOA record.
      Parameters:
      host - the host value to set.
      Returns:
      the SoaRecord object itself.
    • email

      public String email()
      Get the email property: The email contact for this SOA record.
      Returns:
      the email value.
    • withEmail

      public SoaRecord withEmail(String email)
      Set the email property: The email contact for this SOA record.
      Parameters:
      email - the email value to set.
      Returns:
      the SoaRecord object itself.
    • serialNumber

      public Long serialNumber()
      Get the serialNumber property: The serial number for this SOA record.
      Returns:
      the serialNumber value.
    • withSerialNumber

      public SoaRecord withSerialNumber(Long serialNumber)
      Set the serialNumber property: The serial number for this SOA record.
      Parameters:
      serialNumber - the serialNumber value to set.
      Returns:
      the SoaRecord object itself.
    • refreshTime

      public Long refreshTime()
      Get the refreshTime property: The refresh value for this SOA record.
      Returns:
      the refreshTime value.
    • withRefreshTime

      public SoaRecord withRefreshTime(Long refreshTime)
      Set the refreshTime property: The refresh value for this SOA record.
      Parameters:
      refreshTime - the refreshTime value to set.
      Returns:
      the SoaRecord object itself.
    • retryTime

      public Long retryTime()
      Get the retryTime property: The retry time for this SOA record.
      Returns:
      the retryTime value.
    • withRetryTime

      public SoaRecord withRetryTime(Long retryTime)
      Set the retryTime property: The retry time for this SOA record.
      Parameters:
      retryTime - the retryTime value to set.
      Returns:
      the SoaRecord object itself.
    • expireTime

      public Long expireTime()
      Get the expireTime property: The expire time for this SOA record.
      Returns:
      the expireTime value.
    • withExpireTime

      public SoaRecord withExpireTime(Long expireTime)
      Set the expireTime property: The expire time for this SOA record.
      Parameters:
      expireTime - the expireTime value to set.
      Returns:
      the SoaRecord object itself.
    • minimumTtl

      public Long minimumTtl()
      Get the minimumTtl property: The minimum value for this SOA record. By convention this is used to determine the negative caching duration.
      Returns:
      the minimumTtl value.
    • withMinimumTtl

      public SoaRecord withMinimumTtl(Long minimumTtl)
      Set the minimumTtl property: The minimum value for this SOA record. By convention this is used to determine the negative caching duration.
      Parameters:
      minimumTtl - the minimumTtl value to set.
      Returns:
      the SoaRecord 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<SoaRecord>
      Throws:
      IOException
    • fromJson

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