Class PtrRecord
java.lang.Object
com.azure.resourcemanager.dns.models.PtrRecord
- All Implemented Interfaces:
com.azure.json.JsonSerializable<PtrRecord>
A PTR record.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic PtrRecordfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of PtrRecord from the JsonReader.ptrdname()Get the ptrdname property: The PTR target domain name for this PTR record.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withPtrdname(String ptrdname) Set the ptrdname property: The PTR target domain name for this PTR record.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
PtrRecord
public PtrRecord()Creates an instance of PtrRecord class.
-
-
Method Details
-
ptrdname
Get the ptrdname property: The PTR target domain name for this PTR record.- Returns:
- the ptrdname value.
-
withPtrdname
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.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<PtrRecord>- Throws:
IOException
-
fromJson
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.
-