Class TaskEnvironmentVariable.Builder
java.lang.Object
software.amazon.awscdk.services.events.targets.TaskEnvironmentVariable.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<TaskEnvironmentVariable>
- Enclosing interface:
- TaskEnvironmentVariable
@Stability(Stable)
public static final class TaskEnvironmentVariable.Builder
extends Object
implements software.amazon.jsii.Builder<TaskEnvironmentVariable>
A builder for
TaskEnvironmentVariable-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.Sets the value ofTaskEnvironmentVariable.getName()Sets the value ofTaskEnvironmentVariable.getValue()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
name
Sets the value ofTaskEnvironmentVariable.getName()- Parameters:
name- Name for the environment variable. This parameter is required. Exactly one ofnameandnamePathmust be specified.- Returns:
this
-
value
Sets the value ofTaskEnvironmentVariable.getValue()- Parameters:
value- Value of the environment variable. This parameter is required. Exactly one ofvalueandvaluePathmust be specified.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<TaskEnvironmentVariable>- Returns:
- a new instance of
TaskEnvironmentVariable - Throws:
NullPointerException- if any required attribute was not provided
-