public static enum AmazonInfo.MetaDataKey extends Enum<AmazonInfo.MetaDataKey>
Enum Constant and Description |
---|
accountId |
amiId |
availabilityZone |
instanceId |
instanceType |
localHostname |
localIpv4 |
mac |
publicHostname |
publicIpv4 |
vpcId |
Modifier and Type | Field and Description |
---|---|
protected String |
name |
protected String |
path |
Modifier and Type | Method and Description |
---|---|
String |
getName() |
URL |
getURL(String prepend,
String append)
Override to apply prepend and append.
|
String |
read(InputStream inputStream) |
String |
toString() |
static AmazonInfo.MetaDataKey |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static AmazonInfo.MetaDataKey[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final AmazonInfo.MetaDataKey instanceId
public static final AmazonInfo.MetaDataKey amiId
public static final AmazonInfo.MetaDataKey instanceType
public static final AmazonInfo.MetaDataKey localIpv4
public static final AmazonInfo.MetaDataKey localHostname
public static final AmazonInfo.MetaDataKey availabilityZone
public static final AmazonInfo.MetaDataKey publicHostname
public static final AmazonInfo.MetaDataKey publicIpv4
public static final AmazonInfo.MetaDataKey mac
public static final AmazonInfo.MetaDataKey vpcId
public static final AmazonInfo.MetaDataKey accountId
public static AmazonInfo.MetaDataKey[] values()
for (AmazonInfo.MetaDataKey c : AmazonInfo.MetaDataKey.values()) System.out.println(c);
public static AmazonInfo.MetaDataKey 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
- The prefixappend
- The suffixMalformedURLException
- if the URL is not validpublic String read(InputStream inputStream) throws IOException
inputStream
- The input streamIOException
- if there is an errorpublic String toString()
toString
in class Enum<AmazonInfo.MetaDataKey>