Class PrettierOverride.Builder
- java.lang.Object
-
- io.github.cdklabs.projen.javascript.PrettierOverride.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<PrettierOverride>
- Enclosing interface:
- PrettierOverride
@Stability(Experimental) public static final class PrettierOverride.Builder extends Object implements software.amazon.jsii.Builder<PrettierOverride>
A builder forPrettierOverride
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PrettierOverridebuild()Builds the configured instance.PrettierOverride.BuilderexcludeFiles(String excludeFiles)Sets the value ofPrettierOverride.getExcludeFiles()PrettierOverride.BuilderexcludeFiles(List<String> excludeFiles)Sets the value ofPrettierOverride.getExcludeFiles()PrettierOverride.Builderfiles(String files)Sets the value ofPrettierOverride.getFiles()PrettierOverride.Builderfiles(List<String> files)Sets the value ofPrettierOverride.getFiles()PrettierOverride.Builderoptions(PrettierSettings options)Sets the value ofPrettierOverride.getOptions()
-
-
-
Method Detail
-
files
@Stability(Experimental) public PrettierOverride.Builder files(String files)
Sets the value ofPrettierOverride.getFiles()- Parameters:
files- Include these files in this override. This parameter is required.- Returns:
this
-
files
@Stability(Experimental) public PrettierOverride.Builder files(List<String> files)
Sets the value ofPrettierOverride.getFiles()- Parameters:
files- Include these files in this override. This parameter is required.- Returns:
this
-
options
@Stability(Experimental) public PrettierOverride.Builder options(PrettierSettings options)
Sets the value ofPrettierOverride.getOptions()- Parameters:
options- The options to apply for this override. This parameter is required.- Returns:
this
-
excludeFiles
@Stability(Experimental) public PrettierOverride.Builder excludeFiles(String excludeFiles)
Sets the value ofPrettierOverride.getExcludeFiles()- Parameters:
excludeFiles- Exclude these files from this override.- Returns:
this
-
excludeFiles
@Stability(Experimental) public PrettierOverride.Builder excludeFiles(List<String> excludeFiles)
Sets the value ofPrettierOverride.getExcludeFiles()- Parameters:
excludeFiles- Exclude these files from this override.- Returns:
this
-
build
@Stability(Experimental) public PrettierOverride build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<PrettierOverride>- Returns:
- a new instance of
PrettierOverride - Throws:
NullPointerException- if any required attribute was not provided
-
-