Partilhar via


VirtualMachinePublicIpAddressConfiguration Class

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

Implements

public final class VirtualMachinePublicIpAddressConfiguration
implements JsonSerializable<VirtualMachinePublicIpAddressConfiguration>

Describes a virtual machines IP Configuration's PublicIPAddress configuration.

Constructor Summary

Constructor Description
VirtualMachinePublicIpAddressConfiguration()

Creates an instance of VirtualMachinePublicIpAddressConfiguration class.

Method Summary

Modifier and Type Method and Description
DeleteOptions deleteOption()

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

VirtualMachinePublicIpAddressDnsSettingsConfiguration dnsSettings()

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

static VirtualMachinePublicIpAddressConfiguration fromJson(JsonReader jsonReader)

Reads an instance of VirtualMachinePublicIpAddressConfiguration from the JsonReader.

Integer idleTimeoutInMinutes()

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

List<VirtualMachineIpTag> 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.

IpVersions publicIpAddressVersion()

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

PublicIpAllocationMethod publicIpAllocationMethod()

Get the publicIpAllocationMethod property: Specify the public IP allocation type.

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.

VirtualMachinePublicIpAddressConfiguration withDeleteOption(DeleteOptions deleteOption)

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

VirtualMachinePublicIpAddressConfiguration withDnsSettings(VirtualMachinePublicIpAddressDnsSettingsConfiguration dnsSettings)

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

VirtualMachinePublicIpAddressConfiguration withIdleTimeoutInMinutes(Integer idleTimeoutInMinutes)

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

VirtualMachinePublicIpAddressConfiguration withIpTags(List<VirtualMachineIpTag> ipTags)

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

VirtualMachinePublicIpAddressConfiguration withName(String name)

Set the name property: The publicIP address configuration name.

VirtualMachinePublicIpAddressConfiguration withPublicIpAddressVersion(IpVersions publicIpAddressVersion)

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

VirtualMachinePublicIpAddressConfiguration withPublicIpAllocationMethod(PublicIpAllocationMethod publicIpAllocationMethod)

Set the publicIpAllocationMethod property: Specify the public IP allocation type.

VirtualMachinePublicIpAddressConfiguration withPublicIpPrefix(SubResource publicIpPrefix)

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

VirtualMachinePublicIpAddressConfiguration withSku(PublicIpAddressSku sku)

Set the sku property: Describes the public IP Sku.

Methods inherited from java.lang.Object

Constructor Details

VirtualMachinePublicIpAddressConfiguration

public VirtualMachinePublicIpAddressConfiguration()

Creates an instance of VirtualMachinePublicIpAddressConfiguration class.

Method Details

deleteOption

public DeleteOptions deleteOption()

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

Returns:

the deleteOption value.

dnsSettings

public VirtualMachinePublicIpAddressDnsSettingsConfiguration dnsSettings()

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

Returns:

the dnsSettings value.

fromJson

public static VirtualMachinePublicIpAddressConfiguration fromJson(JsonReader jsonReader)

Reads an instance of VirtualMachinePublicIpAddressConfiguration from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of VirtualMachinePublicIpAddressConfiguration 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 IpVersions 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.

publicIpAllocationMethod

public PublicIpAllocationMethod publicIpAllocationMethod()

Get the publicIpAllocationMethod property: Specify the public IP allocation type.

Returns:

the publicIpAllocationMethod 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 VirtualMachinePublicIpAddressConfiguration withDeleteOption(DeleteOptions deleteOption)

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

Parameters:

deleteOption - the deleteOption value to set.

Returns:

the VirtualMachinePublicIpAddressConfiguration object itself.

withDnsSettings

public VirtualMachinePublicIpAddressConfiguration withDnsSettings(VirtualMachinePublicIpAddressDnsSettingsConfiguration dnsSettings)

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

Parameters:

dnsSettings - the dnsSettings value to set.

Returns:

the VirtualMachinePublicIpAddressConfiguration object itself.

withIdleTimeoutInMinutes

public VirtualMachinePublicIpAddressConfiguration withIdleTimeoutInMinutes(Integer idleTimeoutInMinutes)

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

Parameters:

idleTimeoutInMinutes - the idleTimeoutInMinutes value to set.

Returns:

the VirtualMachinePublicIpAddressConfiguration object itself.

withIpTags

public VirtualMachinePublicIpAddressConfiguration 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 VirtualMachinePublicIpAddressConfiguration object itself.

withName

public VirtualMachinePublicIpAddressConfiguration withName(String name)

Set the name property: The publicIP address configuration name.

Parameters:

name - the name value to set.

Returns:

the VirtualMachinePublicIpAddressConfiguration object itself.

withPublicIpAddressVersion

public VirtualMachinePublicIpAddressConfiguration withPublicIpAddressVersion(IpVersions 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 VirtualMachinePublicIpAddressConfiguration object itself.

withPublicIpAllocationMethod

public VirtualMachinePublicIpAddressConfiguration withPublicIpAllocationMethod(PublicIpAllocationMethod publicIpAllocationMethod)

Set the publicIpAllocationMethod property: Specify the public IP allocation type.

Parameters:

publicIpAllocationMethod - the publicIpAllocationMethod value to set.

Returns:

the VirtualMachinePublicIpAddressConfiguration object itself.

withPublicIpPrefix

public VirtualMachinePublicIpAddressConfiguration withPublicIpPrefix(SubResource publicIpPrefix)

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

Parameters:

publicIpPrefix - the publicIpPrefix value to set.

Returns:

the VirtualMachinePublicIpAddressConfiguration object itself.

withSku

public VirtualMachinePublicIpAddressConfiguration 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 VirtualMachinePublicIpAddressConfiguration object itself.

Applies to