Class CfnContainer.EnvironmentVariableProperty.Builder
java.lang.Object
software.amazon.awscdk.services.lightsail.CfnContainer.EnvironmentVariableProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnContainer.EnvironmentVariableProperty>
- Enclosing interface:
CfnContainer.EnvironmentVariableProperty
@Stability(Stable)
public static final class CfnContainer.EnvironmentVariableProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnContainer.EnvironmentVariableProperty>
A builder for
CfnContainer.EnvironmentVariableProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.Sets the value ofCfnContainer.EnvironmentVariableProperty.getValue()Sets the value ofCfnContainer.EnvironmentVariableProperty.getVariable()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
value
Sets the value ofCfnContainer.EnvironmentVariableProperty.getValue()- Parameters:
value- The environment variable value.- Returns:
this
-
variable
@Stability(Stable) public CfnContainer.EnvironmentVariableProperty.Builder variable(String variable) Sets the value ofCfnContainer.EnvironmentVariableProperty.getVariable()- Parameters:
variable- The environment variable key.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnContainer.EnvironmentVariableProperty>- Returns:
- a new instance of
CfnContainer.EnvironmentVariableProperty - Throws:
NullPointerException- if any required attribute was not provided
-