public static enum PublicIp.Scope extends Enum<PublicIp.Scope>
Whether the public IP is regional or specific to a particular availability domain.
REGION
: The public IP exists within a region and can be assigned to a private IP
in any availability domain in the region. Reserved public IPs have scope
= REGION
.
AVAILABILITY_DOMAIN
: The public IP exists within the availability domain of the private IP
it's assigned to, which is specified by the availabilityDomain
property of the public IP object.
Ephemeral public IPs have scope
= AVAILABILITY_DOMAIN
.
Enum Constant and Description |
---|
AvailabilityDomain |
Region |
Modifier and Type | Method and Description |
---|---|
static PublicIp.Scope |
create(String key) |
String |
getValue() |
static PublicIp.Scope |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static PublicIp.Scope[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final PublicIp.Scope Region
public static final PublicIp.Scope AvailabilityDomain
public static PublicIp.Scope[] values()
for (PublicIp.Scope c : PublicIp.Scope.values()) System.out.println(c);
public static PublicIp.Scope 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 String getValue()
public static PublicIp.Scope create(String key)
Copyright © 2016–2023. All rights reserved.