@Generated(value="software.amazon.awssdk:codegen") public final class GetEnvironmentResponse extends AppConfigResponse implements ToCopyableBuilder<GetEnvironmentResponse.Builder,GetEnvironmentResponse>
| Modifier and Type | Class and Description |
|---|---|
static interface |
GetEnvironmentResponse.Builder |
| Modifier and Type | Method and Description |
|---|---|
String |
applicationId()
The application ID.
|
static GetEnvironmentResponse.Builder |
builder() |
String |
description()
The description of the environment.
|
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
boolean |
hasMonitors()
Returns true if the Monitors property was specified by the sender (it may be empty), or false if the sender did
not specify the value (it will be empty).
|
String |
id()
The environment ID.
|
List<Monitor> |
monitors()
Amazon CloudWatch alarms monitored during the deployment.
|
String |
name()
The name of the environment.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends GetEnvironmentResponse.Builder> |
serializableBuilderClass() |
EnvironmentState |
state()
The state of the environment.
|
String |
stateAsString()
The state of the environment.
|
GetEnvironmentResponse.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
responseMetadatasdkHttpResponseclone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic String applicationId()
The application ID.
public String id()
The environment ID.
public String name()
The name of the environment.
public String description()
The description of the environment.
public EnvironmentState state()
The state of the environment. An environment can be in one of the following states:
READY_FOR_DEPLOYMENT, DEPLOYING, ROLLING_BACK, or ROLLED_BACK
If the service returns an enum value that is not available in the current SDK version, state will return
EnvironmentState.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
stateAsString().
READY_FOR_DEPLOYMENT, DEPLOYING, ROLLING_BACK, or
ROLLED_BACKEnvironmentStatepublic String stateAsString()
The state of the environment. An environment can be in one of the following states:
READY_FOR_DEPLOYMENT, DEPLOYING, ROLLING_BACK, or ROLLED_BACK
If the service returns an enum value that is not available in the current SDK version, state will return
EnvironmentState.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
stateAsString().
READY_FOR_DEPLOYMENT, DEPLOYING, ROLLING_BACK, or
ROLLED_BACKEnvironmentStatepublic boolean hasMonitors()
public List<Monitor> monitors()
Amazon CloudWatch alarms monitored during the deployment.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
You can use hasMonitors() to see if a value was sent in this field.
public GetEnvironmentResponse.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<GetEnvironmentResponse.Builder,GetEnvironmentResponse>toBuilder in class AwsResponsepublic static GetEnvironmentResponse.Builder builder()
public static Class<? extends GetEnvironmentResponse.Builder> serializableBuilderClass()
public int hashCode()
hashCode in class AwsResponsepublic boolean equals(Object obj)
equals in class AwsResponsepublic boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic String toString()
public <T> Optional<T> getValueForField(String fieldName, Class<T> clazz)
getValueForField in class SdkResponseCopyright © 2020. All rights reserved.