Class Event.Builder
java.lang.Object
software.amazon.awscdk.services.iotevents.alpha.Event.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<Event>
- Enclosing interface:
Event
@Stability(Experimental)
public static final class Event.Builder
extends Object
implements software.amazon.jsii.Builder<Event>
A builder for
Event
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionSets the value ofEvent.getActions()
build()
Builds the configured instance.condition
(Expression condition) Sets the value ofEvent.getCondition()
Sets the value ofEvent.getEventName()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
eventName
Sets the value ofEvent.getEventName()
- Parameters:
eventName
- The name of the event. This parameter is required.- Returns:
this
-
actions
Sets the value ofEvent.getActions()
- Parameters:
actions
- The actions to be performed.- Returns:
this
-
condition
Sets the value ofEvent.getCondition()
- Parameters:
condition
- The Boolean expression that, whentrue
, causes the actions to be performed.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<Event>
- Returns:
- a new instance of
Event
- Throws:
NullPointerException
- if any required attribute was not provided
-