Class State
- java.lang.Object
-
- software.amazon.awssdk.services.iotevents.model.State
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<State.Builder,State>
@Generated("software.amazon.awssdk:codegen") public final class State extends Object implements SdkPojo, Serializable, ToCopyableBuilder<State.Builder,State>
Information that defines a state of a detector.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceState.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static State.Builderbuilder()booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()OnEnterLifecycleonEnter()When entering this state, perform theseactionsif theconditionis TRUE.OnExitLifecycleonExit()When exiting this state, perform theseactionsif the specifiedconditionisTRUE.OnInputLifecycleonInput()When an input is received and theconditionis TRUE, perform the specifiedactions.List<SdkField<?>>sdkFields()static Class<? extends State.Builder>serializableBuilderClass()StringstateName()The name of the state.State.BuildertoBuilder()StringtoString()Returns a string representation of this object.-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
-
-
-
Method Detail
-
stateName
public final String stateName()
The name of the state.
- Returns:
- The name of the state.
-
onInput
public final OnInputLifecycle onInput()
When an input is received and the
conditionis TRUE, perform the specifiedactions.- Returns:
- When an input is received and the
conditionis TRUE, perform the specifiedactions.
-
onEnter
public final OnEnterLifecycle onEnter()
When entering this state, perform these
actionsif theconditionis TRUE.- Returns:
- When entering this state, perform these
actionsif theconditionis TRUE.
-
onExit
public final OnExitLifecycle onExit()
When exiting this state, perform these
actionsif the specifiedconditionisTRUE.- Returns:
- When exiting this state, perform these
actionsif the specifiedconditionisTRUE.
-
toBuilder
public State.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<State.Builder,State>
-
builder
public static State.Builder builder()
-
serializableBuilderClass
public static Class<? extends State.Builder> serializableBuilderClass()
-
equalsBySdkFields
public final boolean equalsBySdkFields(Object obj)
- Specified by:
equalsBySdkFieldsin interfaceSdkPojo
-
toString
public final String toString()
Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
-
-