Package io.github.cdklabs.projen
Class Rule.Builder
- java.lang.Object
-
- io.github.cdklabs.projen.Rule.Builder
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Rulebuild()Builds the configured instance.Rule.Builderphony(Boolean phony)Sets the value ofRule.getPhony()Rule.Builderprerequisites(List<String> prerequisites)Sets the value ofRule.getPrerequisites()Rule.Builderrecipe(List<String> recipe)Sets the value ofRule.getRecipe()Rule.Buildertargets(List<String> targets)Sets the value ofRule.getTargets()
-
-
-
Method Detail
-
targets
@Stability(Experimental) public Rule.Builder targets(List<String> targets)
Sets the value ofRule.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 ofRule.getPhony()- Parameters:
phony- Marks whether the target is phony.- Returns:
this
-
prerequisites
@Stability(Experimental) public Rule.Builder prerequisites(List<String> prerequisites)
Sets the value ofRule.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 ofRule.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:
buildin interfacesoftware.amazon.jsii.Builder<Rule>- Returns:
- a new instance of
Rule - Throws:
NullPointerException- if any required attribute was not provided
-
-