Package io.github.cdklabs.projen
Class MakefileOptions.Builder
- java.lang.Object
-
- io.github.cdklabs.projen.MakefileOptions.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<MakefileOptions>
- Enclosing interface:
- MakefileOptions
@Stability(Experimental) public static final class MakefileOptions.Builder extends Object implements software.amazon.jsii.Builder<MakefileOptions>
A builder forMakefileOptions
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description MakefileOptions.Builderall(List<String> all)Sets the value ofMakefileOptions.getAll()MakefileOptionsbuild()Builds the configured instance.MakefileOptions.Buildercommitted(Boolean committed)Sets the value ofFileBaseOptions.getCommitted()MakefileOptions.BuildereditGitignore(Boolean editGitignore)Sets the value ofFileBaseOptions.getEditGitignore()MakefileOptions.Builderexecutable(Boolean executable)Sets the value ofFileBaseOptions.getExecutable()MakefileOptions.Buildermarker(Boolean marker)Sets the value ofFileBaseOptions.getMarker()MakefileOptions.Builderreadonly(Boolean readonly)Sets the value ofFileBaseOptions.getReadonly()MakefileOptions.Builderrules(List<? extends Rule> rules)Sets the value ofMakefileOptions.getRules()
-
-
-
Method Detail
-
all
@Stability(Experimental) public MakefileOptions.Builder all(List<String> all)
Sets the value ofMakefileOptions.getAll()- Parameters:
all- List of targets to build when Make is invoked without specifying any targets.- Returns:
this
-
rules
@Stability(Experimental) public MakefileOptions.Builder rules(List<? extends Rule> rules)
Sets the value ofMakefileOptions.getRules()- Parameters:
rules- Rules to include in the Makefile.- Returns:
this
-
committed
@Stability(Experimental) public MakefileOptions.Builder committed(Boolean committed)
Sets the value ofFileBaseOptions.getCommitted()- Parameters:
committed- Indicates whether this file should be committed to git or ignored. By default, all generated files are committed and anti-tamper is used to protect against manual modifications.- Returns:
this
-
editGitignore
@Stability(Experimental) public MakefileOptions.Builder editGitignore(Boolean editGitignore)
Sets the value ofFileBaseOptions.getEditGitignore()- Parameters:
editGitignore- Update the project's .gitignore file.- Returns:
this
-
executable
@Stability(Experimental) public MakefileOptions.Builder executable(Boolean executable)
Sets the value ofFileBaseOptions.getExecutable()- Parameters:
executable- Whether the generated file should be marked as executable.- Returns:
this
-
marker
@Stability(Experimental) public MakefileOptions.Builder marker(Boolean marker)
Sets the value ofFileBaseOptions.getMarker()- Parameters:
marker- Adds the projen marker to the file.- Returns:
this
-
readonly
@Stability(Experimental) public MakefileOptions.Builder readonly(Boolean readonly)
Sets the value ofFileBaseOptions.getReadonly()- Parameters:
readonly- Whether the generated file should be readonly.- Returns:
this
-
build
@Stability(Experimental) public MakefileOptions build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<MakefileOptions>- Returns:
- a new instance of
MakefileOptions - Throws:
NullPointerException- if any required attribute was not provided
-
-