public class Deployment
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable
The details of an Amazon ECS service deployment.
Modifier and Type | Field and Description |
---|---|
private java.util.Date |
createdAt
The Unix time in seconds and milliseconds when the service was created.
|
private java.lang.Integer |
desiredCount
The most recent desired count of tasks that was specified for the service
to deploy or maintain.
|
private java.lang.String |
id
The ID of the deployment.
|
private java.lang.Integer |
pendingCount
The number of tasks in the deployment that are in the
PENDING status. |
private java.lang.Integer |
runningCount
The number of tasks in the deployment that are in the
RUNNING status. |
private java.lang.String |
status
The status of the deployment.
|
private java.lang.String |
taskDefinition
The most recent task definition that was specified for the service to
use.
|
private java.util.Date |
updatedAt
The Unix time in seconds and milliseconds when the service was last
updated.
|
Constructor and Description |
---|
Deployment() |
Modifier and Type | Method and Description |
---|---|
Deployment |
clone() |
boolean |
equals(java.lang.Object obj) |
java.util.Date |
getCreatedAt()
The Unix time in seconds and milliseconds when the service was created.
|
java.lang.Integer |
getDesiredCount()
The most recent desired count of tasks that was specified for the service
to deploy or maintain.
|
java.lang.String |
getId()
The ID of the deployment.
|
java.lang.Integer |
getPendingCount()
The number of tasks in the deployment that are in the
PENDING status. |
java.lang.Integer |
getRunningCount()
The number of tasks in the deployment that are in the
RUNNING status. |
java.lang.String |
getStatus()
The status of the deployment.
|
java.lang.String |
getTaskDefinition()
The most recent task definition that was specified for the service to
use.
|
java.util.Date |
getUpdatedAt()
The Unix time in seconds and milliseconds when the service was last
updated.
|
int |
hashCode() |
void |
setCreatedAt(java.util.Date createdAt)
The Unix time in seconds and milliseconds when the service was created.
|
void |
setDesiredCount(java.lang.Integer desiredCount)
The most recent desired count of tasks that was specified for the service
to deploy or maintain.
|
void |
setId(java.lang.String id)
The ID of the deployment.
|
void |
setPendingCount(java.lang.Integer pendingCount)
The number of tasks in the deployment that are in the
PENDING status. |
void |
setRunningCount(java.lang.Integer runningCount)
The number of tasks in the deployment that are in the
RUNNING status. |
void |
setStatus(java.lang.String status)
The status of the deployment.
|
void |
setTaskDefinition(java.lang.String taskDefinition)
The most recent task definition that was specified for the service to
use.
|
void |
setUpdatedAt(java.util.Date updatedAt)
The Unix time in seconds and milliseconds when the service was last
updated.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
Deployment |
withCreatedAt(java.util.Date createdAt)
The Unix time in seconds and milliseconds when the service was created.
|
Deployment |
withDesiredCount(java.lang.Integer desiredCount)
The most recent desired count of tasks that was specified for the service
to deploy or maintain.
|
Deployment |
withId(java.lang.String id)
The ID of the deployment.
|
Deployment |
withPendingCount(java.lang.Integer pendingCount)
The number of tasks in the deployment that are in the
PENDING status. |
Deployment |
withRunningCount(java.lang.Integer runningCount)
The number of tasks in the deployment that are in the
RUNNING status. |
Deployment |
withStatus(java.lang.String status)
The status of the deployment.
|
Deployment |
withTaskDefinition(java.lang.String taskDefinition)
The most recent task definition that was specified for the service to
use.
|
Deployment |
withUpdatedAt(java.util.Date updatedAt)
The Unix time in seconds and milliseconds when the service was last
updated.
|
private java.lang.String id
The ID of the deployment.
private java.lang.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).
private java.lang.String taskDefinition
The most recent task definition that was specified for the service to use.
private java.lang.Integer desiredCount
The most recent desired count of tasks that was specified for the service to deploy or maintain.
private java.lang.Integer pendingCount
The number of tasks in the deployment that are in the
PENDING
status.
private java.lang.Integer runningCount
The number of tasks in the deployment that are in the
RUNNING
status.
private java.util.Date createdAt
The Unix time in seconds and milliseconds when the service was created.
private java.util.Date updatedAt
The Unix time in seconds and milliseconds when the service was last updated.
public void setId(java.lang.String id)
The ID of the deployment.
id
- The ID of the deployment.public java.lang.String getId()
The ID of the deployment.
public Deployment withId(java.lang.String id)
The ID of the deployment.
id
- The ID of the deployment.public void setStatus(java.lang.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 java.lang.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(java.lang.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(java.lang.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 java.lang.String getTaskDefinition()
The most recent task definition that was specified for the service to use.
public Deployment withTaskDefinition(java.lang.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(java.lang.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 java.lang.Integer getDesiredCount()
The most recent desired count of tasks that was specified for the service to deploy or maintain.
public Deployment withDesiredCount(java.lang.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(java.lang.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 java.lang.Integer getPendingCount()
The number of tasks in the deployment that are in the
PENDING
status.
PENDING
status.public Deployment withPendingCount(java.lang.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(java.lang.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 java.lang.Integer getRunningCount()
The number of tasks in the deployment that are in the
RUNNING
status.
RUNNING
status.public Deployment withRunningCount(java.lang.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(java.util.Date createdAt)
The Unix time in seconds and milliseconds when the service was created.
createdAt
- The Unix time in seconds and milliseconds when the service was
created.public java.util.Date getCreatedAt()
The Unix time in seconds and milliseconds when the service was created.
public Deployment withCreatedAt(java.util.Date createdAt)
The Unix time in seconds and milliseconds when the service was created.
createdAt
- The Unix time in seconds and milliseconds when the service was
created.public void setUpdatedAt(java.util.Date updatedAt)
The Unix time in seconds and milliseconds when the service was last updated.
updatedAt
- The Unix time in seconds and milliseconds when the service was
last updated.public java.util.Date getUpdatedAt()
The Unix time in seconds and milliseconds when the service was last updated.
public Deployment withUpdatedAt(java.util.Date updatedAt)
The Unix time in seconds and milliseconds when the service was last updated.
updatedAt
- The Unix time in seconds and milliseconds when the service was
last updated.public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public Deployment clone()
clone
in class java.lang.Object