@Generated(value="software.amazon.awssdk:codegen") public final class EnvironmentVariable extends Object implements SdkPojo, Serializable, ToCopyableBuilder<EnvironmentVariable.Builder,EnvironmentVariable>
Information about an environment variable for a build project or a build.
Modifier and Type | Class and Description |
---|---|
static interface |
EnvironmentVariable.Builder |
Modifier and Type | Method and Description |
---|---|
static EnvironmentVariable.Builder |
builder() |
boolean |
equals(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
String |
name()
The name or key of the environment variable.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends EnvironmentVariable.Builder> |
serializableBuilderClass() |
EnvironmentVariable.Builder |
toBuilder()
Take this object and create a builder that contains all of the current property values of this object.
|
String |
toString() |
EnvironmentVariableType |
type()
The type of environment variable.
|
String |
typeAsString()
The type of environment variable.
|
String |
value()
The value of the environment variable.
|
copy
public String name()
The name or key of the environment variable.
public String value()
The value of the environment variable.
We strongly discourage the use of environment variables to store sensitive values, especially AWS secret key IDs and secret access keys. Environment variables can be displayed in plain text using the AWS CodeBuild console and the AWS Command Line Interface (AWS CLI).
We strongly discourage the use of environment variables to store sensitive values, especially AWS secret key IDs and secret access keys. Environment variables can be displayed in plain text using the AWS CodeBuild console and the AWS Command Line Interface (AWS CLI).
public EnvironmentVariableType type()
The type of environment variable. Valid values include:
PARAMETER_STORE
: An environment variable stored in Amazon EC2 Systems Manager Parameter Store.
PLAINTEXT
: An environment variable in plaintext format.
If the service returns an enum value that is not available in the current SDK version, type
will return
EnvironmentVariableType.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available from
typeAsString()
.
PARAMETER_STORE
: An environment variable stored in Amazon EC2 Systems Manager Parameter
Store.
PLAINTEXT
: An environment variable in plaintext format.
EnvironmentVariableType
public String typeAsString()
The type of environment variable. Valid values include:
PARAMETER_STORE
: An environment variable stored in Amazon EC2 Systems Manager Parameter Store.
PLAINTEXT
: An environment variable in plaintext format.
If the service returns an enum value that is not available in the current SDK version, type
will return
EnvironmentVariableType.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available from
typeAsString()
.
PARAMETER_STORE
: An environment variable stored in Amazon EC2 Systems Manager Parameter
Store.
PLAINTEXT
: An environment variable in plaintext format.
EnvironmentVariableType
public EnvironmentVariable.Builder toBuilder()
ToCopyableBuilder
toBuilder
in interface ToCopyableBuilder<EnvironmentVariable.Builder,EnvironmentVariable>
public static EnvironmentVariable.Builder builder()
public static Class<? extends EnvironmentVariable.Builder> serializableBuilderClass()
Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.