Class EnvironmentVariable
- java.lang.Object
-
- software.amazon.awssdk.services.opsworks.model.EnvironmentVariable
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<EnvironmentVariable.Builder,EnvironmentVariable>
@Generated("software.amazon.awssdk:codegen") public final class EnvironmentVariable extends Object implements SdkPojo, Serializable, ToCopyableBuilder<EnvironmentVariable.Builder,EnvironmentVariable>
Represents an app's environment variable.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceEnvironmentVariable.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static EnvironmentVariable.Builderbuilder()booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()Stringkey()(Required) The environment variable's name, which can consist of up to 64 characters and must be specified.List<SdkField<?>>sdkFields()Booleansecure()(Optional) Whether the variable's value will be returned by the DescribeApps action.static Class<? extends EnvironmentVariable.Builder>serializableBuilderClass()EnvironmentVariable.BuildertoBuilder()StringtoString()Returns a string representation of this object.Stringvalue()(Optional) The environment variable's value, which can be left empty.-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
-
-
-
Method Detail
-
key
public final 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.
- Returns:
- (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.
-
value
public final 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.
- Returns:
- (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.
-
secure
public final Boolean secure()
(Optional) Whether the variable's value will be returned by the DescribeApps action. To conceal an environment variable's value, set
Securetotrue.DescribeAppsthen returns*****FILTERED*****instead of the actual value. The default value forSecureisfalse.- Returns:
- (Optional) Whether the variable's value will be returned by the DescribeApps action. To conceal an
environment variable's value, set
Securetotrue.DescribeAppsthen returns*****FILTERED*****instead of the actual value. The default value forSecureisfalse.
-
toBuilder
public EnvironmentVariable.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<EnvironmentVariable.Builder,EnvironmentVariable>
-
builder
public static EnvironmentVariable.Builder builder()
-
serializableBuilderClass
public static Class<? extends EnvironmentVariable.Builder> serializableBuilderClass()
-
equalsBySdkFields
public final boolean equalsBySdkFields(Object obj)
- Specified by:
equalsBySdkFieldsin interfaceSdkPojo
-
toString
public final String toString()
Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
-
-