Class CfnHarness.HarnessAfterInvocationHookProperty.Builder
java.lang.Object
software.amazon.awscdk.services.bedrockagentcore.CfnHarness.HarnessAfterInvocationHookProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnHarness.HarnessAfterInvocationHookProperty>
- Enclosing interface:
CfnHarness.HarnessAfterInvocationHookProperty
@Stability(Stable)
public static final class CfnHarness.HarnessAfterInvocationHookProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnHarness.HarnessAfterInvocationHookProperty>
A builder for
CfnHarness.HarnessAfterInvocationHookProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.Sets the value ofCfnHarness.HarnessAfterInvocationHookProperty.getName()target(IResolvable target) Sets the value ofCfnHarness.HarnessAfterInvocationHookProperty.getTarget()Sets the value ofCfnHarness.HarnessAfterInvocationHookProperty.getTarget()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
name
Sets the value ofCfnHarness.HarnessAfterInvocationHookProperty.getName()- Parameters:
name- The unique name of the hook. This parameter is required.- Returns:
this
-
target
@Stability(Stable) public CfnHarness.HarnessAfterInvocationHookProperty.Builder target(IResolvable target) Sets the value ofCfnHarness.HarnessAfterInvocationHookProperty.getTarget()- Parameters:
target- The destination that receives lifecycle hook events. This parameter is required.- Returns:
this
-
target
@Stability(Stable) public CfnHarness.HarnessAfterInvocationHookProperty.Builder target(CfnHarness.HarnessHookTargetProperty target) Sets the value ofCfnHarness.HarnessAfterInvocationHookProperty.getTarget()- Parameters:
target- The destination that receives lifecycle hook events. This parameter is required.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnHarness.HarnessAfterInvocationHookProperty>- Returns:
- a new instance of
CfnHarness.HarnessAfterInvocationHookProperty - Throws:
NullPointerException- if any required attribute was not provided
-