Interface BuildLifecycleHooks.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<BuildLifecycleHooks.Builder,,BuildLifecycleHooks> SdkBuilder<BuildLifecycleHooks.Builder,,BuildLifecycleHooks> SdkPojo
- Enclosing class:
BuildLifecycleHooks
@Mutable
@NotThreadSafe
public static interface BuildLifecycleHooks.Builder
extends SdkPojo, CopyableBuilder<BuildLifecycleHooks.Builder,BuildLifecycleHooks>
-
Method Summary
Modifier and TypeMethodDescriptiondefault BuildLifecycleHooks.Builderwarmup(Consumer<LifecycleHook.Builder> warmup) The hook that warms up your agent before any sessions are created.warmup(LifecycleHook warmup) The hook that warms up your agent before any sessions are created.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
-
warmup
The hook that warms up your agent before any sessions are created. Use this hook to load the resources that your sessions need, such as models, libraries, or caches. Your hook must complete within 120 seconds.
- Parameters:
warmup- The hook that warms up your agent before any sessions are created. Use this hook to load the resources that your sessions need, such as models, libraries, or caches. Your hook must complete within 120 seconds.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
warmup
The hook that warms up your agent before any sessions are created. Use this hook to load the resources that your sessions need, such as models, libraries, or caches. Your hook must complete within 120 seconds.
This is a convenience method that creates an instance of theLifecycleHook.Builderavoiding the need to create one manually viaLifecycleHook.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed towarmup(LifecycleHook).- Parameters:
warmup- a consumer that will call methods onLifecycleHook.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-