Class MergifyRule.Builder

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

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

      • Builder

        public Builder()
    • Method Detail

      • actions

        @Stability(Experimental)
        public MergifyRule.Builder actions​(Map<String,​? extends Object> actions)
        Sets the value of MergifyRule.getActions()
        Parameters:
        actions - A dictionary made of Actions that will be executed on the matching pull requests. This parameter is required.
        Returns:
        this
      • conditions

        @Stability(Experimental)
        public MergifyRule.Builder conditions​(List<? extends Object> conditions)
        Sets the value of MergifyRule.getConditions()
        Parameters:
        conditions - A list of Conditions string that must match against the pull request for the rule to be applied. This parameter is required.
        Returns:
        this
      • name

        @Stability(Experimental)
        public MergifyRule.Builder name​(String name)
        Sets the value of MergifyRule.getName()
        Parameters:
        name - The name of the rule. This parameter is required. This is not used by the engine directly, but is used when reporting information about a rule.
        Returns:
        this
      • build

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