Class Hooks.Builder
- java.lang.Object
-
- software.amazon.awscdk.cloudassembly.schema.Hooks.Builder
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Hooksbuild()Builds the configured instance.Hooks.BuilderpostDeploy(List<String> postDeploy)Sets the value ofHooks.getPostDeploy()Hooks.BuilderpostDestroy(List<String> postDestroy)Sets the value ofHooks.getPostDestroy()Hooks.BuilderpreDeploy(List<String> preDeploy)Sets the value ofHooks.getPreDeploy()Hooks.BuilderpreDestroy(List<String> preDestroy)Sets the value ofHooks.getPreDestroy()
-
-
-
Method Detail
-
postDeploy
@Stability(Stable) public Hooks.Builder postDeploy(List<String> postDeploy)
Sets the value ofHooks.getPostDeploy()- Parameters:
postDeploy- Commands to run prior after deploying the cdk stacks in the integration test.- Returns:
this
-
postDestroy
@Stability(Stable) public Hooks.Builder postDestroy(List<String> postDestroy)
Sets the value ofHooks.getPostDestroy()- Parameters:
postDestroy- Commands to run after destroying the cdk stacks in the integration test.- Returns:
this
-
preDeploy
@Stability(Stable) public Hooks.Builder preDeploy(List<String> preDeploy)
Sets the value ofHooks.getPreDeploy()- Parameters:
preDeploy- Commands to run prior to deploying the cdk stacks in the integration test.- Returns:
this
-
preDestroy
@Stability(Stable) public Hooks.Builder preDestroy(List<String> preDestroy)
Sets the value ofHooks.getPreDestroy()- Parameters:
preDestroy- Commands to run prior to destroying the cdk stacks in the integration test.- Returns:
this
-
build
@Stability(Stable) public Hooks 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
-
-