VirtualMachinePublicIpAddressConfiguration Class
- java.
lang. Object - com.
azure. resourcemanager. compute. models. VirtualMachinePublicIpAddressConfiguration
- com.
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 Virtual |
Method Summary
Modifier and Type | Method and Description |
---|---|
Delete |
deleteOption()
Get the delete |
Virtual |
dnsSettings()
Get the dns |
static
Virtual |
fromJson(JsonReader jsonReader)
Reads an instance of Virtual |
Integer |
idleTimeoutInMinutes()
Get the idle |
List<Virtual |
ipTags()
Get the ip |
String |
name()
Get the name property: The publicIP address configuration name. |
Ip |
publicIpAddressVersion()
Get the public |
Public |
publicIpAllocationMethod()
Get the public |
Sub |
publicIpPrefix()
Get the public |
Public |
sku()
Get the sku property: Describes the public IP Sku. |
Json |
toJson(JsonWriter jsonWriter) |
void |
validate()
Validates the instance. |
Virtual |
withDeleteOption(DeleteOptions deleteOption)
Set the delete |
Virtual |
withDnsSettings(VirtualMachinePublicIpAddressDnsSettingsConfiguration dnsSettings)
Set the dns |
Virtual |
withIdleTimeoutInMinutes(Integer idleTimeoutInMinutes)
Set the idle |
Virtual |
withIpTags(List<VirtualMachineIpTag> ipTags)
Set the ip |
Virtual |
withName(String name)
Set the name property: The publicIP address configuration name. |
Virtual |
withPublicIpAddressVersion(IpVersions publicIpAddressVersion)
Set the public |
Virtual |
withPublicIpAllocationMethod(PublicIpAllocationMethod publicIpAllocationMethod)
Set the public |
Virtual |
withPublicIpPrefix(SubResource publicIpPrefix)
Set the public |
Virtual |
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:
dnsSettings
public VirtualMachinePublicIpAddressDnsSettingsConfiguration dnsSettings()
Get the dnsSettings property: The dns settings to be applied on the publicIP addresses .
Returns:
fromJson
public static VirtualMachinePublicIpAddressConfiguration fromJson(JsonReader jsonReader)
Reads an instance of VirtualMachinePublicIpAddressConfiguration from the JsonReader.
Parameters:
Returns:
Throws:
idleTimeoutInMinutes
public Integer idleTimeoutInMinutes()
Get the idleTimeoutInMinutes property: The idle timeout of the public IP address.
Returns:
ipTags
public List
Get the ipTags property: The list of IP tags associated with the public IP address.
Returns:
name
public String name()
Get the name property: The publicIP address configuration name.
Returns:
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:
publicIpAllocationMethod
public PublicIpAllocationMethod publicIpAllocationMethod()
Get the publicIpAllocationMethod property: Specify the public IP allocation type.
Returns:
publicIpPrefix
public SubResource publicIpPrefix()
Get the publicIpPrefix property: The PublicIPPrefix from which to allocate publicIP addresses.
Returns:
sku
public PublicIpAddressSku sku()
Get the sku property: Describes the public IP Sku. It can only be set with OrchestrationMode as Flexible.
Returns:
toJson
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:
Returns:
withDnsSettings
public VirtualMachinePublicIpAddressConfiguration withDnsSettings(VirtualMachinePublicIpAddressDnsSettingsConfiguration dnsSettings)
Set the dnsSettings property: The dns settings to be applied on the publicIP addresses .
Parameters:
Returns:
withIdleTimeoutInMinutes
public VirtualMachinePublicIpAddressConfiguration withIdleTimeoutInMinutes(Integer idleTimeoutInMinutes)
Set the idleTimeoutInMinutes property: The idle timeout of the public IP address.
Parameters:
Returns:
withIpTags
public VirtualMachinePublicIpAddressConfiguration withIpTags(List
Set the ipTags property: The list of IP tags associated with the public IP address.
Parameters:
Returns:
withName
public VirtualMachinePublicIpAddressConfiguration withName(String name)
Set the name property: The publicIP address configuration name.
Parameters:
Returns:
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:
Returns:
withPublicIpAllocationMethod
public VirtualMachinePublicIpAddressConfiguration withPublicIpAllocationMethod(PublicIpAllocationMethod publicIpAllocationMethod)
Set the publicIpAllocationMethod property: Specify the public IP allocation type.
Parameters:
Returns:
withPublicIpPrefix
public VirtualMachinePublicIpAddressConfiguration withPublicIpPrefix(SubResource publicIpPrefix)
Set the publicIpPrefix property: The PublicIPPrefix from which to allocate publicIP addresses.
Parameters:
Returns:
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:
Returns:
Applies to
Azure SDK for Java