public enum EC2MetadataKeys extends Enum<EC2MetadataKeys>
Enum Constant and Description |
---|
accountId |
amiId |
availabilityZone |
instanceId |
instanceType |
localHostname |
localIpv4 |
mac |
publicHostname |
publicIpv4 |
region |
vpcId |
Modifier and Type | Field and Description |
---|---|
static String |
AWS_API_VERSION |
static String |
AWS_METADATA_URL |
protected String |
path |
Modifier and Type | Method and Description |
---|---|
String |
getName() |
URL |
getURL(String prepend,
String append)
The URL for metadata information.
|
String |
toString()
Returns the name of this enum constant, as contained in the
declaration.
|
static EC2MetadataKeys |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static EC2MetadataKeys[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final EC2MetadataKeys instanceId
public static final EC2MetadataKeys amiId
public static final EC2MetadataKeys region
public static final EC2MetadataKeys instanceType
public static final EC2MetadataKeys localIpv4
public static final EC2MetadataKeys localHostname
public static final EC2MetadataKeys availabilityZone
public static final EC2MetadataKeys publicHostname
public static final EC2MetadataKeys publicIpv4
public static final EC2MetadataKeys mac
public static final EC2MetadataKeys vpcId
public static final EC2MetadataKeys accountId
public static final String AWS_API_VERSION
public static final String AWS_METADATA_URL
protected String path
public static EC2MetadataKeys[] values()
for (EC2MetadataKeys c : EC2MetadataKeys.values()) System.out.println(c);
public static EC2MetadataKeys 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 getName()
public URL getURL(String prepend, String append) throws MalformedURLException
prepend
- Building the URL endpointsappend
- Regionname
.MalformedURLException
- If the URL is invalidpublic String toString()
toString
in class Enum<EC2MetadataKeys>