Package io.github.cdklabs.projen
Class XmlFileOptions.Builder
- java.lang.Object
-
- io.github.cdklabs.projen.XmlFileOptions.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<XmlFileOptions>
- Enclosing interface:
- XmlFileOptions
@Stability(Experimental) public static final class XmlFileOptions.Builder extends Object implements software.amazon.jsii.Builder<XmlFileOptions>
A builder forXmlFileOptions
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description XmlFileOptionsbuild()Builds the configured instance.XmlFileOptions.Buildercommitted(Boolean committed)Sets the value ofFileBaseOptions.getCommitted()XmlFileOptions.BuildereditGitignore(Boolean editGitignore)Sets the value ofFileBaseOptions.getEditGitignore()XmlFileOptions.Builderexecutable(Boolean executable)Sets the value ofFileBaseOptions.getExecutable()XmlFileOptions.Buildermarker(Boolean marker)Sets the value ofFileBaseOptions.getMarker()XmlFileOptions.Builderobj(Object obj)Sets the value ofObjectFileOptions.getObj()XmlFileOptions.BuilderomitEmpty(Boolean omitEmpty)Sets the value ofObjectFileOptions.getOmitEmpty()XmlFileOptions.Builderreadonly(Boolean readonly)Sets the value ofFileBaseOptions.getReadonly()
-
-
-
Method Detail
-
obj
@Stability(Experimental) public XmlFileOptions.Builder obj(Object obj)
Sets the value ofObjectFileOptions.getObj()- Parameters:
obj- The object that will be serialized. You can modify the object's contents before synthesis. Serialization of the object is similar to JSON.stringify with few enhancements:- values that are functions will be called during synthesis and the result will be serialized - this allow to have lazy values.
Setwill be converted to arrayMapwill be converted to a plain object ({ key: value, ... }})RegExpwithout flags will be converted to string representation of the source
- Returns:
this
-
omitEmpty
@Stability(Experimental) public XmlFileOptions.Builder omitEmpty(Boolean omitEmpty)
Sets the value ofObjectFileOptions.getOmitEmpty()- Parameters:
omitEmpty- Omits empty objects and arrays.- Returns:
this
-
committed
@Stability(Experimental) public XmlFileOptions.Builder committed(Boolean committed)
Sets the value ofFileBaseOptions.getCommitted()- Parameters:
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.- Returns:
this
-
editGitignore
@Stability(Experimental) public XmlFileOptions.Builder editGitignore(Boolean editGitignore)
Sets the value ofFileBaseOptions.getEditGitignore()- Parameters:
editGitignore- Update the project's .gitignore file.- Returns:
this
-
executable
@Stability(Experimental) public XmlFileOptions.Builder executable(Boolean executable)
Sets the value ofFileBaseOptions.getExecutable()- Parameters:
executable- Whether the generated file should be marked as executable.- Returns:
this
-
marker
@Stability(Experimental) public XmlFileOptions.Builder marker(Boolean marker)
Sets the value ofFileBaseOptions.getMarker()- Parameters:
marker- Adds the projen marker to the file.- Returns:
this
-
readonly
@Stability(Experimental) public XmlFileOptions.Builder readonly(Boolean readonly)
Sets the value ofFileBaseOptions.getReadonly()- Parameters:
readonly- Whether the generated file should be readonly.- Returns:
this
-
build
@Stability(Experimental) public XmlFileOptions build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<XmlFileOptions>- Returns:
- a new instance of
XmlFileOptions - Throws:
NullPointerException- if any required attribute was not provided
-
-