Package io.github.cdklabs.projen
Class InitProject.Builder
- java.lang.Object
-
- io.github.cdklabs.projen.InitProject.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<InitProject>
- Enclosing interface:
- InitProject
@Stability(Experimental) public static final class InitProject.Builder extends Object implements software.amazon.jsii.Builder<InitProject>
A builder forInitProject
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description InitProject.Builderargs(Map<String,? extends Object> args)Sets the value ofInitProject.getArgs()InitProjectbuild()Builds the configured instance.InitProject.Buildercomments(InitProjectOptionHints comments)Sets the value ofInitProject.getComments()InitProject.Builderfqn(String fqn)Sets the value ofInitProject.getFqn()InitProject.Buildertype(ProjectType type)Sets the value ofInitProject.getType()
-
-
-
Method Detail
-
args
@Stability(Experimental) public InitProject.Builder args(Map<String,? extends Object> args)
Sets the value ofInitProject.getArgs()- Parameters:
args- Initial arguments passed toprojen new. This parameter is required.- Returns:
this
-
comments
@Stability(Experimental) public InitProject.Builder comments(InitProjectOptionHints comments)
Sets the value ofInitProject.getComments()- Parameters:
comments- Include commented out options. This parameter is required. Does not apply to projenrc.json files.- Returns:
this
-
fqn
@Stability(Experimental) public InitProject.Builder fqn(String fqn)
Sets the value ofInitProject.getFqn()- Parameters:
fqn- The JSII FQN of the project type. This parameter is required.- Returns:
this
-
type
@Stability(Experimental) public InitProject.Builder type(ProjectType type)
Sets the value ofInitProject.getType()- Parameters:
type- Project metadata. This parameter is required.- Returns:
this
-
build
@Stability(Experimental) public InitProject build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<InitProject>- Returns:
- a new instance of
InitProject - Throws:
NullPointerException- if any required attribute was not provided
-
-