Class TransitionOptions.Builder
java.lang.Object
software.amazon.awscdk.services.iotevents.alpha.TransitionOptions.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<TransitionOptions>
- Enclosing interface:
TransitionOptions
@Stability(Experimental)
public static final class TransitionOptions.Builder
extends Object
implements software.amazon.jsii.Builder<TransitionOptions>
A builder for
TransitionOptions
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.Sets the value ofTransitionOptions.getEventName()
Sets the value ofTransitionOptions.getExecuting()
when
(Expression when) Sets the value ofTransitionOptions.getWhen()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
when
Sets the value ofTransitionOptions.getWhen()
- Parameters:
when
- The condition that is used to determine to cause the state transition and the actions. This parameter is required. When this was evaluated totrue
, the state transition and the actions are triggered.- Returns:
this
-
eventName
Sets the value ofTransitionOptions.getEventName()
- Parameters:
eventName
- The name of the event.- Returns:
this
-
executing
@Stability(Experimental) public TransitionOptions.Builder executing(List<? extends IAction> executing) Sets the value ofTransitionOptions.getExecuting()
- Parameters:
executing
- The actions to be performed with the transition.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<TransitionOptions>
- Returns:
- a new instance of
TransitionOptions
- Throws:
NullPointerException
- if any required attribute was not provided
-