public class Deployment extends Object implements Serializable, Cloneable
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 time in seconds and milliseconds when the service was
created.
|
Integer |
getDesiredCount()
The most recent desired count of tasks that was specified for the
service to deploy and/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 time in seconds and milliseconds when the service was last
updated.
|
int |
hashCode() |
void |
setCreatedAt(Date createdAt)
The Unix time in seconds and milliseconds when the service was
created.
|
void |
setDesiredCount(Integer desiredCount)
The most recent desired count of tasks that was specified for the
service to deploy and/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 time in seconds and milliseconds 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 time in seconds and milliseconds when the service was
created.
|
Deployment |
withDesiredCount(Integer desiredCount)
The most recent desired count of tasks that was specified for the
service to deploy and/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 time in seconds and milliseconds when the service was last
updated.
|
public String getId()
public void setId(String id)
id
- The ID of the deployment.public Deployment withId(String id)
Returns a reference to this object so that method calls can be chained together.
id
- The ID of the deployment.public String getStatus()
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 void setStatus(String status)
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 Deployment withStatus(String status)
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).
Returns a reference to this object so that method calls can be chained together.
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 getTaskDefinition()
public void setTaskDefinition(String taskDefinition)
taskDefinition
- The most recent task definition that was specified for the service to
use.public Deployment withTaskDefinition(String taskDefinition)
Returns a reference to this object so that method calls can be chained together.
taskDefinition
- The most recent task definition that was specified for the service to
use.public Integer getDesiredCount()
public void setDesiredCount(Integer desiredCount)
desiredCount
- The most recent desired count of tasks that was specified for the
service to deploy and/or maintain.public Deployment withDesiredCount(Integer desiredCount)
Returns a reference to this object so that method calls can be chained together.
desiredCount
- The most recent desired count of tasks that was specified for the
service to deploy and/or maintain.public Integer getPendingCount()
PENDING
status.PENDING
status.public void setPendingCount(Integer pendingCount)
PENDING
status.pendingCount
- The number of tasks in the deployment that are in the
PENDING
status.public Deployment withPendingCount(Integer pendingCount)
PENDING
status.
Returns a reference to this object so that method calls can be chained together.
pendingCount
- The number of tasks in the deployment that are in the
PENDING
status.public Integer getRunningCount()
RUNNING
status.RUNNING
status.public void setRunningCount(Integer runningCount)
RUNNING
status.runningCount
- The number of tasks in the deployment that are in the
RUNNING
status.public Deployment withRunningCount(Integer runningCount)
RUNNING
status.
Returns a reference to this object so that method calls can be chained together.
runningCount
- The number of tasks in the deployment that are in the
RUNNING
status.public Date getCreatedAt()
public void setCreatedAt(Date createdAt)
createdAt
- The Unix time in seconds and milliseconds when the service was
created.public Deployment withCreatedAt(Date createdAt)
Returns a reference to this object so that method calls can be chained together.
createdAt
- The Unix time in seconds and milliseconds when the service was
created.public Date getUpdatedAt()
public void setUpdatedAt(Date updatedAt)
updatedAt
- The Unix time in seconds and milliseconds when the service was last
updated.public Deployment withUpdatedAt(Date updatedAt)
Returns a reference to this object so that method calls can be chained together.
updatedAt
- The Unix time in seconds and milliseconds when the service was last
updated.public String toString()
toString
in class Object
Object.toString()
public Deployment clone()
Copyright © 2015. All rights reserved.