Class VirtualMachineScaleSetPublicIpAddressConfigurationDnsSettings

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

public final class VirtualMachineScaleSetPublicIpAddressConfigurationDnsSettings extends Object implements com.azure.json.JsonSerializable<VirtualMachineScaleSetPublicIpAddressConfigurationDnsSettings>
Describes a virtual machines scale sets network configuration's DNS settings.
  • Constructor Details

    • VirtualMachineScaleSetPublicIpAddressConfigurationDnsSettings

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

    • domainNameLabel

      public String domainNameLabel()
      Get the domainNameLabel property: The Domain name label.The concatenation of the domain name label and vm index will be the domain name labels of the PublicIPAddress resources that will be created.
      Returns:
      the domainNameLabel value.
    • withDomainNameLabel

      public VirtualMachineScaleSetPublicIpAddressConfigurationDnsSettings withDomainNameLabel(String domainNameLabel)
      Set the domainNameLabel property: The Domain name label.The concatenation of the domain name label and vm index will be the domain name labels of the PublicIPAddress resources that will be created.
      Parameters:
      domainNameLabel - the domainNameLabel value to set.
      Returns:
      the VirtualMachineScaleSetPublicIpAddressConfigurationDnsSettings object itself.
    • domainNameLabelScope

      public DomainNameLabelScopeTypes domainNameLabelScope()
      Get the domainNameLabelScope property: The Domain name label scope.The concatenation of the hashed domain name label that generated according to the policy from domain name label scope and vm index will be the domain name labels of the PublicIPAddress resources that will be created.
      Returns:
      the domainNameLabelScope value.
    • withDomainNameLabelScope

      public VirtualMachineScaleSetPublicIpAddressConfigurationDnsSettings withDomainNameLabelScope(DomainNameLabelScopeTypes domainNameLabelScope)
      Set the domainNameLabelScope property: The Domain name label scope.The concatenation of the hashed domain name label that generated according to the policy from domain name label scope and vm index will be the domain name labels of the PublicIPAddress resources that will be created.
      Parameters:
      domainNameLabelScope - the domainNameLabelScope value to set.
      Returns:
      the VirtualMachineScaleSetPublicIpAddressConfigurationDnsSettings 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<VirtualMachineScaleSetPublicIpAddressConfigurationDnsSettings>
      Throws:
      IOException
    • fromJson

      public static VirtualMachineScaleSetPublicIpAddressConfigurationDnsSettings fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads an instance of VirtualMachineScaleSetPublicIpAddressConfigurationDnsSettings from the JsonReader.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      An instance of VirtualMachineScaleSetPublicIpAddressConfigurationDnsSettings if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
      Throws:
      IllegalStateException - If the deserialized JSON object was missing any required properties.
      IOException - If an error occurs while reading the VirtualMachineScaleSetPublicIpAddressConfigurationDnsSettings.