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 Details

    • DnsResourceReferenceRequestProperties

      public DnsResourceReferenceRequestProperties()
      Creates an instance of DnsResourceReferenceRequestProperties class.
  • Method Details

    • targetResources

      public List<com.azure.core.management.SubResource> 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

      public com.azure.json.JsonWriter toJson(com.azure.json.JsonWriter jsonWriter) throws IOException
      Specified by:
      toJson in interface com.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.