Package io.serverlessworkflow.api.events
Enum EventDefinition.Kind
- java.lang.Object
-
- java.lang.Enum<EventDefinition.Kind>
-
- io.serverlessworkflow.api.events.EventDefinition.Kind
-
- All Implemented Interfaces:
Serializable
,Comparable<EventDefinition.Kind>
- Enclosing class:
- EventDefinition
@Generated("jsonschema2pojo") public static enum EventDefinition.Kind extends Enum<EventDefinition.Kind>
Defines the events as either being consumed or produced by the workflow. Default is consumed
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static EventDefinition.Kind
fromValue(String value)
String
toString()
String
value()
static EventDefinition.Kind
valueOf(String name)
Returns the enum constant of this type with the specified name.static EventDefinition.Kind[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
CONSUMED
public static final EventDefinition.Kind CONSUMED
-
PRODUCED
public static final EventDefinition.Kind PRODUCED
-
-
Method Detail
-
values
public static EventDefinition.Kind[] 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 (EventDefinition.Kind c : EventDefinition.Kind.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static EventDefinition.Kind 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<EventDefinition.Kind>
-
value
public String value()
-
fromValue
public static EventDefinition.Kind fromValue(String value)
-
-