VirtualMachineScaleSetPublicIpAddressConfiguration Class

  • java.lang.Object
    • com.azure.resourcemanager.compute.models.VirtualMachineScaleSetPublicIpAddressConfiguration

Implements

public final class VirtualMachineScaleSetPublicIpAddressConfiguration
implements JsonSerializable<VirtualMachineScaleSetPublicIpAddressConfiguration>

Describes a virtual machines scale set IP Configuration's PublicIPAddress configuration.

Constructor Summary

Constructor Description
VirtualMachineScaleSetPublicIpAddressConfiguration()

Creates an instance of VirtualMachineScaleSetPublicIpAddressConfiguration class.

Method Summary

Modifier and Type Method and Description
DeleteOptions deleteOption()

Get the deleteOption property: Specify what happens to the public IP when the VM is deleted.

VirtualMachineScaleSetPublicIpAddressConfigurationDnsSettings dnsSettings()

Get the dnsSettings property: The dns settings to be applied on the publicIP addresses .

static VirtualMachineScaleSetPublicIpAddressConfiguration fromJson(JsonReader jsonReader)

Reads an instance of VirtualMachineScaleSetPublicIpAddressConfiguration from the JsonReader.

Integer idleTimeoutInMinutes()

Get the idleTimeoutInMinutes property: The idle timeout of the public IP address.

List<VirtualMachineScaleSetIpTag> ipTags()

Get the ipTags property: The list of IP tags associated with the public IP address.

String name()

Get the name property: The publicIP address configuration name.

IpVersion publicIpAddressVersion()

Get the publicIpAddressVersion property: Available from Api-Version 2019-07-01 onwards, it represents whether the specific ipconfiguration is IPv4 or IPv6.

SubResource publicIpPrefix()

Get the publicIpPrefix property: The PublicIPPrefix from which to allocate publicIP addresses.

PublicIpAddressSku sku()

Get the sku property: Describes the public IP Sku.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

VirtualMachineScaleSetPublicIpAddressConfiguration withDeleteOption(DeleteOptions deleteOption)

Set the deleteOption property: Specify what happens to the public IP when the VM is deleted.

VirtualMachineScaleSetPublicIpAddressConfiguration withDnsSettings(VirtualMachineScaleSetPublicIpAddressConfigurationDnsSettings dnsSettings)

Set the dnsSettings property: The dns settings to be applied on the publicIP addresses .

VirtualMachineScaleSetPublicIpAddressConfiguration withIdleTimeoutInMinutes(Integer idleTimeoutInMinutes)

Set the idleTimeoutInMinutes property: The idle timeout of the public IP address.

VirtualMachineScaleSetPublicIpAddressConfiguration withIpTags(List<VirtualMachineScaleSetIpTag> ipTags)

Set the ipTags property: The list of IP tags associated with the public IP address.

VirtualMachineScaleSetPublicIpAddressConfiguration withName(String name)

Set the name property: The publicIP address configuration name.

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.

VirtualMachineScaleSetPublicIpAddressConfiguration withPublicIpPrefix(SubResource publicIpPrefix)

Set the publicIpPrefix property: The PublicIPPrefix from which to allocate publicIP addresses.

VirtualMachineScaleSetPublicIpAddressConfiguration withSku(PublicIpAddressSku sku)

Set the sku property: Describes the public IP Sku.

Methods inherited from java.lang.Object

Constructor Details

VirtualMachineScaleSetPublicIpAddressConfiguration

public VirtualMachineScaleSetPublicIpAddressConfiguration()

Creates an instance of VirtualMachineScaleSetPublicIpAddressConfiguration class.

Method Details

deleteOption

public DeleteOptions deleteOption()

Get the deleteOption property: Specify what happens to the public IP when the VM is deleted.

Returns:

the deleteOption value.

dnsSettings

public VirtualMachineScaleSetPublicIpAddressConfigurationDnsSettings dnsSettings()

Get the dnsSettings property: The dns settings to be applied on the publicIP addresses .

Returns:

the dnsSettings value.

fromJson

public static VirtualMachineScaleSetPublicIpAddressConfiguration fromJson(JsonReader jsonReader)

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:

IOException

- If the deserialized JSON object was missing any required properties.

idleTimeoutInMinutes

public Integer idleTimeoutInMinutes()

Get the idleTimeoutInMinutes property: The idle timeout of the public IP address.

Returns:

the idleTimeoutInMinutes value.

ipTags

public List ipTags()

Get the ipTags property: The list of IP tags associated with the public IP address.

Returns:

the ipTags value.

name

public String name()

Get the name property: The publicIP address configuration name.

Returns:

the name value.

publicIpAddressVersion

public IpVersion 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.

publicIpPrefix

public SubResource publicIpPrefix()

Get the publicIpPrefix property: The PublicIPPrefix from which to allocate publicIP addresses.

Returns:

the publicIpPrefix value.

sku

public PublicIpAddressSku sku()

Get the sku property: Describes the public IP Sku. It can only be set with OrchestrationMode as Flexible.

Returns:

the sku value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

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.

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.

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.

withIpTags

public VirtualMachineScaleSetPublicIpAddressConfiguration withIpTags(List 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.

withName

public VirtualMachineScaleSetPublicIpAddressConfiguration withName(String name)

Set the name property: The publicIP address configuration name.

Parameters:

name - the name value to set.

Returns:

the VirtualMachineScaleSetPublicIpAddressConfiguration object itself.

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.

withPublicIpPrefix

public VirtualMachineScaleSetPublicIpAddressConfiguration withPublicIpPrefix(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.

withSku

public VirtualMachineScaleSetPublicIpAddressConfiguration withSku(PublicIpAddressSku sku)

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.

Applies to