Class ProjectTarget.Builder
- java.lang.Object
-
- software.aws.awsprototypingsdk.nxmonorepo.nx.ProjectTarget.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<ProjectTarget>
- Enclosing interface:
- ProjectTarget
@Stability(Stable) public static final class ProjectTarget.Builder extends Object implements software.amazon.jsii.Builder<ProjectTarget>
A builder forProjectTarget
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ProjectTargetbuild()Builds the configured instance.ProjectTarget.BuilderdependsOn(List<? extends TargetDependency> dependsOn)Sets the value ofProjectTarget.getDependsOn()ProjectTarget.Builderinputs(List<String> inputs)Sets the value ofProjectTarget.getInputs()ProjectTarget.Builderoutputs(List<String> outputs)Sets the value ofProjectTarget.getOutputs()
-
-
-
Method Detail
-
dependsOn
@Stability(Stable) public ProjectTarget.Builder dependsOn(List<? extends TargetDependency> dependsOn)
Sets the value ofProjectTarget.getDependsOn()- Parameters:
dependsOn- List of Target Dependencies.- Returns:
this
-
inputs
@Stability(Stable) public ProjectTarget.Builder inputs(List<String> inputs)
Sets the value ofProjectTarget.getInputs()- Parameters:
inputs- List of inputs to hash for cache key, relative to the root of the monorepo. note: must start with leading /- Returns:
this
-
outputs
@Stability(Stable) public ProjectTarget.Builder outputs(List<String> outputs)
Sets the value ofProjectTarget.getOutputs()- Parameters:
outputs- List of outputs to cache, relative to the root of the monorepo. note: must start with leading /- Returns:
this
-
build
@Stability(Stable) public ProjectTarget build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<ProjectTarget>- Returns:
- a new instance of
ProjectTarget - Throws:
NullPointerException- if any required attribute was not provided
-
-