SoaRecord Class

  • java.lang.Object
    • com.azure.resourcemanager.dns.models.SoaRecord

Implements

public final class SoaRecord
implements JsonSerializable<SoaRecord>

An SOA record.

Constructor Summary

Constructor Description
SoaRecord()

Creates an instance of SoaRecord class.

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 expireTime property: The expire time for this SOA record.

static SoaRecord fromJson(JsonReader jsonReader)

Reads an instance of SoaRecord from the JsonReader.

String host()

Get the host property: The domain name of the authoritative name server for this SOA record.

Long minimumTtl()

Get the minimumTtl property: The minimum value for this SOA record.

Long refreshTime()

Get the refreshTime property: The refresh value for this SOA record.

Long retryTime()

Get the retryTime property: The retry time for this SOA record.

Long serialNumber()

Get the serialNumber property: The serial number for this SOA record.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

SoaRecord withEmail(String email)

Set the email property: The email contact for this SOA record.

SoaRecord withExpireTime(Long expireTime)

Set the expireTime property: The expire time for this SOA record.

SoaRecord withHost(String host)

Set the host property: The domain name of the authoritative name server for this SOA record.

SoaRecord withMinimumTtl(Long minimumTtl)

Set the minimumTtl property: The minimum value for this SOA record.

SoaRecord withRefreshTime(Long refreshTime)

Set the refreshTime property: The refresh value for this SOA record.

SoaRecord withRetryTime(Long retryTime)

Set the retryTime property: The retry time for this SOA record.

SoaRecord withSerialNumber(Long serialNumber)

Set the serialNumber property: The serial number for this SOA record.

Methods inherited from java.lang.Object

Constructor Details

SoaRecord

public SoaRecord()

Creates an instance of SoaRecord class.

Method Details

email

public String email()

Get the email property: The email contact for this SOA record.

Returns:

the email value.

expireTime

public Long expireTime()

Get the expireTime property: The expire time for this SOA record.

Returns:

the expireTime value.

fromJson

public static SoaRecord fromJson(JsonReader jsonReader)

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.

host

public String host()

Get the host property: The domain name of the authoritative name server for this SOA record.

Returns:

the host value.

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.

refreshTime

public Long refreshTime()

Get the refreshTime property: The refresh value for this SOA record.

Returns:

the refreshTime value.

retryTime

public Long retryTime()

Get the retryTime property: The retry time for this SOA record.

Returns:

the retryTime value.

serialNumber

public Long serialNumber()

Get the serialNumber property: The serial number for this SOA record.

Returns:

the serialNumber value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

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:

email - the email value to set.

Returns:

the SoaRecord object itself.

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.

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.

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.

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.

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.

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.

Applies to