Class CdkCommand.Builder
java.lang.Object
software.amazon.awscdk.cloud_assembly_schema.CdkCommand.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CdkCommand>
- Enclosing interface:
CdkCommand
@Stability(Stable)
public static final class CdkCommand.Builder
extends Object
implements software.amazon.jsii.Builder<CdkCommand>
A builder for
CdkCommand
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.Sets the value ofCdkCommand.getEnabled()
expectedMessage
(String expectedMessage) Sets the value ofCdkCommand.getExpectedMessage()
expectError
(Boolean expectError) Sets the value ofCdkCommand.getExpectError()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
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 enablesynth
and disabledeploy
&destroy
in order to limit the test to synthesis.- Returns:
this
-
expectedMessage
Sets the value ofCdkCommand.getExpectedMessage()
- Parameters:
expectedMessage
- This can be used in combination withexpectedError
to validate that a specific message is returned.- Returns:
this
-
expectError
Sets the value ofCdkCommand.getExpectError()
- Parameters:
expectError
- If the runner should expect this command to fail.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CdkCommand>
- Returns:
- a new instance of
CdkCommand
- Throws:
NullPointerException
- if any required attribute was not provided
-