@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class Environment extends Object implements Serializable, Cloneable, StructuredPojo
Constructor and Description |
---|
Environment() |
Modifier and Type | Method and Description |
---|---|
Environment |
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 |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
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.
|
Environment |
withApplicationId(String applicationId)
The application ID.
|
Environment |
withDescription(String description)
The description of the environment.
|
Environment |
withId(String id)
The environment ID.
|
Environment |
withMonitors(Collection<Monitor> monitors)
Amazon CloudWatch alarms monitored during the deployment.
|
Environment |
withMonitors(Monitor... monitors)
Amazon CloudWatch alarms monitored during the deployment.
|
Environment |
withName(String name)
The name of the environment.
|
Environment |
withState(EnvironmentState state)
The state of the environment.
|
Environment |
withState(String state)
The state of the environment.
|
public void setApplicationId(String applicationId)
The application ID.
applicationId
- The application ID.public String getApplicationId()
The application ID.
public Environment 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 Environment 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 Environment 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 Environment 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_BACK
EnvironmentState
public 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_BACK
EnvironmentState
public Environment 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_BACK
EnvironmentState
public Environment 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_BACK
EnvironmentState
public 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 Environment 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 Environment 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 Object
Object.toString()
public Environment clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.