DnsResourceReference Class
- java.
lang. Object - com.
azure. resourcemanager. dns. models. DnsResourceReference
- com.
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 Dns |
Method Summary
Modifier and Type | Method and Description |
---|---|
List<Sub |
dnsResources()
Get the dns |
static
Dns |
fromJson(JsonReader jsonReader)
Reads an instance of Dns |
Sub |
targetResource()
Get the target |
Json |
toJson(JsonWriter jsonWriter) |
void |
validate()
Validates the instance. |
Dns |
withDnsResources(List<SubResource> dnsResources)
Set the dns |
Dns |
withTargetResource(SubResource targetResource)
Set the target |
Methods inherited from java.lang.Object
Constructor Details
DnsResourceReference
public DnsResourceReference()
Creates an instance of DnsResourceReference class.
Method Details
dnsResources
public List
Get the dnsResources property: A list of dns Records.
Returns:
fromJson
public static DnsResourceReference fromJson(JsonReader jsonReader)
Reads an instance of DnsResourceReference from the JsonReader.
Parameters:
Returns:
Throws:
targetResource
public SubResource targetResource()
Get the targetResource property: A reference to an azure resource from where the dns resource value is taken.
Returns:
toJson
validate
public void validate()
Validates the instance.
withDnsResources
public DnsResourceReference withDnsResources(List
Set the dnsResources property: A list of dns Records.
Parameters:
Returns:
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:
Returns:
Applies to
Azure SDK for Java