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 Summary
ConstructorsConstructorDescriptionCreates an instance of VirtualMachineScaleSetPublicIpAddressConfigurationDnsSettings class. -
Method Summary
Modifier and TypeMethodDescriptionGet 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.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.fromJson(com.azure.json.JsonReader jsonReader) Reads an instance of VirtualMachineScaleSetPublicIpAddressConfigurationDnsSettings from the JsonReader.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.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.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.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
VirtualMachineScaleSetPublicIpAddressConfigurationDnsSettings
public VirtualMachineScaleSetPublicIpAddressConfigurationDnsSettings()Creates an instance of VirtualMachineScaleSetPublicIpAddressConfigurationDnsSettings class.
-
-
Method Details
-
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
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
- Specified by:
toJsonin interfacecom.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.
-