Class HasteConfig.Builder
- java.lang.Object
-
- io.github.cdklabs.projen.javascript.HasteConfig.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<HasteConfig>
- Enclosing interface:
- HasteConfig
@Stability(Experimental) public static final class HasteConfig.Builder extends Object implements software.amazon.jsii.Builder<HasteConfig>
A builder forHasteConfig
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description HasteConfigbuild()Builds the configured instance.HasteConfig.BuildercomputeSha1(Boolean computeSha1)Sets the value ofHasteConfig.getComputeSha1()HasteConfig.BuilderdefaultPlatform(String defaultPlatform)Sets the value ofHasteConfig.getDefaultPlatform()HasteConfig.BuilderhasteImplModulePath(String hasteImplModulePath)Sets the value ofHasteConfig.getHasteImplModulePath()HasteConfig.Builderplatforms(List<String> platforms)Sets the value ofHasteConfig.getPlatforms()HasteConfig.BuilderthrowOnModuleCollision(Boolean throwOnModuleCollision)Sets the value ofHasteConfig.getThrowOnModuleCollision()
-
-
-
Method Detail
-
computeSha1
@Stability(Experimental) public HasteConfig.Builder computeSha1(Boolean computeSha1)
Sets the value ofHasteConfig.getComputeSha1()- Parameters:
computeSha1- the value to be set.- Returns:
this
-
defaultPlatform
@Stability(Experimental) public HasteConfig.Builder defaultPlatform(String defaultPlatform)
Sets the value ofHasteConfig.getDefaultPlatform()- Parameters:
defaultPlatform- the value to be set.- Returns:
this
-
hasteImplModulePath
@Stability(Experimental) public HasteConfig.Builder hasteImplModulePath(String hasteImplModulePath)
Sets the value ofHasteConfig.getHasteImplModulePath()- Parameters:
hasteImplModulePath- the value to be set.- Returns:
this
-
platforms
@Stability(Experimental) public HasteConfig.Builder platforms(List<String> platforms)
Sets the value ofHasteConfig.getPlatforms()- Parameters:
platforms- the value to be set.- Returns:
this
-
throwOnModuleCollision
@Stability(Experimental) public HasteConfig.Builder throwOnModuleCollision(Boolean throwOnModuleCollision)
Sets the value ofHasteConfig.getThrowOnModuleCollision()- Parameters:
throwOnModuleCollision- the value to be set.- Returns:
this
-
build
@Stability(Experimental) public HasteConfig build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<HasteConfig>- Returns:
- a new instance of
HasteConfig - Throws:
NullPointerException- if any required attribute was not provided
-
-