@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class Deployment extends Object implements Serializable, Cloneable, StructuredPojo
The details of an Amazon ECS service deployment.
Constructor and Description |
---|
Deployment() |
Modifier and Type | Method and Description |
---|---|
Deployment |
clone() |
boolean |
equals(Object obj) |
Date |
getCreatedAt()
The Unix timestamp for when the service was created.
|
Integer |
getDesiredCount()
The most recent desired count of tasks that was specified for the service to deploy or maintain.
|
String |
getId()
The ID of the deployment.
|
Integer |
getPendingCount()
The number of tasks in the deployment that are in the
PENDING status. |
Integer |
getRunningCount()
The number of tasks in the deployment that are in the
RUNNING status. |
String |
getStatus()
The status of the deployment.
|
String |
getTaskDefinition()
The most recent task definition that was specified for the service to use.
|
Date |
getUpdatedAt()
The Unix timestamp for when the service was last updated.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setCreatedAt(Date createdAt)
The Unix timestamp for when the service was created.
|
void |
setDesiredCount(Integer desiredCount)
The most recent desired count of tasks that was specified for the service to deploy or maintain.
|
void |
setId(String id)
The ID of the deployment.
|
void |
setPendingCount(Integer pendingCount)
The number of tasks in the deployment that are in the
PENDING status. |
void |
setRunningCount(Integer runningCount)
The number of tasks in the deployment that are in the
RUNNING status. |
void |
setStatus(String status)
The status of the deployment.
|
void |
setTaskDefinition(String taskDefinition)
The most recent task definition that was specified for the service to use.
|
void |
setUpdatedAt(Date updatedAt)
The Unix timestamp for when the service was last updated.
|
String |
toString()
Returns a string representation of this object; useful for testing and debugging.
|
Deployment |
withCreatedAt(Date createdAt)
The Unix timestamp for when the service was created.
|
Deployment |
withDesiredCount(Integer desiredCount)
The most recent desired count of tasks that was specified for the service to deploy or maintain.
|
Deployment |
withId(String id)
The ID of the deployment.
|
Deployment |
withPendingCount(Integer pendingCount)
The number of tasks in the deployment that are in the
PENDING status. |
Deployment |
withRunningCount(Integer runningCount)
The number of tasks in the deployment that are in the
RUNNING status. |
Deployment |
withStatus(String status)
The status of the deployment.
|
Deployment |
withTaskDefinition(String taskDefinition)
The most recent task definition that was specified for the service to use.
|
Deployment |
withUpdatedAt(Date updatedAt)
The Unix timestamp for when the service was last updated.
|
public void setId(String id)
The ID of the deployment.
id
- The ID of the deployment.public String getId()
The ID of the deployment.
public Deployment withId(String id)
The ID of the deployment.
id
- The ID of the deployment.public void setStatus(String status)
The status of the deployment. Valid values are PRIMARY
(for the most recent deployment),
ACTIVE
(for previous deployments that still have tasks running, but are being replaced with the
PRIMARY
deployment), and INACTIVE
(for deployments that have been completely replaced).
status
- The status of the deployment. Valid values are PRIMARY
(for the most recent deployment),
ACTIVE
(for previous deployments that still have tasks running, but are being replaced with
the PRIMARY
deployment), and INACTIVE
(for deployments that have been completely
replaced).public String getStatus()
The status of the deployment. Valid values are PRIMARY
(for the most recent deployment),
ACTIVE
(for previous deployments that still have tasks running, but are being replaced with the
PRIMARY
deployment), and INACTIVE
(for deployments that have been completely replaced).
PRIMARY
(for the most recent deployment),
ACTIVE
(for previous deployments that still have tasks running, but are being replaced with
the PRIMARY
deployment), and INACTIVE
(for deployments that have been
completely replaced).public Deployment withStatus(String status)
The status of the deployment. Valid values are PRIMARY
(for the most recent deployment),
ACTIVE
(for previous deployments that still have tasks running, but are being replaced with the
PRIMARY
deployment), and INACTIVE
(for deployments that have been completely replaced).
status
- The status of the deployment. Valid values are PRIMARY
(for the most recent deployment),
ACTIVE
(for previous deployments that still have tasks running, but are being replaced with
the PRIMARY
deployment), and INACTIVE
(for deployments that have been completely
replaced).public void setTaskDefinition(String taskDefinition)
The most recent task definition that was specified for the service to use.
taskDefinition
- The most recent task definition that was specified for the service to use.public String getTaskDefinition()
The most recent task definition that was specified for the service to use.
public Deployment withTaskDefinition(String taskDefinition)
The most recent task definition that was specified for the service to use.
taskDefinition
- The most recent task definition that was specified for the service to use.public void setDesiredCount(Integer desiredCount)
The most recent desired count of tasks that was specified for the service to deploy or maintain.
desiredCount
- The most recent desired count of tasks that was specified for the service to deploy or maintain.public Integer getDesiredCount()
The most recent desired count of tasks that was specified for the service to deploy or maintain.
public Deployment withDesiredCount(Integer desiredCount)
The most recent desired count of tasks that was specified for the service to deploy or maintain.
desiredCount
- The most recent desired count of tasks that was specified for the service to deploy or maintain.public void setPendingCount(Integer pendingCount)
The number of tasks in the deployment that are in the PENDING
status.
pendingCount
- The number of tasks in the deployment that are in the PENDING
status.public Integer getPendingCount()
The number of tasks in the deployment that are in the PENDING
status.
PENDING
status.public Deployment withPendingCount(Integer pendingCount)
The number of tasks in the deployment that are in the PENDING
status.
pendingCount
- The number of tasks in the deployment that are in the PENDING
status.public void setRunningCount(Integer runningCount)
The number of tasks in the deployment that are in the RUNNING
status.
runningCount
- The number of tasks in the deployment that are in the RUNNING
status.public Integer getRunningCount()
The number of tasks in the deployment that are in the RUNNING
status.
RUNNING
status.public Deployment withRunningCount(Integer runningCount)
The number of tasks in the deployment that are in the RUNNING
status.
runningCount
- The number of tasks in the deployment that are in the RUNNING
status.public void setCreatedAt(Date createdAt)
The Unix timestamp for when the service was created.
createdAt
- The Unix timestamp for when the service was created.public Date getCreatedAt()
The Unix timestamp for when the service was created.
public Deployment withCreatedAt(Date createdAt)
The Unix timestamp for when the service was created.
createdAt
- The Unix timestamp for when the service was created.public void setUpdatedAt(Date updatedAt)
The Unix timestamp for when the service was last updated.
updatedAt
- The Unix timestamp for when the service was last updated.public Date getUpdatedAt()
The Unix timestamp for when the service was last updated.
public Deployment withUpdatedAt(Date updatedAt)
The Unix timestamp for when the service was last updated.
updatedAt
- The Unix timestamp for when the service was last updated.public String toString()
toString
in class Object
Object.toString()
public Deployment clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.