public static enum Account.Type extends Enum<Account.Type>
Enum Constant and 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.
|
Modifier and Type | Method and 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.
|
public static final Account.Type USER
public static final Account.Type ADMIN
public static final Account.Type DOMAIN_ADMIN
public static final Account.Type UNRECOGNIZED
public static Account.Type[] values()
for (Account.Type c : Account.Type.values()) System.out.println(c);
public static Account.Type 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 toString()
toString
in class Enum<Account.Type>
public static Account.Type fromValue(String type)
Copyright © 2009-2014 The Apache Software Foundation. All Rights Reserved.