| Modifier and Type | Method and Description |
|---|---|
YamlFile |
build() |
YamlFile.Builder |
committed(Boolean committed)
(experimental) Indicates whether this file should be committed to git or ignored.
|
static YamlFile.Builder |
create(Project project,
String filePath) |
YamlFile.Builder |
editGitignore(Boolean editGitignore)
(experimental) Update the project's .gitignore file.
|
YamlFile.Builder |
executable(Boolean executable)
(experimental) Whether the generated file should be marked as executable.
|
YamlFile.Builder |
marker(Boolean marker)
(experimental) Adds the projen marker to the file.
|
YamlFile.Builder |
obj(Object obj)
(experimental) The object that will be serialized.
|
YamlFile.Builder |
omitEmpty(Boolean omitEmpty)
(experimental) Omits empty objects and arrays.
|
YamlFile.Builder |
readonly(Boolean readonly)
(experimental) Whether the generated file should be readonly.
|
@Stability(value=Experimental) public static YamlFile.Builder create(Project project, String filePath)
project - This parameter is required.filePath - This parameter is required.YamlFile.Builder.@Stability(value=Experimental) public YamlFile.Builder committed(Boolean committed)
By default, all generated files are committed and anti-tamper is used to protect against manual modifications.
Default: true
committed - Indicates whether this file should be committed to git or ignored. This parameter is required.this@Stability(value=Experimental) public YamlFile.Builder editGitignore(Boolean editGitignore)
Default: true
editGitignore - Update the project's .gitignore file. This parameter is required.this@Stability(value=Experimental) public YamlFile.Builder executable(Boolean executable)
Default: false
executable - Whether the generated file should be marked as executable. This parameter is required.this@Stability(value=Experimental) public YamlFile.Builder readonly(Boolean readonly)
Default: true
readonly - Whether the generated file should be readonly. This parameter is required.this@Stability(value=Experimental) public YamlFile.Builder marker(Boolean marker)
Default: true
marker - Adds the projen marker to the file. This parameter is required.this@Stability(value=Experimental) public YamlFile.Builder obj(Object obj)
You can modify the object's contents before synthesis.
Default: {} an empty object (use `file.obj` to mutate).
obj - The object that will be serialized. This parameter is required.this@Stability(value=Experimental) public YamlFile.Builder omitEmpty(Boolean omitEmpty)
Default: false
omitEmpty - Omits empty objects and arrays. This parameter is required.thisCopyright © 2021. All rights reserved.