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 Summary
Constructors -
Method Summary
Modifier 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
-
Builder
public Builder()
-
-
Method Details
-
key
Sets 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
-
value
Sets 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
-
secure
Sets the value ofCfnApp.EnvironmentVariableProperty.getSecure()- Parameters:
secure- (Optional) Whether the variable's value is returned by the DescribeApps action. To hide an environment variable's value, setSecuretotrue.DescribeAppsreturns*****FILTERED*****instead of the actual value. The default value forSecureisfalse.- Returns:
this
-
secure
Sets the value ofCfnApp.EnvironmentVariableProperty.getSecure()- Parameters:
secure- (Optional) Whether the variable's value is returned by the DescribeApps action. To hide an environment variable's value, setSecuretotrue.DescribeAppsreturns*****FILTERED*****instead of the actual value. The default value forSecureisfalse.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnApp.EnvironmentVariableProperty>- Returns:
- a new instance of
CfnApp.EnvironmentVariableProperty - Throws:
NullPointerException- if any required attribute was not provided
-