public class EnvironmentVariable
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable
Represents an app's environment variable.
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
key
(Required) The environment variable's name, which can consist of up to 64
characters and must be specified.
|
private java.lang.Boolean |
secure
(Optional) Whether the variable's value will be returned by the
DescribeApps action.
|
private java.lang.String |
value
(Optional) The environment variable's value, which can be left empty.
|
Constructor and Description |
---|
EnvironmentVariable() |
Modifier and Type | Method and Description |
---|---|
EnvironmentVariable |
clone() |
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getKey()
(Required) The environment variable's name, which can consist of up to 64
characters and must be specified.
|
java.lang.Boolean |
getSecure()
(Optional) Whether the variable's value will be returned by the
DescribeApps action.
|
java.lang.String |
getValue()
(Optional) The environment variable's value, which can be left empty.
|
int |
hashCode() |
java.lang.Boolean |
isSecure()
(Optional) Whether the variable's value will be returned by the
DescribeApps action.
|
void |
setKey(java.lang.String key)
(Required) The environment variable's name, which can consist of up to 64
characters and must be specified.
|
void |
setSecure(java.lang.Boolean secure)
(Optional) Whether the variable's value will be returned by the
DescribeApps action.
|
void |
setValue(java.lang.String value)
(Optional) The environment variable's value, which can be left empty.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
EnvironmentVariable |
withKey(java.lang.String key)
(Required) The environment variable's name, which can consist of up to 64
characters and must be specified.
|
EnvironmentVariable |
withSecure(java.lang.Boolean secure)
(Optional) Whether the variable's value will be returned by the
DescribeApps action.
|
EnvironmentVariable |
withValue(java.lang.String value)
(Optional) The environment variable's value, which can be left empty.
|
private java.lang.String key
(Required) The environment variable's name, which can consist of up to 64 characters and must be specified. The name can contain upper- and lowercase letters, numbers, and underscores (_), but it must start with a letter or underscore.
private java.lang.String value
(Optional) The environment variable's value, which can be left empty. If you specify a value, it can contain up to 256 characters, which must all be printable.
private java.lang.Boolean secure
(Optional) Whether the variable's value will be returned by the
DescribeApps action. To conceal an environment variable's value,
set Secure
to true
. DescribeApps
then returns *****FILTERED*****
instead of the actual value.
The default value for Secure
is false
.
public void setKey(java.lang.String key)
(Required) The environment variable's name, which can consist of up to 64 characters and must be specified. The name can contain upper- and lowercase letters, numbers, and underscores (_), but it must start with a letter or underscore.
key
- (Required) The environment variable's name, which can consist of
up to 64 characters and must be specified. The name can contain
upper- and lowercase letters, numbers, and underscores (_), but it
must start with a letter or underscore.public java.lang.String getKey()
(Required) The environment variable's name, which can consist of up to 64 characters and must be specified. The name can contain upper- and lowercase letters, numbers, and underscores (_), but it must start with a letter or underscore.
public EnvironmentVariable withKey(java.lang.String key)
(Required) The environment variable's name, which can consist of up to 64 characters and must be specified. The name can contain upper- and lowercase letters, numbers, and underscores (_), but it must start with a letter or underscore.
key
- (Required) The environment variable's name, which can consist of
up to 64 characters and must be specified. The name can contain
upper- and lowercase letters, numbers, and underscores (_), but it
must start with a letter or underscore.public void setValue(java.lang.String value)
(Optional) The environment variable's value, which can be left empty. If you specify a value, it can contain up to 256 characters, which must all be printable.
value
- (Optional) The environment variable's value, which can be left
empty. If you specify a value, it can contain up to 256
characters, which must all be printable.public java.lang.String getValue()
(Optional) The environment variable's value, which can be left empty. If you specify a value, it can contain up to 256 characters, which must all be printable.
public EnvironmentVariable withValue(java.lang.String value)
(Optional) The environment variable's value, which can be left empty. If you specify a value, it can contain up to 256 characters, which must all be printable.
value
- (Optional) The environment variable's value, which can be left
empty. If you specify a value, it can contain up to 256
characters, which must all be printable.public void setSecure(java.lang.Boolean secure)
(Optional) Whether the variable's value will be returned by the
DescribeApps action. To conceal an environment variable's value,
set Secure
to true
. DescribeApps
then returns *****FILTERED*****
instead of the actual value.
The default value for Secure
is false
.
secure
- (Optional) Whether the variable's value will be returned by the
DescribeApps action. To conceal an environment variable's
value, set Secure
to true
.
DescribeApps
then returns
*****FILTERED*****
instead of the actual value. The
default value for Secure
is false
.public java.lang.Boolean getSecure()
(Optional) Whether the variable's value will be returned by the
DescribeApps action. To conceal an environment variable's value,
set Secure
to true
. DescribeApps
then returns *****FILTERED*****
instead of the actual value.
The default value for Secure
is false
.
Secure
to true
.
DescribeApps
then returns
*****FILTERED*****
instead of the actual value. The
default value for Secure
is false
.public EnvironmentVariable withSecure(java.lang.Boolean secure)
(Optional) Whether the variable's value will be returned by the
DescribeApps action. To conceal an environment variable's value,
set Secure
to true
. DescribeApps
then returns *****FILTERED*****
instead of the actual value.
The default value for Secure
is false
.
secure
- (Optional) Whether the variable's value will be returned by the
DescribeApps action. To conceal an environment variable's
value, set Secure
to true
.
DescribeApps
then returns
*****FILTERED*****
instead of the actual value. The
default value for Secure
is false
.public java.lang.Boolean isSecure()
(Optional) Whether the variable's value will be returned by the
DescribeApps action. To conceal an environment variable's value,
set Secure
to true
. DescribeApps
then returns *****FILTERED*****
instead of the actual value.
The default value for Secure
is false
.
Secure
to true
.
DescribeApps
then returns
*****FILTERED*****
instead of the actual value. The
default value for Secure
is false
.public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public EnvironmentVariable clone()
clone
in class java.lang.Object