Class VirtualMachinePublicIpAddressConfiguration
- java.lang.Object
-
- com.azure.resourcemanager.compute.models.VirtualMachinePublicIpAddressConfiguration
-
public final class VirtualMachinePublicIpAddressConfiguration extends Object
Describes a virtual machines IP Configuration's PublicIPAddress configuration.
-
-
Constructor Summary
Constructors Constructor Description VirtualMachinePublicIpAddressConfiguration()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DeleteOptionsdeleteOption()Get the deleteOption property: Specify what happens to the public IP address when the VM is deleted.VirtualMachinePublicIpAddressDnsSettingsConfigurationdnsSettings()Get the dnsSettings property: The dns settings to be applied on the publicIP addresses .IntegeridleTimeoutInMinutes()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.Stringname()Get the name property: The publicIP address configuration name.IpVersionspublicIpAddressVersion()Get the publicIpAddressVersion property: Available from Api-Version 2019-07-01 onwards, it represents whether the specific ipconfiguration is IPv4 or IPv6.PublicIpAllocationMethodpublicIpAllocationMethod()Get the publicIpAllocationMethod property: Specify the public IP allocation type.com.azure.core.management.SubResourcepublicIpPrefix()Get the publicIpPrefix property: The PublicIPPrefix from which to allocate publicIP addresses.PublicIpAddressSkusku()Get the sku property: Describes the public IP Sku.voidvalidate()Validates the instance.VirtualMachinePublicIpAddressConfigurationwithDeleteOption(DeleteOptions deleteOption)Set the deleteOption property: Specify what happens to the public IP address when the VM is deleted.VirtualMachinePublicIpAddressConfigurationwithDnsSettings(VirtualMachinePublicIpAddressDnsSettingsConfiguration dnsSettings)Set the dnsSettings property: The dns settings to be applied on the publicIP addresses .VirtualMachinePublicIpAddressConfigurationwithIdleTimeoutInMinutes(Integer idleTimeoutInMinutes)Set the idleTimeoutInMinutes property: The idle timeout of the public IP address.VirtualMachinePublicIpAddressConfigurationwithIpTags(List<VirtualMachineIpTag> ipTags)Set the ipTags property: The list of IP tags associated with the public IP address.VirtualMachinePublicIpAddressConfigurationwithName(String name)Set the name property: The publicIP address configuration name.VirtualMachinePublicIpAddressConfigurationwithPublicIpAddressVersion(IpVersions publicIpAddressVersion)Set the publicIpAddressVersion property: Available from Api-Version 2019-07-01 onwards, it represents whether the specific ipconfiguration is IPv4 or IPv6.VirtualMachinePublicIpAddressConfigurationwithPublicIpAllocationMethod(PublicIpAllocationMethod publicIpAllocationMethod)Set the publicIpAllocationMethod property: Specify the public IP allocation type.VirtualMachinePublicIpAddressConfigurationwithPublicIpPrefix(com.azure.core.management.SubResource publicIpPrefix)Set the publicIpPrefix property: The PublicIPPrefix from which to allocate publicIP addresses.VirtualMachinePublicIpAddressConfigurationwithSku(PublicIpAddressSku sku)Set the sku property: Describes the public IP Sku.
-
-
-
Method Detail
-
name
public String name()
Get the name property: The publicIP address configuration name.- Returns:
- the name value.
-
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.
-
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.
-
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.
-
idleTimeoutInMinutes
public Integer idleTimeoutInMinutes()
Get the idleTimeoutInMinutes property: The idle timeout of the public IP address.- Returns:
- the idleTimeoutInMinutes value.
-
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.
-
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.
-
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.
-
dnsSettings
public VirtualMachinePublicIpAddressDnsSettingsConfiguration dnsSettings()
Get the dnsSettings property: The dns settings to be applied on the publicIP addresses .- Returns:
- the dnsSettings value.
-
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.
-
ipTags
public List<VirtualMachineIpTag> ipTags()
Get the ipTags property: The list of IP tags associated with the public IP address.- Returns:
- the ipTags value.
-
withIpTags
public VirtualMachinePublicIpAddressConfiguration withIpTags(List<VirtualMachineIpTag> 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.
-
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 VirtualMachinePublicIpAddressConfiguration 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 VirtualMachinePublicIpAddressConfiguration object itself.
-
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.
-
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.
-
publicIpAllocationMethod
public PublicIpAllocationMethod publicIpAllocationMethod()
Get the publicIpAllocationMethod property: Specify the public IP allocation type.- Returns:
- the publicIpAllocationMethod value.
-
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.
-
validate
public void validate()
Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
-