Package org.eclipse.hono.util
Enum TenantConstants.TenantAction
- java.lang.Object
-
- java.lang.Enum<TenantConstants.TenantAction>
-
- org.eclipse.hono.util.TenantConstants.TenantAction
-
- All Implemented Interfaces:
Serializable
,Comparable<TenantConstants.TenantAction>
- Enclosing class:
- TenantConstants
public static enum TenantConstants.TenantAction extends Enum<TenantConstants.TenantAction>
Request actions that belong to the Tenant API.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static TenantConstants.TenantAction
from(String subject)
Construct a TenantAction from a subject.static TenantConstants.TenantAction
valueOf(String name)
Returns the enum constant of this type with the specified name.static TenantConstants.TenantAction[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
add
public static final TenantConstants.TenantAction add
The add Tenant operation.
-
get
public static final TenantConstants.TenantAction get
The get Tenant operation.
-
update
public static final TenantConstants.TenantAction update
The update Tenant operation.
-
remove
public static final TenantConstants.TenantAction remove
The remove Tenant operation.
-
custom
public static final TenantConstants.TenantAction custom
The custom operation.
-
-
Method Detail
-
values
public static TenantConstants.TenantAction[] 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 (TenantConstants.TenantAction c : TenantConstants.TenantAction.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static TenantConstants.TenantAction 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
-
from
public static TenantConstants.TenantAction from(String subject)
Construct a TenantAction from a subject.- Parameters:
subject
- The subject from which the TenantAction needs to be constructed.- Returns:
- TenantAction The TenantAction as enum, or
custom
otherwise.
-
-