Package io.github.cdklabs.projen.java
Class PluginOptions.Builder
- java.lang.Object
-
- io.github.cdklabs.projen.java.PluginOptions.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<PluginOptions>
- Enclosing interface:
- PluginOptions
@Stability(Experimental) public static final class PluginOptions.Builder extends Object implements software.amazon.jsii.Builder<PluginOptions>
A builder forPluginOptions
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PluginOptionsbuild()Builds the configured instance.PluginOptions.Builderconfiguration(Map<String,? extends Object> configuration)Sets the value ofPluginOptions.getConfiguration()PluginOptions.Builderdependencies(List<String> dependencies)Sets the value ofPluginOptions.getDependencies()PluginOptions.Builderexecutions(List<? extends PluginExecution> executions)Sets the value ofPluginOptions.getExecutions()
-
-
-
Method Detail
-
configuration
@Stability(Experimental) public PluginOptions.Builder configuration(Map<String,? extends Object> configuration)
Sets the value ofPluginOptions.getConfiguration()- Parameters:
configuration- Plugin key/value configuration.- Returns:
this
-
dependencies
@Stability(Experimental) public PluginOptions.Builder dependencies(List<String> dependencies)
Sets the value ofPluginOptions.getDependencies()- Parameters:
dependencies- You could configure the dependencies for the plugin. Dependencies are in<groupId>/<artifactId>@<semver>format.- Returns:
this
-
executions
@Stability(Experimental) public PluginOptions.Builder executions(List<? extends PluginExecution> executions)
Sets the value ofPluginOptions.getExecutions()- Parameters:
executions- Plugin executions.- Returns:
this
-
build
@Stability(Experimental) public PluginOptions build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<PluginOptions>- Returns:
- a new instance of
PluginOptions - Throws:
NullPointerException- if any required attribute was not provided
-
-