DnsResourceReference Class

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

Implements

public final class DnsResourceReference
implements JsonSerializable<DnsResourceReference>

Represents a single Azure resource and its referencing DNS records.

Constructor Summary

Constructor Description
DnsResourceReference()

Creates an instance of DnsResourceReference class.

Method Summary

Modifier and Type Method and Description
List<SubResource> dnsResources()

Get the dnsResources property: A list of dns Records.

static DnsResourceReference fromJson(JsonReader jsonReader)

Reads an instance of DnsResourceReference from the JsonReader.

SubResource targetResource()

Get the targetResource property: A reference to an azure resource from where the dns resource value is taken.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

DnsResourceReference withDnsResources(List<SubResource> dnsResources)

Set the dnsResources property: A list of dns Records.

DnsResourceReference withTargetResource(SubResource targetResource)

Set the targetResource property: A reference to an azure resource from where the dns resource value is taken.

Methods inherited from java.lang.Object

Constructor Details

DnsResourceReference

public DnsResourceReference()

Creates an instance of DnsResourceReference class.

Method Details

dnsResources

public List dnsResources()

Get the dnsResources property: A list of dns Records.

Returns:

the dnsResources value.

fromJson

public static DnsResourceReference fromJson(JsonReader jsonReader)

Reads an instance of DnsResourceReference from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

targetResource

public SubResource targetResource()

Get the targetResource property: A reference to an azure resource from where the dns resource value is taken.

Returns:

the targetResource value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withDnsResources

public DnsResourceReference withDnsResources(List dnsResources)

Set the dnsResources property: A list of dns Records.

Parameters:

dnsResources - the dnsResources value to set.

Returns:

the DnsResourceReference object itself.

withTargetResource

public DnsResourceReference withTargetResource(SubResource targetResource)

Set the targetResource property: A reference to an azure resource from where the dns resource value is taken.

Parameters:

targetResource - the targetResource value to set.

Returns:

the DnsResourceReference object itself.

Applies to