DnsRecord Class

  • java.lang.Object
    • com.azure.resourcemanager.communication.models.DnsRecord

Implements

public final class DnsRecord
implements JsonSerializable<DnsRecord>

A class that represents a VerificationStatus record.

Constructor Summary

Constructor Description
DnsRecord()

Creates an instance of DnsRecord class.

Method Summary

Modifier and Type Method and Description
static DnsRecord fromJson(JsonReader jsonReader)

Reads an instance of DnsRecord from the JsonReader.

String name()

Get the name property: Name of the DNS record.

JsonWriter toJson(JsonWriter jsonWriter)
Integer ttl()

Get the ttl property: Represents an expiry time in seconds to represent how long this entry can be cached by the resolver, default = 3600sec.

String type()

Get the type property: Type of the DNS record.

void validate()

Validates the instance.

String value()

Get the value property: Value of the DNS record.

Methods inherited from java.lang.Object

Constructor Details

DnsRecord

public DnsRecord()

Creates an instance of DnsRecord class.

Method Details

fromJson

public static DnsRecord fromJson(JsonReader jsonReader)

Reads an instance of DnsRecord from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of DnsRecord 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 DnsRecord.

name

public String name()

Get the name property: Name of the DNS record.

Returns:

the name value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

ttl

public Integer ttl()

Get the ttl property: Represents an expiry time in seconds to represent how long this entry can be cached by the resolver, default = 3600sec.

Returns:

the ttl value.

type

public String type()

Get the type property: Type of the DNS record. Example: TXT.

Returns:

the type value.

validate

public void validate()

Validates the instance.

value

public String value()

Get the value property: Value of the DNS record.

Returns:

the value value.

Applies to