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