Interface HarnessAfterInvocationHook.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<HarnessAfterInvocationHook.Builder,,HarnessAfterInvocationHook> SdkBuilder<HarnessAfterInvocationHook.Builder,,HarnessAfterInvocationHook> SdkPojo
- Enclosing class:
HarnessAfterInvocationHook
@Mutable
@NotThreadSafe
public static interface HarnessAfterInvocationHook.Builder
extends SdkPojo, CopyableBuilder<HarnessAfterInvocationHook.Builder,HarnessAfterInvocationHook>
-
Method Summary
Modifier and TypeMethodDescriptionThe name of the hook.target(Consumer<HarnessHookTarget.Builder> target) The target that receives the hook event.target(HarnessHookTarget target) The target that receives the hook event.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
-
name
The name of the hook.
- Parameters:
name- The name of the hook.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
target
The target that receives the hook event.
- Parameters:
target- The target that receives the hook event.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
target
The target that receives the hook event.
This is a convenience method that creates an instance of theHarnessHookTarget.Builderavoiding the need to create one manually viaHarnessHookTarget.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed totarget(HarnessHookTarget).- Parameters:
target- a consumer that will call methods onHarnessHookTarget.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-