Class SoaRecord
- java.lang.Object
-
- com.azure.resourcemanager.privatedns.models.SoaRecord
-
public final class SoaRecord extends Object
An SOA record.
-
-
Constructor Summary
Constructors Constructor Description SoaRecord()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Stringemail()Get the email property: The email contact for this SOA record.LongexpireTime()Get the expireTime property: The expire time for this SOA record.Stringhost()Get the host property: The domain name of the authoritative name server for this SOA record.LongminimumTtl()Get the minimumTtl property: The minimum value for this SOA record.LongrefreshTime()Get the refreshTime property: The refresh value for this SOA record.LongretryTime()Get the retryTime property: The retry time for this SOA record.LongserialNumber()Get the serialNumber property: The serial number for this SOA record.voidvalidate()Validates the instance.SoaRecordwithEmail(String email)Set the email property: The email contact for this SOA record.SoaRecordwithExpireTime(Long expireTime)Set the expireTime property: The expire time for this SOA record.SoaRecordwithHost(String host)Set the host property: The domain name of the authoritative name server for this SOA record.SoaRecordwithMinimumTtl(Long minimumTtl)Set the minimumTtl property: The minimum value for this SOA record.SoaRecordwithRefreshTime(Long refreshTime)Set the refreshTime property: The refresh value for this SOA record.SoaRecordwithRetryTime(Long retryTime)Set the retryTime property: The retry time for this SOA record.SoaRecordwithSerialNumber(Long serialNumber)Set the serialNumber property: The serial number for this SOA record.
-
-
-
Method Detail
-
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.
-
-