Class 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 Detail

      • Builder

        public Builder()
    • Method Detail

      • enabled

        @Stability(Stable)
        public CdkCommand.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 CdkCommand.Builder expectedMessage​(String expectedMessage)
        Parameters:
        expectedMessage - This can be used in combination with expectedError to validate that a specific message is returned.
        Returns:
        this
      • build

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