Class DnsResourceReferenceRequestProperties
java.lang.Object
com.azure.resourcemanager.dns.fluent.models.DnsResourceReferenceRequestProperties
- All Implemented Interfaces:
com.azure.json.JsonSerializable<DnsResourceReferenceRequestProperties>
public final class DnsResourceReferenceRequestProperties
extends Object
implements com.azure.json.JsonSerializable<DnsResourceReferenceRequestProperties>
Represents the properties of the Dns Resource Reference Request.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of DnsResourceReferenceRequestProperties class. -
Method Summary
Modifier and TypeMethodDescriptionfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of DnsResourceReferenceRequestProperties from the JsonReader.List<com.azure.core.management.SubResource> Get the targetResources property: A list of references to azure resources for which referencing dns records need to be queried.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withTargetResources(List<com.azure.core.management.SubResource> targetResources) Set the targetResources property: A list of references to azure resources for which referencing dns records need to be queried.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
-
DnsResourceReferenceRequestProperties
public DnsResourceReferenceRequestProperties()Creates an instance of DnsResourceReferenceRequestProperties class.
-
-
Method Details
-
targetResources
Get the targetResources property: A list of references to azure resources for which referencing dns records need to be queried.- Returns:
- the targetResources value.
-
withTargetResources
public DnsResourceReferenceRequestProperties withTargetResources(List<com.azure.core.management.SubResource> targetResources) Set the targetResources property: A list of references to azure resources for which referencing dns records need to be queried.- Parameters:
targetResources- the targetResources value to set.- Returns:
- the DnsResourceReferenceRequestProperties 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<DnsResourceReferenceRequestProperties>- Throws:
IOException
-
fromJson
public static DnsResourceReferenceRequestProperties fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of DnsResourceReferenceRequestProperties from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of DnsResourceReferenceRequestProperties 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 DnsResourceReferenceRequestProperties.
-