Interface LifecycleHook.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<LifecycleHook.Builder,,LifecycleHook> SdkBuilder<LifecycleHook.Builder,,LifecycleHook> SdkPojo
- Enclosing class:
LifecycleHook
@Mutable
@NotThreadSafe
public static interface LifecycleHook.Builder
extends SdkPojo, CopyableBuilder<LifecycleHook.Builder,LifecycleHook>
-
Method Summary
Modifier and TypeMethodDescriptiondefault LifecycleHook.Builderaction(Consumer<LifecycleHookAction.Builder> action) The action that AgentCore Runtime runs for the hook.action(LifecycleHookAction action) The action that AgentCore Runtime runs for the hook.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
-
action
The action that AgentCore Runtime runs for the hook. Specify exactly one action.
- Parameters:
action- The action that AgentCore Runtime runs for the hook. Specify exactly one action.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
action
The action that AgentCore Runtime runs for the hook. Specify exactly one action.
This is a convenience method that creates an instance of theLifecycleHookAction.Builderavoiding the need to create one manually viaLifecycleHookAction.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toaction(LifecycleHookAction).- Parameters:
action- a consumer that will call methods onLifecycleHookAction.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-