Interface OnExitLifecycle.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<OnExitLifecycle.Builder,,OnExitLifecycle> SdkBuilder<OnExitLifecycle.Builder,,OnExitLifecycle> SdkPojo
- Enclosing class:
OnExitLifecycle
@Mutable
@NotThreadSafe
public static interface OnExitLifecycle.Builder
extends SdkPojo, CopyableBuilder<OnExitLifecycle.Builder,OnExitLifecycle>
-
Method Summary
Modifier and TypeMethodDescriptionevents(Collection<Event> events) Specifies theactionsthat are performed when the state is exited and theconditionisTRUE.events(Consumer<Event.Builder>... events) Specifies theactionsthat are performed when the state is exited and theconditionisTRUE.Specifies theactionsthat are performed when the state is exited and theconditionisTRUE.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
events
Specifies the
actionsthat are performed when the state is exited and theconditionisTRUE.- Parameters:
events- Specifies theactionsthat are performed when the state is exited and theconditionisTRUE.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
events
Specifies the
actionsthat are performed when the state is exited and theconditionisTRUE.- Parameters:
events- Specifies theactionsthat are performed when the state is exited and theconditionisTRUE.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
events
Specifies the
This is a convenience method that creates an instance of theactionsthat are performed when the state is exited and theconditionisTRUE.Event.Builderavoiding the need to create one manually viaEvent.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toevents(List<Event>).- Parameters:
events- a consumer that will call methods onEvent.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-