SoaRecord Class
- java.
lang. Object - com.
azure. resourcemanager. dns. models. SoaRecord
- com.
Implements
public final class SoaRecord
implements JsonSerializable<SoaRecord>
An SOA record.
Constructor Summary
Constructor | Description |
---|---|
SoaRecord() |
Creates an instance of Soa |
Method Summary
Modifier and Type | Method and Description |
---|---|
String |
email()
Get the email property: The email contact for this SOA record. |
Long |
expireTime()
Get the expire |
static
Soa |
fromJson(JsonReader jsonReader)
Reads an instance of Soa |
String |
host()
Get the host property: The domain name of the authoritative name server for this SOA record. |
Long |
minimumTtl()
Get the minimum |
Long |
refreshTime()
Get the refresh |
Long |
retryTime()
Get the retry |
Long |
serialNumber()
Get the serial |
Json |
toJson(JsonWriter jsonWriter) |
void |
validate()
Validates the instance. |
Soa |
withEmail(String email)
Set the email property: The email contact for this SOA record. |
Soa |
withExpireTime(Long expireTime)
Set the expire |
Soa |
withHost(String host)
Set the host property: The domain name of the authoritative name server for this SOA record. |
Soa |
withMinimumTtl(Long minimumTtl)
Set the minimum |
Soa |
withRefreshTime(Long refreshTime)
Set the refresh |
Soa |
withRetryTime(Long retryTime)
Set the retry |
Soa |
withSerialNumber(Long serialNumber)
Set the serial |
Methods inherited from java.lang.Object
Constructor Details
SoaRecord
public SoaRecord()
Creates an instance of SoaRecord class.
Method Details
public String email()
Get the email property: The email contact for this SOA record.
Returns:
expireTime
public Long expireTime()
Get the expireTime property: The expire time for this SOA record.
Returns:
fromJson
public static SoaRecord fromJson(JsonReader jsonReader)
Reads an instance of SoaRecord from the JsonReader.
Parameters:
Returns:
Throws:
host
public String host()
Get the host property: The domain name of the authoritative name server for this SOA record.
Returns:
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:
refreshTime
public Long refreshTime()
Get the refreshTime property: The refresh value for this SOA record.
Returns:
retryTime
public Long retryTime()
Get the retryTime property: The retry time for this SOA record.
Returns:
serialNumber
public Long serialNumber()
Get the serialNumber property: The serial number for this SOA record.
Returns:
toJson
validate
public void validate()
Validates the instance.
withEmail
public SoaRecord withEmail(String email)
Set the email property: The email contact for this SOA record.
Parameters:
Returns:
withExpireTime
public SoaRecord withExpireTime(Long expireTime)
Set the expireTime property: The expire time for this SOA record.
Parameters:
Returns:
withHost
public SoaRecord withHost(String host)
Set the host property: The domain name of the authoritative name server for this SOA record.
Parameters:
Returns:
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:
Returns:
withRefreshTime
public SoaRecord withRefreshTime(Long refreshTime)
Set the refreshTime property: The refresh value for this SOA record.
Parameters:
Returns:
withRetryTime
public SoaRecord withRetryTime(Long retryTime)
Set the retryTime property: The retry time for this SOA record.
Parameters:
Returns:
withSerialNumber
public SoaRecord withSerialNumber(Long serialNumber)
Set the serialNumber property: The serial number for this SOA record.
Parameters:
Returns:
Applies to
Azure SDK for Java