Class VirtualMachineScaleSetUpdatePublicIpAddressConfigurationProperties
java.lang.Object
com.azure.resourcemanager.compute.fluent.models.VirtualMachineScaleSetUpdatePublicIpAddressConfigurationProperties
- All Implemented Interfaces:
com.azure.json.JsonSerializable<VirtualMachineScaleSetUpdatePublicIpAddressConfigurationProperties>
public final class VirtualMachineScaleSetUpdatePublicIpAddressConfigurationProperties
extends Object
implements com.azure.json.JsonSerializable<VirtualMachineScaleSetUpdatePublicIpAddressConfigurationProperties>
Describes a virtual machines scale set IP Configuration's PublicIPAddress configuration.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of VirtualMachineScaleSetUpdatePublicIpAddressConfigurationProperties class. -
Method Summary
Modifier and TypeMethodDescriptionGet the deleteOption property: Specify what happens to the public IP when the VM is deleted.Get the dnsSettings property: The dns settings to be applied on the publicIP addresses .fromJson(com.azure.json.JsonReader jsonReader) Reads an instance of VirtualMachineScaleSetUpdatePublicIpAddressConfigurationProperties from the JsonReader.Get the idleTimeoutInMinutes property: The idle timeout of the public IP address.com.azure.core.management.SubResourceGet the publicIpPrefix property: The PublicIPPrefix from which to allocate publicIP addresses.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withDeleteOption(DeleteOptions deleteOption) Set the deleteOption property: Specify what happens to the public IP when the VM is deleted.Set the dnsSettings property: The dns settings to be applied on the publicIP addresses .withIdleTimeoutInMinutes(Integer idleTimeoutInMinutes) Set the idleTimeoutInMinutes property: The idle timeout of the public IP address.withPublicIpPrefix(com.azure.core.management.SubResource publicIpPrefix) Set the publicIpPrefix property: The PublicIPPrefix from which to allocate publicIP addresses.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
-
VirtualMachineScaleSetUpdatePublicIpAddressConfigurationProperties
public VirtualMachineScaleSetUpdatePublicIpAddressConfigurationProperties()Creates an instance of VirtualMachineScaleSetUpdatePublicIpAddressConfigurationProperties class.
-
-
Method Details
-
idleTimeoutInMinutes
Get the idleTimeoutInMinutes property: The idle timeout of the public IP address.- Returns:
- the idleTimeoutInMinutes value.
-
withIdleTimeoutInMinutes
public VirtualMachineScaleSetUpdatePublicIpAddressConfigurationProperties withIdleTimeoutInMinutes(Integer idleTimeoutInMinutes) Set the idleTimeoutInMinutes property: The idle timeout of the public IP address.- Parameters:
idleTimeoutInMinutes- the idleTimeoutInMinutes value to set.- Returns:
- the VirtualMachineScaleSetUpdatePublicIpAddressConfigurationProperties object itself.
-
dnsSettings
Get the dnsSettings property: The dns settings to be applied on the publicIP addresses .- Returns:
- the dnsSettings value.
-
withDnsSettings
public VirtualMachineScaleSetUpdatePublicIpAddressConfigurationProperties withDnsSettings(VirtualMachineScaleSetPublicIpAddressConfigurationDnsSettings dnsSettings) Set the dnsSettings property: The dns settings to be applied on the publicIP addresses .- Parameters:
dnsSettings- the dnsSettings value to set.- Returns:
- the VirtualMachineScaleSetUpdatePublicIpAddressConfigurationProperties object itself.
-
publicIpPrefix
public com.azure.core.management.SubResource publicIpPrefix()Get the publicIpPrefix property: The PublicIPPrefix from which to allocate publicIP addresses.- Returns:
- the publicIpPrefix value.
-
withPublicIpPrefix
public VirtualMachineScaleSetUpdatePublicIpAddressConfigurationProperties withPublicIpPrefix(com.azure.core.management.SubResource publicIpPrefix) Set the publicIpPrefix property: The PublicIPPrefix from which to allocate publicIP addresses.- Parameters:
publicIpPrefix- the publicIpPrefix value to set.- Returns:
- the VirtualMachineScaleSetUpdatePublicIpAddressConfigurationProperties object itself.
-
deleteOption
Get the deleteOption property: Specify what happens to the public IP when the VM is deleted.- Returns:
- the deleteOption value.
-
withDeleteOption
public VirtualMachineScaleSetUpdatePublicIpAddressConfigurationProperties withDeleteOption(DeleteOptions deleteOption) Set the deleteOption property: Specify what happens to the public IP when the VM is deleted.- Parameters:
deleteOption- the deleteOption value to set.- Returns:
- the VirtualMachineScaleSetUpdatePublicIpAddressConfigurationProperties 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<VirtualMachineScaleSetUpdatePublicIpAddressConfigurationProperties>- Throws:
IOException
-
fromJson
public static VirtualMachineScaleSetUpdatePublicIpAddressConfigurationProperties fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of VirtualMachineScaleSetUpdatePublicIpAddressConfigurationProperties from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of VirtualMachineScaleSetUpdatePublicIpAddressConfigurationProperties 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 VirtualMachineScaleSetUpdatePublicIpAddressConfigurationProperties.
-