Class DnsResourceReference
- java.lang.Object
-
- com.azure.resourcemanager.dns.models.DnsResourceReference
-
public final class DnsResourceReference extends Object
Represents a single Azure resource and its referencing DNS records.
-
-
Constructor Summary
Constructors Constructor Description DnsResourceReference()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<com.azure.core.management.SubResource>dnsResources()Get the dnsResources property: A list of dns Records.com.azure.core.management.SubResourcetargetResource()Get the targetResource property: A reference to an azure resource from where the dns resource value is taken.voidvalidate()Validates the instance.DnsResourceReferencewithDnsResources(List<com.azure.core.management.SubResource> dnsResources)Set the dnsResources property: A list of dns Records.DnsResourceReferencewithTargetResource(com.azure.core.management.SubResource targetResource)Set the targetResource property: A reference to an azure resource from where the dns resource value is taken.
-
-
-
Method Detail
-
dnsResources
public List<com.azure.core.management.SubResource> 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.
-
-