Class Bundle.Builder
- java.lang.Object
-
- io.github.cdklabs.projen.javascript.Bundle.Builder
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Bundlebuild()Builds the configured instance.Bundle.BuilderbundleTask(Task bundleTask)Sets the value ofBundle.getBundleTask()Bundle.Builderoutdir(String outdir)Sets the value ofBundle.getOutdir()Bundle.Builderoutfile(String outfile)Sets the value ofBundle.getOutfile()Bundle.BuilderwatchTask(Task watchTask)Sets the value ofBundle.getWatchTask()
-
-
-
Method Detail
-
bundleTask
@Stability(Experimental) public Bundle.Builder bundleTask(Task bundleTask)
Sets the value ofBundle.getBundleTask()- Parameters:
bundleTask- The task that produces this bundle. This parameter is required.- Returns:
this
-
outdir
@Stability(Experimental) public Bundle.Builder outdir(String outdir)
Sets the value ofBundle.getOutdir()- Parameters:
outdir- Base directory containing the output file (relative to project root). This parameter is required.- Returns:
this
-
outfile
@Stability(Experimental) public Bundle.Builder outfile(String outfile)
Sets the value ofBundle.getOutfile()- Parameters:
outfile- Location of the output file (relative to project root). This parameter is required.- Returns:
this
-
watchTask
@Stability(Experimental) public Bundle.Builder watchTask(Task watchTask)
Sets the value ofBundle.getWatchTask()- Parameters:
watchTask- The "watch" task for this bundle.- Returns:
this
-
build
@Stability(Experimental) public Bundle build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<Bundle>- Returns:
- a new instance of
Bundle - Throws:
NullPointerException- if any required attribute was not provided
-
-