Partager via


TxtRecord Class

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

Implements

public final class TxtRecord
implements JsonSerializable<TxtRecord>

A TXT record.

Constructor Summary

Constructor Description
TxtRecord()

Creates an instance of TxtRecord class.

Method Summary

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

Reads an instance of TxtRecord from the JsonReader.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

List<String> value()

Get the value property: The text value of this TXT record.

TxtRecord withValue(List<String> value)

Set the value property: The text value of this TXT record.

Methods inherited from java.lang.Object

Constructor Details

TxtRecord

public TxtRecord()

Creates an instance of TxtRecord class.

Method Details

fromJson

public static TxtRecord fromJson(JsonReader jsonReader)

Reads an instance of TxtRecord from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

value

public List value()

Get the value property: The text value of this TXT record.

Returns:

the value value.

withValue

public TxtRecord withValue(List value)

Set the value property: The text value of this TXT record.

Parameters:

value - the value value to set.

Returns:

the TxtRecord object itself.

Applies to