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