@Generated(value="software.amazon.awssdk:codegen") public class EnvironmentVariable extends Object implements StructuredPojo, 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() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
String |
name()
The name or key of the environment variable.
|
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 using environment variables to store sensitive values, especially AWS secret key IDs and secret access keys. Environment variables can be displayed in plain text using tools such as the AWS CodeBuild console and the AWS Command Line Interface (AWS CLI).
We strongly discourage using environment variables to store sensitive values, especially AWS secret key IDs and secret access keys. Environment variables can be displayed in plain text using tools such as 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()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.