Package io.github.cdklabs.projen
Class SourceCodeOptions.Builder
- java.lang.Object
-
- io.github.cdklabs.projen.SourceCodeOptions.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<SourceCodeOptions>
- Enclosing interface:
- SourceCodeOptions
@Stability(Experimental) public static final class SourceCodeOptions.Builder extends Object implements software.amazon.jsii.Builder<SourceCodeOptions>
A builder forSourceCodeOptions
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SourceCodeOptionsbuild()Builds the configured instance.SourceCodeOptions.Builderindent(Number indent)Sets the value ofSourceCodeOptions.getIndent()SourceCodeOptions.Builderreadonly(Boolean readonly)Sets the value ofSourceCodeOptions.getReadonly()
-
-
-
Method Detail
-
indent
@Stability(Experimental) public SourceCodeOptions.Builder indent(Number indent)
Sets the value ofSourceCodeOptions.getIndent()- Parameters:
indent- Indentation size.- Returns:
this
-
readonly
@Stability(Experimental) public SourceCodeOptions.Builder readonly(Boolean readonly)
Sets the value ofSourceCodeOptions.getReadonly()- Parameters:
readonly- Whether the generated file should be readonly.- Returns:
this
-
build
@Stability(Experimental) public SourceCodeOptions build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<SourceCodeOptions>- Returns:
- a new instance of
SourceCodeOptions - Throws:
NullPointerException- if any required attribute was not provided
-
-