Class DnsResourceReference


  • public final class DnsResourceReference
    extends Object
    Represents a single Azure resource and its referencing DNS records.
    • Constructor Detail

      • DnsResourceReference

        public DnsResourceReference()
    • 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.