Class Hooks.Builder

  • All Implemented Interfaces:
    software.amazon.jsii.Builder<Hooks>
    Enclosing interface:
    Hooks

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

      • Builder

        public Builder()
    • Method Detail

      • postDeploy

        @Stability(Stable)
        public Hooks.Builder postDeploy​(List<String> postDeploy)
        Sets the value of Hooks.getPostDeploy()
        Parameters:
        postDeploy - Commands to run prior after deploying the cdk stacks in the integration test.
        Returns:
        this
      • postDestroy

        @Stability(Stable)
        public Hooks.Builder postDestroy​(List<String> postDestroy)
        Sets the value of Hooks.getPostDestroy()
        Parameters:
        postDestroy - Commands to run after destroying the cdk stacks in the integration test.
        Returns:
        this
      • preDeploy

        @Stability(Stable)
        public Hooks.Builder preDeploy​(List<String> preDeploy)
        Sets the value of Hooks.getPreDeploy()
        Parameters:
        preDeploy - Commands to run prior to deploying the cdk stacks in the integration test.
        Returns:
        this
      • preDestroy

        @Stability(Stable)
        public Hooks.Builder preDestroy​(List<String> preDestroy)
        Sets the value of Hooks.getPreDestroy()
        Parameters:
        preDestroy - Commands to run prior to destroying the cdk stacks in the integration test.
        Returns:
        this
      • build

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