Class CfnApp.EnvironmentVariableProperty.Builder
java.lang.Object
software.amazon.awscdk.services.opsworks.CfnApp.EnvironmentVariableProperty.Builder
- All Implemented Interfaces:
- software.amazon.jsii.Builder<CfnApp.EnvironmentVariableProperty>
- Enclosing interface:
- CfnApp.EnvironmentVariableProperty
@Stability(Stable)
public static final class CfnApp.EnvironmentVariableProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnApp.EnvironmentVariableProperty>
A builder for 
CfnApp.EnvironmentVariableProperty- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionbuild()Builds the configured instance.Sets the value ofCfnApp.EnvironmentVariableProperty.getKey()Sets the value ofCfnApp.EnvironmentVariableProperty.getSecure()secure(IResolvable secure) Sets the value ofCfnApp.EnvironmentVariableProperty.getSecure()Sets the value ofCfnApp.EnvironmentVariableProperty.getValue()
- 
Constructor Details- 
Builderpublic Builder()
 
- 
- 
Method Details- 
keySets the value ofCfnApp.EnvironmentVariableProperty.getKey()- Parameters:
- key- (Required) The environment variable's name, which can consist of up to 64 characters and must be specified. This parameter is required. The name can contain upper- and lowercase letters, numbers, and underscores (_), but it must start with a letter or underscore.
- Returns:
- this
 
- 
valueSets the value ofCfnApp.EnvironmentVariableProperty.getValue()- Parameters:
- value- (Optional) The environment variable's value, which can be left empty. This parameter is required. If you specify a value, it can contain up to 256 characters, which must all be printable.
- Returns:
- this
 
- 
secureSets the value ofCfnApp.EnvironmentVariableProperty.getSecure()- Parameters:
- secure- (Optional) Whether the variable's value is returned by the- DescribeAppsaction. To hide an environment variable's value, set- Secureto- true.- DescribeAppsreturns- *****FILTERED*****instead of the actual value. The default value for- Secureis- false.
- Returns:
- this
 
- 
secureSets the value ofCfnApp.EnvironmentVariableProperty.getSecure()- Parameters:
- secure- (Optional) Whether the variable's value is returned by the- DescribeAppsaction. To hide an environment variable's value, set- Secureto- true.- DescribeAppsreturns- *****FILTERED*****instead of the actual value. The default value for- Secureis- false.
- Returns:
- this
 
- 
buildBuilds the configured instance.- Specified by:
- buildin interface- software.amazon.jsii.Builder<CfnApp.EnvironmentVariableProperty>
- Returns:
- a new instance of CfnApp.EnvironmentVariableProperty
- Throws:
- NullPointerException- if any required attribute was not provided
 
 
-