Class DeployCommand.Builder

java.lang.Object
software.amazon.awscdk.cloudassembly.schema.DeployCommand.Builder
All Implemented Interfaces:
software.amazon.jsii.Builder<DeployCommand>
Enclosing interface:
DeployCommand

@Stability(Stable) public static final class DeployCommand.Builder extends Object implements software.amazon.jsii.Builder<DeployCommand>
A builder for DeployCommand
  • Constructor Details

    • Builder

      public Builder()
  • Method Details

    • args

      @Stability(Stable) public DeployCommand.Builder args(DeployOptions args)
      Sets the value of DeployCommand.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 DeployCommand.Builder enabled(Boolean enabled)
      Sets the value of CdkCommand.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 enable synth and disable deploy & destroy in order to limit the test to synthesis.
      Returns:
      this
    • expectedMessage

      @Stability(Stable) public DeployCommand.Builder expectedMessage(String expectedMessage)
      Parameters:
      expectedMessage - This can be used in combination with expectedError to validate that a specific message is returned.
      Returns:
      this
    • expectError

      @Stability(Stable) public DeployCommand.Builder expectError(Boolean expectError)
      Sets the value of CdkCommand.getExpectError()
      Parameters:
      expectError - If the runner should expect this command to fail.
      Returns:
      this
    • build

      @Stability(Stable) public DeployCommand build()
      Builds the configured instance.
      Specified by:
      build in interface software.amazon.jsii.Builder<DeployCommand>
      Returns:
      a new instance of DeployCommand
      Throws:
      NullPointerException - if any required attribute was not provided