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