@Stability(value=Experimental) public static final class TerraformVariableConfig.Builder extends Object implements software.amazon.jsii.Builder<TerraformVariableConfig>
TerraformVariableConfig
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
TerraformVariableConfig |
build()
Builds the configured instance.
|
TerraformVariableConfig.Builder |
defaultValue(Object defaultValue)
Sets the value of
TerraformVariableConfig.getDefaultValue() |
TerraformVariableConfig.Builder |
description(String description)
Sets the value of
TerraformVariableConfig.getDescription() |
TerraformVariableConfig.Builder |
sensitive(Boolean sensitive)
Sets the value of
TerraformVariableConfig.getSensitive() |
TerraformVariableConfig.Builder |
type(String type)
Sets the value of
TerraformVariableConfig.getType() |
@Stability(value=Experimental) public TerraformVariableConfig.Builder defaultValue(Object defaultValue)
TerraformVariableConfig.getDefaultValue()
defaultValue
- the value to be set.this
@Stability(value=Experimental) public TerraformVariableConfig.Builder description(String description)
TerraformVariableConfig.getDescription()
description
- the value to be set.this
@Stability(value=Experimental) public TerraformVariableConfig.Builder sensitive(Boolean sensitive)
TerraformVariableConfig.getSensitive()
sensitive
- the value to be set.this
@Stability(value=Experimental) public TerraformVariableConfig.Builder type(String type)
TerraformVariableConfig.getType()
type
- The type argument in a variable block allows you to restrict the type of value that will be accepted as the value for a variable.
If no type constraint is set then a value of any type is accepted.
While type constraints are optional, we recommend specifying them; they serve as easy reminders for users of the module, and allow Terraform to return a helpful error message if the wrong type is used.
Type constraints are created from a mixture of type keywords and type constructors. The supported type keywords are:
The type constructors allow you to specify complex types such as collections:
The keyword any may be used to indicate that any type is acceptable. For more information on the meaning and behavior of these different types, as well as detailed information about automatic conversion of complex types, see {@link https://www.terraform.io/docs/configuration/types.html|Type Constraints}.
If both the type and default arguments are specified, the given default value must be convertible to the specified type.
this
@Stability(value=Experimental) public TerraformVariableConfig build()
build
in interface software.amazon.jsii.Builder<TerraformVariableConfig>
TerraformVariableConfig
NullPointerException
- if any required attribute was not providedCopyright © 2021. All rights reserved.