Class VirtualMachinePublicIpAddressDnsSettingsConfiguration
java.lang.Object
com.azure.resourcemanager.compute.models.VirtualMachinePublicIpAddressDnsSettingsConfiguration
- All Implemented Interfaces:
com.azure.json.JsonSerializable<VirtualMachinePublicIpAddressDnsSettingsConfiguration>
public final class VirtualMachinePublicIpAddressDnsSettingsConfiguration
extends Object
implements com.azure.json.JsonSerializable<VirtualMachinePublicIpAddressDnsSettingsConfiguration>
Describes a virtual machines network configuration's DNS settings.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of VirtualMachinePublicIpAddressDnsSettingsConfiguration class. -
Method Summary
Modifier and TypeMethodDescriptionGet the domainNameLabel property: The Domain name label prefix of the PublicIPAddress resources that will be created.Get the domainNameLabelScope property: The Domain name label scope of the PublicIPAddress resources that will be created.fromJson(com.azure.json.JsonReader jsonReader) Reads an instance of VirtualMachinePublicIpAddressDnsSettingsConfiguration 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 prefix of the PublicIPAddress resources that will be created.withDomainNameLabelScope(DomainNameLabelScopeTypes domainNameLabelScope) Set the domainNameLabelScope property: The Domain name label scope 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
-
VirtualMachinePublicIpAddressDnsSettingsConfiguration
public VirtualMachinePublicIpAddressDnsSettingsConfiguration()Creates an instance of VirtualMachinePublicIpAddressDnsSettingsConfiguration class.
-
-
Method Details
-
domainNameLabel
Get the domainNameLabel property: The Domain name label prefix of the PublicIPAddress resources that will be created. The generated name label is the concatenation of the domain name label and vm network profile unique ID.- Returns:
- the domainNameLabel value.
-
withDomainNameLabel
public VirtualMachinePublicIpAddressDnsSettingsConfiguration withDomainNameLabel(String domainNameLabel) Set the domainNameLabel property: The Domain name label prefix of the PublicIPAddress resources that will be created. The generated name label is the concatenation of the domain name label and vm network profile unique ID.- Parameters:
domainNameLabel- the domainNameLabel value to set.- Returns:
- the VirtualMachinePublicIpAddressDnsSettingsConfiguration object itself.
-
domainNameLabelScope
Get the domainNameLabelScope property: The Domain name label scope of the PublicIPAddress resources that will be created. The generated name label is the concatenation of the hashed domain name label with policy according to the domain name label scope and vm network profile unique ID.- Returns:
- the domainNameLabelScope value.
-
withDomainNameLabelScope
public VirtualMachinePublicIpAddressDnsSettingsConfiguration withDomainNameLabelScope(DomainNameLabelScopeTypes domainNameLabelScope) Set the domainNameLabelScope property: The Domain name label scope of the PublicIPAddress resources that will be created. The generated name label is the concatenation of the hashed domain name label with policy according to the domain name label scope and vm network profile unique ID.- Parameters:
domainNameLabelScope- the domainNameLabelScope value to set.- Returns:
- the VirtualMachinePublicIpAddressDnsSettingsConfiguration 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<VirtualMachinePublicIpAddressDnsSettingsConfiguration>- Throws:
IOException
-
fromJson
public static VirtualMachinePublicIpAddressDnsSettingsConfiguration fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of VirtualMachinePublicIpAddressDnsSettingsConfiguration from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of VirtualMachinePublicIpAddressDnsSettingsConfiguration 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 VirtualMachinePublicIpAddressDnsSettingsConfiguration.
-