public enum EC2MetadataKeys extends java.lang.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 java.lang.String |
AWS_API_VERSION |
static java.lang.String |
AWS_METADATA_URL |
protected java.lang.String |
path |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getName() |
java.net.URL |
getURL(java.lang.String prepend,
java.lang.String append)
The URL for metadata information.
|
java.lang.String |
toString()
Returns the name of this enum constant, as contained in the
declaration.
|
static EC2MetadataKeys |
valueOf(java.lang.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 java.lang.String AWS_API_VERSION
public static final java.lang.String AWS_METADATA_URL
protected java.lang.String path
public static EC2MetadataKeys[] values()
for (EC2MetadataKeys c : EC2MetadataKeys.values()) System.out.println(c);
public static EC2MetadataKeys valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic java.lang.String getName()
public java.net.URL getURL(java.lang.String prepend, java.lang.String append) throws java.net.MalformedURLException
prepend
- Building the URL endpointsappend
- Regionname
.java.net.MalformedURLException
- If the URL is invalidpublic java.lang.String toString()
toString
in class java.lang.Enum<EC2MetadataKeys>