Class DnsResourceReference
java.lang.Object
com.azure.resourcemanager.dns.models.DnsResourceReference
Represents a single Azure resource and its referencing DNS records.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionList<com.azure.core.management.SubResource>Get the dnsResources property: A list of dns Records.com.azure.core.management.SubResourceGet the targetResource property: A reference to an azure resource from where the dns resource value is taken.voidvalidate()Validates the instance.withDnsResources(List<com.azure.core.management.SubResource> dnsResources) Set the dnsResources property: A list of dns Records.withTargetResource(com.azure.core.management.SubResource targetResource) Set the targetResource property: A reference to an azure resource from where the dns resource value is taken.
-
Constructor Details
-
DnsResourceReference
public DnsResourceReference()Creates an instance of DnsResourceReference class.
-
-
Method Details
-
dnsResources
Get the dnsResources property: A list of dns Records.- Returns:
- the dnsResources value.
-
withDnsResources
public DnsResourceReference withDnsResources(List<com.azure.core.management.SubResource> dnsResources) Set the dnsResources property: A list of dns Records.- Parameters:
dnsResources- the dnsResources value to set.- Returns:
- the DnsResourceReference object itself.
-
targetResource
public com.azure.core.management.SubResource targetResource()Get the targetResource property: A reference to an azure resource from where the dns resource value is taken.- Returns:
- the targetResource value.
-
withTargetResource
public DnsResourceReference withTargetResource(com.azure.core.management.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.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-