public static enum PublicIp.Lifetime extends Enum<PublicIp.Lifetime> implements BmcEnum
Defines when the public IP is deleted and released back to Oracle’s public IP pool.
EPHEMERAL
: The lifetime is tied to the lifetime of its assigned entity. An
ephemeral public IP must always be assigned to an entity. If the assigned entity is a private
IP, the ephemeral public IP is automatically deleted when the private IP is deleted, when the
VNIC is terminated, or when the instance is terminated. If the assigned entity is a NatGateway
, the ephemeral public IP is automatically deleted when the NAT gateway is
terminated.
RESERVED
: You control the public IP's lifetime. You can delete a reserved public
IP whenever you like. It does not need to be assigned to a private IP at all times.
For more information and comparison of the two types, see [Public IP Addresses](https://docs.cloud.oracle.com/iaas/Content/Network/Tasks/managingpublicIPs.htm).
Modifier and Type | Method and Description |
---|---|
static PublicIp.Lifetime |
create(String key) |
String |
getValue() |
static PublicIp.Lifetime |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static PublicIp.Lifetime[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final PublicIp.Lifetime Ephemeral
public static final PublicIp.Lifetime Reserved
public static PublicIp.Lifetime[] values()
for (PublicIp.Lifetime c : PublicIp.Lifetime.values()) System.out.println(c);
public static PublicIp.Lifetime valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic static PublicIp.Lifetime create(String key)
Copyright © 2016–2024. All rights reserved.