Package io.github.cdklabs.projen.java
Class PluginExecution.Builder
- java.lang.Object
-
- io.github.cdklabs.projen.java.PluginExecution.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<PluginExecution>
- Enclosing interface:
- PluginExecution
@Stability(Experimental) public static final class PluginExecution.Builder extends Object implements software.amazon.jsii.Builder<PluginExecution>
A builder forPluginExecution
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PluginExecutionbuild()Builds the configured instance.PluginExecution.Buildergoals(List<String> goals)Sets the value ofPluginExecution.getGoals()PluginExecution.Builderid(String id)Sets the value ofPluginExecution.getId()PluginExecution.Builderphase(String phase)Sets the value ofPluginExecution.getPhase()
-
-
-
Method Detail
-
goals
@Stability(Experimental) public PluginExecution.Builder goals(List<String> goals)
Sets the value ofPluginExecution.getGoals()- Parameters:
goals- Which Maven goals this plugin should be associated with. This parameter is required.- Returns:
this
-
id
@Stability(Experimental) public PluginExecution.Builder id(String id)
Sets the value ofPluginExecution.getId()- Parameters:
id- The ID. This parameter is required.- Returns:
this
-
phase
@Stability(Experimental) public PluginExecution.Builder phase(String phase)
Sets the value ofPluginExecution.getPhase()- Parameters:
phase- The phase in which the plugin should execute.- Returns:
this
-
build
@Stability(Experimental) public PluginExecution build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<PluginExecution>- Returns:
- a new instance of
PluginExecution - Throws:
NullPointerException- if any required attribute was not provided
-
-