org.jclouds.joyent.cloudapi.v6_5.reference
Enum Metadata

java.lang.Object
  extended by java.lang.Enum<Metadata>
      extended by org.jclouds.joyent.cloudapi.v6_5.reference.Metadata
All Implemented Interfaces:
Serializable, Comparable<Metadata>

public enum Metadata
extends Enum<Metadata>

Known keys for metadata

Author:
Adrian Cole

Enum Constant Summary
CREDENTIALS
          If the dataset you create a machine from is set to generate passwords for you, the username/password pairs will be returned in the metadata response as a nested object, like:
ROOT_AUTHORIZED_KEYS
           
 
Method Summary
 String key()
           
 Type type()
          type of the value;
static Metadata valueOf(String name)
          Returns the enum constant of this type with the specified name.
static Metadata[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

ROOT_AUTHORIZED_KEYS

public static final Metadata ROOT_AUTHORIZED_KEYS

CREDENTIALS

public static final Metadata CREDENTIALS
If the dataset you create a machine from is set to generate passwords for you, the username/password pairs will be returned in the metadata response as a nested object, like:
 "credentials": {
     "root": "s8v9kuht5e",
     "admin": "mf4bteqhpy"
   }
 

Method Detail

values

public static Metadata[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (Metadata c : Metadata.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static Metadata valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
IllegalArgumentException - if this enum type has no constant with the specified name
NullPointerException - if the argument is null

key

public String key()

type

public Type type()
type of the value;



Copyright © 2009-2012 jclouds. All Rights Reserved.