DnsResourceReferenceRequest Class

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

Implements

public final class DnsResourceReferenceRequest
implements JsonSerializable<DnsResourceReferenceRequest>

Represents the properties of the Dns Resource Reference Request.

Constructor Summary

Constructor Description
DnsResourceReferenceRequest()

Creates an instance of DnsResourceReferenceRequest class.

Method Summary

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

Reads an instance of DnsResourceReferenceRequest from the JsonReader.

List<SubResource> targetResources()

Get the targetResources property: A list of references to azure resources for which referencing dns records need to be queried.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

DnsResourceReferenceRequest withTargetResources(List<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 java.lang.Object

Constructor Details

DnsResourceReferenceRequest

public DnsResourceReferenceRequest()

Creates an instance of DnsResourceReferenceRequest class.

Method Details

fromJson

public static DnsResourceReferenceRequest fromJson(JsonReader jsonReader)

Reads an instance of DnsResourceReferenceRequest from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

targetResources

public List<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.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withTargetResources

public DnsResourceReferenceRequest withTargetResources(List<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 DnsResourceReferenceRequest object itself.

Applies to