Class Rule.Builder

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

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

      • Builder

        public Builder()
    • Method Detail

      • targets

        @Stability(Experimental)
        public Rule.Builder targets​(List<String> targets)
        Sets the value of Rule.getTargets()
        Parameters:
        targets - Files to be created or updated by this rule. This parameter is required. If the rule is phony then instead this represents the command's name(s).
        Returns:
        this
      • phony

        @Stability(Experimental)
        public Rule.Builder phony​(Boolean phony)
        Sets the value of Rule.getPhony()
        Parameters:
        phony - Marks whether the target is phony.
        Returns:
        this
      • prerequisites

        @Stability(Experimental)
        public Rule.Builder prerequisites​(List<String> prerequisites)
        Sets the value of Rule.getPrerequisites()
        Parameters:
        prerequisites - Files that are used as inputs to create a target.
        Returns:
        this
      • recipe

        @Stability(Experimental)
        public Rule.Builder recipe​(List<String> recipe)
        Sets the value of Rule.getRecipe()
        Parameters:
        recipe - Commands that are run (using prerequisites as inputs) to create a target.
        Returns:
        this
      • build

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