Interface Event.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<Event.Builder,
,Event> SdkBuilder<Event.Builder,
,Event> SdkPojo
- Enclosing class:
Event
@Mutable
@NotThreadSafe
public static interface Event.Builder
extends SdkPojo, CopyableBuilder<Event.Builder,Event>
-
Method Summary
Modifier and TypeMethodDescriptionactions
(Collection<Action> actions) The actions to be performed.actions
(Consumer<Action.Builder>... actions) The actions to be performed.The actions to be performed.Optional.The name of the event.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
eventName
The name of the event.
- Parameters:
eventName
- The name of the event.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
condition
Optional. The Boolean expression that, when TRUE, causes the
actions
to be performed. If not present, the actions are performed (=TRUE). If the expression result is not a Boolean value, the actions are not performed (=FALSE).- Parameters:
condition
- Optional. The Boolean expression that, when TRUE, causes theactions
to be performed. If not present, the actions are performed (=TRUE). If the expression result is not a Boolean value, the actions are not performed (=FALSE).- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
actions
The actions to be performed.
- Parameters:
actions
- The actions to be performed.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
actions
The actions to be performed.
- Parameters:
actions
- The actions to be performed.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
actions
The actions to be performed.
This is a convenience method that creates an instance of theAction.Builder
avoiding the need to create one manually viaAction.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toactions(List<Action>)
.- Parameters:
actions
- a consumer that will call methods onAction.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-