Class PublicIpAddressDnsSettings

java.lang.Object
com.azure.resourcemanager.network.models.PublicIpAddressDnsSettings
All Implemented Interfaces:
com.azure.json.JsonSerializable<PublicIpAddressDnsSettings>

public final class PublicIpAddressDnsSettings extends Object implements com.azure.json.JsonSerializable<PublicIpAddressDnsSettings>
Contains FQDN of the DNS record associated with the public IP address.
  • Constructor Details

    • PublicIpAddressDnsSettings

      public PublicIpAddressDnsSettings()
      Creates an instance of PublicIpAddressDnsSettings class.
  • Method Details

    • domainNameLabel

      public String domainNameLabel()
      Get the domainNameLabel property: The domain name label. The concatenation of the domain name label and the regionalized DNS zone make up the fully qualified domain name associated with the public IP address. If a domain name label is specified, an A DNS record is created for the public IP in the Microsoft Azure DNS system.
      Returns:
      the domainNameLabel value.
    • withDomainNameLabel

      public PublicIpAddressDnsSettings withDomainNameLabel(String domainNameLabel)
      Set the domainNameLabel property: The domain name label. The concatenation of the domain name label and the regionalized DNS zone make up the fully qualified domain name associated with the public IP address. If a domain name label is specified, an A DNS record is created for the public IP in the Microsoft Azure DNS system.
      Parameters:
      domainNameLabel - the domainNameLabel value to set.
      Returns:
      the PublicIpAddressDnsSettings object itself.
    • domainNameLabelScope

      public PublicIpAddressDnsSettingsDomainNameLabelScope domainNameLabelScope()
      Get the domainNameLabelScope property: The domain name label scope. If a domain name label and a domain name label scope are specified, an A DNS record is created for the public IP in the Microsoft Azure DNS system with a hashed value includes in FQDN.
      Returns:
      the domainNameLabelScope value.
    • withDomainNameLabelScope

      public PublicIpAddressDnsSettings withDomainNameLabelScope(PublicIpAddressDnsSettingsDomainNameLabelScope domainNameLabelScope)
      Set the domainNameLabelScope property: The domain name label scope. If a domain name label and a domain name label scope are specified, an A DNS record is created for the public IP in the Microsoft Azure DNS system with a hashed value includes in FQDN.
      Parameters:
      domainNameLabelScope - the domainNameLabelScope value to set.
      Returns:
      the PublicIpAddressDnsSettings object itself.
    • fqdn

      public String fqdn()
      Get the fqdn property: The Fully Qualified Domain Name of the A DNS record associated with the public IP. This is the concatenation of the domainNameLabel and the regionalized DNS zone.
      Returns:
      the fqdn value.
    • withFqdn

      public PublicIpAddressDnsSettings withFqdn(String fqdn)
      Set the fqdn property: The Fully Qualified Domain Name of the A DNS record associated with the public IP. This is the concatenation of the domainNameLabel and the regionalized DNS zone.
      Parameters:
      fqdn - the fqdn value to set.
      Returns:
      the PublicIpAddressDnsSettings object itself.
    • reverseFqdn

      public String reverseFqdn()
      Get the reverseFqdn property: The reverse FQDN. A user-visible, fully qualified domain name that resolves to this public IP address. If the reverseFqdn is specified, then a PTR DNS record is created pointing from the IP address in the in-addr.arpa domain to the reverse FQDN.
      Returns:
      the reverseFqdn value.
    • withReverseFqdn

      public PublicIpAddressDnsSettings withReverseFqdn(String reverseFqdn)
      Set the reverseFqdn property: The reverse FQDN. A user-visible, fully qualified domain name that resolves to this public IP address. If the reverseFqdn is specified, then a PTR DNS record is created pointing from the IP address in the in-addr.arpa domain to the reverse FQDN.
      Parameters:
      reverseFqdn - the reverseFqdn value to set.
      Returns:
      the PublicIpAddressDnsSettings object itself.
    • validate

      public void validate()
      Validates the instance.
      Throws:
      IllegalArgumentException - thrown if the instance is not valid.
    • toJson

      public com.azure.json.JsonWriter toJson(com.azure.json.JsonWriter jsonWriter) throws IOException
      Specified by:
      toJson in interface com.azure.json.JsonSerializable<PublicIpAddressDnsSettings>
      Throws:
      IOException
    • fromJson

      public static PublicIpAddressDnsSettings fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads an instance of PublicIpAddressDnsSettings from the JsonReader.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      An instance of PublicIpAddressDnsSettings 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 PublicIpAddressDnsSettings.