Class DestroyCommand.Builder
- java.lang.Object
-
- software.amazon.awscdk.cloudassembly.schema.DestroyCommand.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<DestroyCommand>
- Enclosing interface:
- DestroyCommand
@Stability(Stable) public static final class DestroyCommand.Builder extends Object implements software.amazon.jsii.Builder<DestroyCommand>
A builder forDestroyCommand
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DestroyCommand.Builderargs(DestroyOptions args)Sets the value ofDestroyCommand.getArgs()DestroyCommandbuild()Builds the configured instance.DestroyCommand.Builderenabled(Boolean enabled)Sets the value ofCdkCommand.getEnabled()DestroyCommand.BuilderexpectedMessage(String expectedMessage)Sets the value ofCdkCommand.getExpectedMessage()DestroyCommand.BuilderexpectError(Boolean expectError)Sets the value ofCdkCommand.getExpectError()
-
-
-
Method Detail
-
args
@Stability(Stable) public DestroyCommand.Builder args(DestroyOptions args)
Sets the value ofDestroyCommand.getArgs()- Parameters:
args- Additional arguments to pass to the command This can be used to test specific CLI functionality.- Returns:
this
-
enabled
@Stability(Stable) public DestroyCommand.Builder enabled(Boolean enabled)
Sets the value ofCdkCommand.getEnabled()- Parameters:
enabled- Whether or not to run this command as part of the workflow This can be used if you only want to test some of the workflow for example enablesynthand disabledeploy&destroyin order to limit the test to synthesis.- Returns:
this
-
expectedMessage
@Stability(Stable) public DestroyCommand.Builder expectedMessage(String expectedMessage)
Sets the value ofCdkCommand.getExpectedMessage()- Parameters:
expectedMessage- This can be used in combination withexpectedErrorto validate that a specific message is returned.- Returns:
this
-
expectError
@Stability(Stable) public DestroyCommand.Builder expectError(Boolean expectError)
Sets the value ofCdkCommand.getExpectError()- Parameters:
expectError- If the runner should expect this command to fail.- Returns:
this
-
build
@Stability(Stable) public DestroyCommand build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<DestroyCommand>- Returns:
- a new instance of
DestroyCommand - Throws:
NullPointerException- if any required attribute was not provided
-
-