@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class GetEnvironmentResult extends AmazonWebServiceResult<ResponseMetadata> implements Serializable, Cloneable
| Constructor and Description |
|---|
GetEnvironmentResult() |
| Modifier and Type | Method and Description |
|---|---|
GetEnvironmentResult |
clone() |
boolean |
equals(Object obj) |
String |
getApplicationId()
The application ID.
|
String |
getDescription()
The description of the environment.
|
String |
getId()
The environment ID.
|
List<Monitor> |
getMonitors()
Amazon CloudWatch alarms monitored during the deployment.
|
String |
getName()
The name of the environment.
|
String |
getState()
The state of the environment.
|
int |
hashCode() |
void |
setApplicationId(String applicationId)
The application ID.
|
void |
setDescription(String description)
The description of the environment.
|
void |
setId(String id)
The environment ID.
|
void |
setMonitors(Collection<Monitor> monitors)
Amazon CloudWatch alarms monitored during the deployment.
|
void |
setName(String name)
The name of the environment.
|
void |
setState(String state)
The state of the environment.
|
String |
toString()
Returns a string representation of this object.
|
GetEnvironmentResult |
withApplicationId(String applicationId)
The application ID.
|
GetEnvironmentResult |
withDescription(String description)
The description of the environment.
|
GetEnvironmentResult |
withId(String id)
The environment ID.
|
GetEnvironmentResult |
withMonitors(Collection<Monitor> monitors)
Amazon CloudWatch alarms monitored during the deployment.
|
GetEnvironmentResult |
withMonitors(Monitor... monitors)
Amazon CloudWatch alarms monitored during the deployment.
|
GetEnvironmentResult |
withName(String name)
The name of the environment.
|
GetEnvironmentResult |
withState(EnvironmentState state)
The state of the environment.
|
GetEnvironmentResult |
withState(String state)
The state of the environment.
|
getSdkHttpMetadata, getSdkResponseMetadata, setSdkHttpMetadata, setSdkResponseMetadatapublic void setApplicationId(String applicationId)
The application ID.
applicationId - The application ID.public String getApplicationId()
The application ID.
public GetEnvironmentResult withApplicationId(String applicationId)
The application ID.
applicationId - The application ID.public void setId(String id)
The environment ID.
id - The environment ID.public String getId()
The environment ID.
public GetEnvironmentResult withId(String id)
The environment ID.
id - The environment ID.public void setName(String name)
The name of the environment.
name - The name of the environment.public String getName()
The name of the environment.
public GetEnvironmentResult withName(String name)
The name of the environment.
name - The name of the environment.public void setDescription(String description)
The description of the environment.
description - The description of the environment.public String getDescription()
The description of the environment.
public GetEnvironmentResult withDescription(String description)
The description of the environment.
description - The description of the environment.public void setState(String 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
state - The state of the environment. An environment can be in one of the following states:
READY_FOR_DEPLOYMENT, DEPLOYING, ROLLING_BACK, or
ROLLED_BACKEnvironmentStatepublic String getState()
The state of the environment. An environment can be in one of the following states:
READY_FOR_DEPLOYMENT, DEPLOYING, ROLLING_BACK, or ROLLED_BACK
READY_FOR_DEPLOYMENT, DEPLOYING, ROLLING_BACK, or
ROLLED_BACKEnvironmentStatepublic GetEnvironmentResult withState(String 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
state - The state of the environment. An environment can be in one of the following states:
READY_FOR_DEPLOYMENT, DEPLOYING, ROLLING_BACK, or
ROLLED_BACKEnvironmentStatepublic GetEnvironmentResult withState(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
state - The state of the environment. An environment can be in one of the following states:
READY_FOR_DEPLOYMENT, DEPLOYING, ROLLING_BACK, or
ROLLED_BACKEnvironmentStatepublic List<Monitor> getMonitors()
Amazon CloudWatch alarms monitored during the deployment.
public void setMonitors(Collection<Monitor> monitors)
Amazon CloudWatch alarms monitored during the deployment.
monitors - Amazon CloudWatch alarms monitored during the deployment.public GetEnvironmentResult withMonitors(Monitor... monitors)
Amazon CloudWatch alarms monitored during the deployment.
NOTE: This method appends the values to the existing list (if any). Use
setMonitors(java.util.Collection) or withMonitors(java.util.Collection) if you want to override
the existing values.
monitors - Amazon CloudWatch alarms monitored during the deployment.public GetEnvironmentResult withMonitors(Collection<Monitor> monitors)
Amazon CloudWatch alarms monitored during the deployment.
monitors - Amazon CloudWatch alarms monitored during the deployment.public String toString()
toString in class ObjectObject.toString()public GetEnvironmentResult clone()