你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

PtrRecord Class

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

Implements

public final class PtrRecord
implements JsonSerializable<PtrRecord>

A PTR record.

Constructor Summary

Constructor Description
PtrRecord()

Creates an instance of PtrRecord class.

Method Summary

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

Reads an instance of PtrRecord from the JsonReader.

String ptrdname()

Get the ptrdname property: The PTR target domain name for this PTR record.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

PtrRecord withPtrdname(String ptrdname)

Set the ptrdname property: The PTR target domain name for this PTR record.

Methods inherited from java.lang.Object

Constructor Details

PtrRecord

public PtrRecord()

Creates an instance of PtrRecord class.

Method Details

fromJson

public static PtrRecord fromJson(JsonReader jsonReader)

Reads an instance of PtrRecord from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

ptrdname

public String ptrdname()

Get the ptrdname property: The PTR target domain name for this PTR record.

Returns:

the ptrdname value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withPtrdname

public PtrRecord withPtrdname(String ptrdname)

Set the ptrdname property: The PTR target domain name for this PTR record.

Parameters:

ptrdname - the ptrdname value to set.

Returns:

the PtrRecord object itself.

Applies to