Class Hooks.Builder
java.lang.Object
software.amazon.awscdk.cloudassembly.schema.Hooks.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<Hooks>
- Enclosing interface:
- Hooks
@Stability(Stable)
public static final class Hooks.Builder
extends Object
implements software.amazon.jsii.Builder<Hooks>
A builder for
Hooks-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.postDeploy(List<String> postDeploy) Sets the value ofHooks.getPostDeploy()postDestroy(List<String> postDestroy) Sets the value ofHooks.getPostDestroy()Sets the value ofHooks.getPreDeploy()preDestroy(List<String> preDestroy) Sets the value ofHooks.getPreDestroy()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
postDeploy
Sets the value ofHooks.getPostDeploy()- Parameters:
postDeploy- Commands to run prior after deploying the cdk stacks in the integration test.- Returns:
this
-
postDestroy
Sets the value ofHooks.getPostDestroy()- Parameters:
postDestroy- Commands to run after destroying the cdk stacks in the integration test.- Returns:
this
-
preDeploy
Sets the value ofHooks.getPreDeploy()- Parameters:
preDeploy- Commands to run prior to deploying the cdk stacks in the integration test.- Returns:
this
-
preDestroy
Sets the value ofHooks.getPreDestroy()- Parameters:
preDestroy- Commands to run prior to destroying the cdk stacks in the integration test.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<Hooks>- Returns:
- a new instance of
Hooks - Throws:
NullPointerException- if any required attribute was not provided
-