Class BuildEnvironmentVariable.Builder
java.lang.Object
software.amazon.awscdk.services.codebuild.BuildEnvironmentVariable.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<BuildEnvironmentVariable>
- Enclosing interface:
BuildEnvironmentVariable
@Stability(Stable)
public static final class BuildEnvironmentVariable.Builder
extends Object
implements software.amazon.jsii.Builder<BuildEnvironmentVariable>
A builder for
BuildEnvironmentVariable
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.Sets the value ofBuildEnvironmentVariable.getType()
Sets the value ofBuildEnvironmentVariable.getValue()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
value
Sets the value ofBuildEnvironmentVariable.getValue()
- Parameters:
value
- The value of the environment variable. This parameter is required. For plain-text variables (the default), this is the literal value of variable. For SSM parameter variables, pass the name of the parameter here (parameterName
property ofIParameter
). For SecretsManager variables secrets, pass either the secret name (secretName
property ofISecret
) or the secret ARN (secretArn
property ofISecret
) here, along with optional SecretsManager qualifiers separated by ':', like the JSON key, or the version or stage (see https://docs.aws.amazon.com/codebuild/latest/userguide/build-spec-ref.html#build-spec.env.secrets-manager for details).- Returns:
this
-
type
Sets the value ofBuildEnvironmentVariable.getType()
- Parameters:
type
- The type of environment variable.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<BuildEnvironmentVariable>
- Returns:
- a new instance of
BuildEnvironmentVariable
- Throws:
NullPointerException
- if any required attribute was not provided
-