@Stability(value=Stable) public static final class DestroyCommand.Builder extends Object implements software.amazon.jsii.Builder<DestroyCommand>
DestroyCommand| Constructor and Description |
|---|
Builder() |
| Modifier and Type | Method and Description |
|---|---|
DestroyCommand.Builder |
args(DestroyOptions args)
Sets the value of
DestroyCommand.getArgs() |
DestroyCommand |
build()
Builds the configured instance.
|
DestroyCommand.Builder |
enabled(Boolean enabled)
Sets the value of
CdkCommand.getEnabled() |
DestroyCommand.Builder |
expectedMessage(String expectedMessage)
Sets the value of
CdkCommand.getExpectedMessage() |
DestroyCommand.Builder |
expectError(Boolean expectError)
Sets the value of
CdkCommand.getExpectError() |
@Stability(value=Stable) public DestroyCommand.Builder args(DestroyOptions args)
DestroyCommand.getArgs()args - Additional arguments to pass to the command This can be used to test specific CLI functionality.this@Stability(value=Stable) public DestroyCommand.Builder enabled(Boolean enabled)
CdkCommand.getEnabled()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 enable `synth` and disable `deploy` & `destroy` in order to limit the test to synthesis.this@Stability(value=Stable) public DestroyCommand.Builder expectedMessage(String expectedMessage)
CdkCommand.getExpectedMessage()expectedMessage - This can be used in combination with `expectedError` to validate that a specific message is returned.this@Stability(value=Stable) public DestroyCommand.Builder expectError(Boolean expectError)
CdkCommand.getExpectError()expectError - If the runner should expect this command to fail.this@Stability(value=Stable) public DestroyCommand build()
build in interface software.amazon.jsii.Builder<DestroyCommand>DestroyCommandNullPointerException - if any required attribute was not providedCopyright © 2022. All rights reserved.