Class SoaRecord
java.lang.Object
com.azure.resourcemanager.privatedns.models.SoaRecord
- All Implemented Interfaces:
com.azure.json.JsonSerializable<SoaRecord>
An SOA record.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionemail()Get the email property: The email contact for this SOA record.Get the expireTime property: The expire time for this SOA record.static SoaRecordfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of SoaRecord from the JsonReader.host()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.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()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, waitMethods 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
Get the host property: The domain name of the authoritative name server for this SOA record.- Returns:
- the host value.
-
withHost
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
Get the email property: The email contact for this SOA record.- Returns:
- the email value.
-
withEmail
Set the email property: The email contact for this SOA record.- Parameters:
email- the email value to set.- Returns:
- the SoaRecord object itself.
-
serialNumber
Get the serialNumber property: The serial number for this SOA record.- Returns:
- the serialNumber value.
-
withSerialNumber
Set the serialNumber property: The serial number for this SOA record.- Parameters:
serialNumber- the serialNumber value to set.- Returns:
- the SoaRecord object itself.
-
refreshTime
Get the refreshTime property: The refresh value for this SOA record.- Returns:
- the refreshTime value.
-
withRefreshTime
Set the refreshTime property: The refresh value for this SOA record.- Parameters:
refreshTime- the refreshTime value to set.- Returns:
- the SoaRecord object itself.
-
retryTime
Get the retryTime property: The retry time for this SOA record.- Returns:
- the retryTime value.
-
withRetryTime
Set the retryTime property: The retry time for this SOA record.- Parameters:
retryTime- the retryTime value to set.- Returns:
- the SoaRecord object itself.
-
expireTime
Get the expireTime property: The expire time for this SOA record.- Returns:
- the expireTime value.
-
withExpireTime
Set the expireTime property: The expire time for this SOA record.- Parameters:
expireTime- the expireTime value to set.- Returns:
- the SoaRecord object itself.
-
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
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
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<SoaRecord>- Throws:
IOException
-
fromJson
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.
-