Class Trigger.Builder

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

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

      • Builder

        public Builder()
    • Method Detail

      • branch

        @Stability(Experimental)
        public Trigger.Builder branch​(String branch)
        Sets the value of Trigger.getBranch()
        Parameters:
        branch - The branch name that a downstream pipeline will use.
        Returns:
        this
      • project

        @Stability(Experimental)
        public Trigger.Builder project​(String project)
        Sets the value of Trigger.getProject()
        Parameters:
        project - Path to the project, e.g. group/project, or group/sub-group/project.
        Returns:
        this
      • strategy

        @Stability(Experimental)
        public Trigger.Builder strategy​(Strategy strategy)
        Sets the value of Trigger.getStrategy()
        Parameters:
        strategy - You can mirror the pipeline status from the triggered pipeline to the source bridge job by using strategy: depend.
        Returns:
        this
      • build

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