Package com.hashicorp.cdktf
Class AppConfig.Builder
java.lang.Object
com.hashicorp.cdktf.AppConfig.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<AppConfig>
- Enclosing interface:
AppConfig
@Stability(Experimental)
public static final class AppConfig.Builder
extends Object
implements software.amazon.jsii.Builder<AppConfig>
A builder for
AppConfig
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.Sets the value ofAppConfig.getContext()
Sets the value ofAppConfig.getHclOutput()
Sets the value ofAppConfig.getOutdir()
skipBackendValidation
(Boolean skipBackendValidation) Sets the value ofAppConfig.getSkipBackendValidation()
skipValidation
(Boolean skipValidation) Sets the value ofAppConfig.getSkipValidation()
stackTraces
(Boolean stackTraces) Sets the value ofAppConfig.getStackTraces()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
context
Sets the value ofAppConfig.getContext()
- Parameters:
context
- Additional context values for the application. Context set by the CLI or thecontext
key incdktf.json
has precedence.Context can be read from any construct using
node.getContext(key)
.- Returns:
this
-
hclOutput
Sets the value ofAppConfig.getHclOutput()
- Parameters:
hclOutput
- the value to be set.- Returns:
this
-
outdir
Sets the value ofAppConfig.getOutdir()
- Parameters:
outdir
- The directory to output Terraform resources. If you are using the CDKTF CLI, this value is automatically set from one of the following three sources:- The
-o
/--output
CLI option - The
CDKTF_OUTDIR
environment variable - The
outdir
key incdktf.json
If you are using the CDKTF CLI and want to set a different value here, you will also need to set the same value via one of the three ways specified above.
The most common case to set this value is when you are using the CDKTF library directly (e.g. when writing unit tests).
- The
- Returns:
this
-
skipBackendValidation
@Stability(Experimental) public AppConfig.Builder skipBackendValidation(Boolean skipBackendValidation) Sets the value ofAppConfig.getSkipBackendValidation()
- Parameters:
skipBackendValidation
- Whether to skip backend validation during synthesis of the app.- Returns:
this
-
skipValidation
Sets the value ofAppConfig.getSkipValidation()
- Parameters:
skipValidation
- Whether to skip all validations during synthesis of the app.- Returns:
this
-
stackTraces
Sets the value ofAppConfig.getStackTraces()
- Parameters:
stackTraces
- the value to be set.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<AppConfig>
- Returns:
- a new instance of
AppConfig
- Throws:
NullPointerException
- if any required attribute was not provided
-