@Stability(value=Experimental) public static final class TextFileOptions.Builder extends Object implements software.amazon.jsii.Builder<TextFileOptions>
TextFileOptions| Constructor and Description |
|---|
Builder() |
| Modifier and Type | Method and Description |
|---|---|
TextFileOptions |
build()
Builds the configured instance.
|
TextFileOptions.Builder |
committed(Boolean committed)
Sets the value of
FileBaseOptions.getCommitted() |
TextFileOptions.Builder |
editGitignore(Boolean editGitignore)
Sets the value of
FileBaseOptions.getEditGitignore() |
TextFileOptions.Builder |
executable(Boolean executable)
Sets the value of
FileBaseOptions.getExecutable() |
TextFileOptions.Builder |
lines(List<String> lines)
Sets the value of
TextFileOptions.getLines() |
TextFileOptions.Builder |
readonly(Boolean readonly)
Sets the value of
FileBaseOptions.getReadonly() |
@Stability(value=Experimental) public TextFileOptions.Builder lines(List<String> lines)
TextFileOptions.getLines()lines - The contents of the text file.
You can use addLine() to append lines.this@Stability(value=Experimental) public TextFileOptions.Builder committed(Boolean committed)
FileBaseOptions.getCommitted()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.this@Stability(value=Experimental) public TextFileOptions.Builder editGitignore(Boolean editGitignore)
FileBaseOptions.getEditGitignore()editGitignore - Update the project's .gitignore file.this@Stability(value=Experimental) public TextFileOptions.Builder executable(Boolean executable)
FileBaseOptions.getExecutable()executable - Whether the generated file should be marked as executable.this@Stability(value=Experimental) public TextFileOptions.Builder readonly(Boolean readonly)
FileBaseOptions.getReadonly()readonly - Whether the generated file should be readonly.this@Stability(value=Experimental) public TextFileOptions build()
build in interface software.amazon.jsii.Builder<TextFileOptions>TextFileOptionsNullPointerException - if any required attribute was not providedCopyright © 2021. All rights reserved.