Package org.jclouds.cloudstack.domain
Enum Account.Type
- java.lang.Object
-
- java.lang.Enum<Account.Type>
-
- org.jclouds.cloudstack.domain.Account.Type
-
- All Implemented Interfaces:
Serializable
,Comparable<Account.Type>
- Enclosing class:
- Account
public static enum Account.Type extends Enum<Account.Type>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ADMIN
full API access.DOMAIN_ADMIN
full API access within a domain.UNRECOGNIZED
USER
API access for all the resources associated with their account.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Account.Type
fromValue(String type)
String
toString()
static Account.Type
valueOf(String name)
Returns the enum constant of this type with the specified name.static Account.Type[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
USER
public static final Account.Type USER
API access for all the resources associated with their account. There may be many users in a domain, many domains in a deployment, and many users in a deployment. This is typically the end user
-
ADMIN
public static final Account.Type ADMIN
full API access. This is typically a service administrator or code that executes with complete trust in the service operator's environment.
-
DOMAIN_ADMIN
public static final Account.Type DOMAIN_ADMIN
full API access within a domain. This is the most privileged user that a given customer has. This may be a reseller for the service provider.
-
UNRECOGNIZED
public static final Account.Type UNRECOGNIZED
-
-
Method Detail
-
values
public static Account.Type[] 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 (Account.Type c : Account.Type.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Account.Type 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 nameNullPointerException
- if the argument is null
-
toString
public String toString()
- Overrides:
toString
in classEnum<Account.Type>
-
fromValue
public static Account.Type fromValue(String type)
-
-