Package io.github.cdklabs.projen
Interface JsonFileOptions
-
- All Superinterfaces:
FileBaseOptions,software.amazon.jsii.JsiiSerializable,ObjectFileOptions
- All Known Implementing Classes:
JsonFileOptions.Jsii$Proxy
@Generated(value="jsii-pacmak/1.96.0 (build 921e240)", date="2024-03-28T21:16:42.770Z") @Stability(Experimental) public interface JsonFileOptions extends software.amazon.jsii.JsiiSerializable, ObjectFileOptions
(experimental) Options forJsonFile.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classJsonFileOptions.BuilderA builder forJsonFileOptionsstatic classJsonFileOptions.Jsii$ProxyAn implementation forJsonFileOptions
-
Method Summary
All Methods Static Methods Instance Methods Default Methods Modifier and Type Method Description static JsonFileOptions.Builderbuilder()default BooleangetAllowComments()(experimental) Allow the use of comments in this file.default BooleangetNewline()(experimental) Adds a newline at the end of the file.-
Methods inherited from interface io.github.cdklabs.projen.FileBaseOptions
getCommitted, getEditGitignore, getExecutable, getMarker, getReadonly
-
Methods inherited from interface io.github.cdklabs.projen.ObjectFileOptions
getObj, getOmitEmpty
-
-
-
-
Method Detail
-
getAllowComments
@Stability(Experimental) @Nullable default Boolean getAllowComments()
(experimental) Allow the use of comments in this file.Default: - false for .json files, true for .json5 and .jsonc files
-
getNewline
@Stability(Experimental) @Nullable default Boolean getNewline()
(experimental) Adds a newline at the end of the file.Default: true
-
builder
@Stability(Experimental) static JsonFileOptions.Builder builder()
- Returns:
- a
JsonFileOptions.BuilderofJsonFileOptions
-
-