Class VirtualMachineScaleSetPublicIpAddressConfiguration
java.lang.Object
com.azure.resourcemanager.compute.models.VirtualMachineScaleSetPublicIpAddressConfiguration
- All Implemented Interfaces:
com.azure.json.JsonSerializable<VirtualMachineScaleSetPublicIpAddressConfiguration>
public final class VirtualMachineScaleSetPublicIpAddressConfiguration
extends Object
implements com.azure.json.JsonSerializable<VirtualMachineScaleSetPublicIpAddressConfiguration>
Describes a virtual machines scale set IP Configuration's PublicIPAddress configuration.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of VirtualMachineScaleSetPublicIpAddressConfiguration 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 VirtualMachineScaleSetPublicIpAddressConfiguration from the JsonReader.Get the idleTimeoutInMinutes property: The idle timeout of the public IP address.ipTags()Get the ipTags property: The list of IP tags associated with the public IP address.name()Get the name property: The publicIP address configuration name.Get the publicIpAddressVersion property: Available from Api-Version 2019-07-01 onwards, it represents whether the specific ipconfiguration is IPv4 or IPv6.com.azure.core.management.SubResourceGet the publicIpPrefix property: The PublicIPPrefix from which to allocate publicIP addresses.sku()Get the sku property: Describes the public IP Sku.tags()Get the tags property: Resource tags applied to the publicIP address created by this PublicIPAddressConfiguration.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.withIpTags(List<VirtualMachineScaleSetIpTag> ipTags) Set the ipTags property: The list of IP tags associated with the public IP address.Set the name property: The publicIP address configuration name.withPublicIpAddressVersion(IpVersion publicIpAddressVersion) Set the publicIpAddressVersion property: Available from Api-Version 2019-07-01 onwards, it represents whether the specific ipconfiguration is IPv4 or IPv6.withPublicIpPrefix(com.azure.core.management.SubResource publicIpPrefix) Set the publicIpPrefix property: The PublicIPPrefix from which to allocate publicIP addresses.Set the sku property: Describes the public IP Sku.Set the tags property: Resource tags applied to the publicIP address created by this PublicIPAddressConfiguration.Methods inherited from class 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
-
VirtualMachineScaleSetPublicIpAddressConfiguration
public VirtualMachineScaleSetPublicIpAddressConfiguration()Creates an instance of VirtualMachineScaleSetPublicIpAddressConfiguration class.
-
-
Method Details
-
name
Get the name property: The publicIP address configuration name.- Returns:
- the name value.
-
withName
Set the name property: The publicIP address configuration name.- Parameters:
name- the name value to set.- Returns:
- the VirtualMachineScaleSetPublicIpAddressConfiguration object itself.
-
sku
Get the sku property: Describes the public IP Sku. It can only be set with OrchestrationMode as Flexible.- Returns:
- the sku value.
-
withSku
Set the sku property: Describes the public IP Sku. It can only be set with OrchestrationMode as Flexible.- Parameters:
sku- the sku value to set.- Returns:
- the VirtualMachineScaleSetPublicIpAddressConfiguration object itself.
-
tags
-
withTags
Set the tags property: Resource tags applied to the publicIP address created by this PublicIPAddressConfiguration.- Parameters:
tags- the tags value to set.- Returns:
- the VirtualMachineScaleSetPublicIpAddressConfiguration object itself.
-
idleTimeoutInMinutes
Get the idleTimeoutInMinutes property: The idle timeout of the public IP address.- Returns:
- the idleTimeoutInMinutes value.
-
withIdleTimeoutInMinutes
public VirtualMachineScaleSetPublicIpAddressConfiguration withIdleTimeoutInMinutes(Integer idleTimeoutInMinutes) Set the idleTimeoutInMinutes property: The idle timeout of the public IP address.- Parameters:
idleTimeoutInMinutes- the idleTimeoutInMinutes value to set.- Returns:
- the VirtualMachineScaleSetPublicIpAddressConfiguration object itself.
-
dnsSettings
Get the dnsSettings property: The dns settings to be applied on the publicIP addresses .- Returns:
- the dnsSettings value.
-
withDnsSettings
public VirtualMachineScaleSetPublicIpAddressConfiguration 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 VirtualMachineScaleSetPublicIpAddressConfiguration object itself.
-
ipTags
Get the ipTags property: The list of IP tags associated with the public IP address.- Returns:
- the ipTags value.
-
withIpTags
public VirtualMachineScaleSetPublicIpAddressConfiguration withIpTags(List<VirtualMachineScaleSetIpTag> ipTags) Set the ipTags property: The list of IP tags associated with the public IP address.- Parameters:
ipTags- the ipTags value to set.- Returns:
- the VirtualMachineScaleSetPublicIpAddressConfiguration 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 VirtualMachineScaleSetPublicIpAddressConfiguration 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 VirtualMachineScaleSetPublicIpAddressConfiguration object itself.
-
publicIpAddressVersion
Get the publicIpAddressVersion property: Available from Api-Version 2019-07-01 onwards, it represents whether the specific ipconfiguration is IPv4 or IPv6. Default is taken as IPv4. Possible values are: 'IPv4' and 'IPv6'.- Returns:
- the publicIpAddressVersion value.
-
withPublicIpAddressVersion
public VirtualMachineScaleSetPublicIpAddressConfiguration withPublicIpAddressVersion(IpVersion publicIpAddressVersion) Set the publicIpAddressVersion property: Available from Api-Version 2019-07-01 onwards, it represents whether the specific ipconfiguration is IPv4 or IPv6. Default is taken as IPv4. Possible values are: 'IPv4' and 'IPv6'.- Parameters:
publicIpAddressVersion- the publicIpAddressVersion value to set.- Returns:
- the VirtualMachineScaleSetPublicIpAddressConfiguration 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 VirtualMachineScaleSetPublicIpAddressConfiguration 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 VirtualMachineScaleSetPublicIpAddressConfiguration 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<VirtualMachineScaleSetPublicIpAddressConfiguration>- Throws:
IOException
-
fromJson
public static VirtualMachineScaleSetPublicIpAddressConfiguration fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of VirtualMachineScaleSetPublicIpAddressConfiguration from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of VirtualMachineScaleSetPublicIpAddressConfiguration 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 VirtualMachineScaleSetPublicIpAddressConfiguration.
-