Class Deployment
- java.lang.Object
-
- com.amazonaws.services.ecs.model.Deployment
-
- All Implemented Interfaces:
Serializable
,Cloneable
public class Deployment extends Object implements Serializable, Cloneable
The details of an Amazon ECS service deployment.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description Deployment()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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 or maintain.String
getId()
The ID of the deployment.Integer
getPendingCount()
The number of tasks in the deployment that are in thePENDING
status.Integer
getRunningCount()
The number of tasks in the deployment that are in theRUNNING
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 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 thePENDING
status.void
setRunningCount(Integer runningCount)
The number of tasks in the deployment that are in theRUNNING
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 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 thePENDING
status.Deployment
withRunningCount(Integer runningCount)
The number of tasks in the deployment that are in theRUNNING
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.
-
-
-
Method Detail
-
setId
public void setId(String id)
The ID of the deployment.
- Parameters:
id
- The ID of the deployment.
-
getId
public String getId()
The ID of the deployment.
- Returns:
- The ID of the deployment.
-
withId
public Deployment withId(String id)
The ID of the deployment.
- Parameters:
id
- The ID of the deployment.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setStatus
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 thePRIMARY
deployment), andINACTIVE
(for deployments that have been completely replaced).- Parameters:
status
- The status of the deployment. Valid values arePRIMARY
(for the most recent deployment),ACTIVE
(for previous deployments that still have tasks running, but are being replaced with thePRIMARY
deployment), andINACTIVE
(for deployments that have been completely replaced).
-
getStatus
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 thePRIMARY
deployment), andINACTIVE
(for deployments that have been completely replaced).- Returns:
- 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 thePRIMARY
deployment), andINACTIVE
(for deployments that have been completely replaced).
-
withStatus
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 thePRIMARY
deployment), andINACTIVE
(for deployments that have been completely replaced).- Parameters:
status
- The status of the deployment. Valid values arePRIMARY
(for the most recent deployment),ACTIVE
(for previous deployments that still have tasks running, but are being replaced with thePRIMARY
deployment), andINACTIVE
(for deployments that have been completely replaced).- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setTaskDefinition
public void setTaskDefinition(String taskDefinition)
The most recent task definition that was specified for the service to use.
- Parameters:
taskDefinition
- The most recent task definition that was specified for the service to use.
-
getTaskDefinition
public String getTaskDefinition()
The most recent task definition that was specified for the service to use.
- Returns:
- The most recent task definition that was specified for the service to use.
-
withTaskDefinition
public Deployment withTaskDefinition(String taskDefinition)
The most recent task definition that was specified for the service to use.
- Parameters:
taskDefinition
- The most recent task definition that was specified for the service to use.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setDesiredCount
public void setDesiredCount(Integer desiredCount)
The most recent desired count of tasks that was specified for the service to deploy or maintain.
- Parameters:
desiredCount
- The most recent desired count of tasks that was specified for the service to deploy or maintain.
-
getDesiredCount
public Integer getDesiredCount()
The most recent desired count of tasks that was specified for the service to deploy or maintain.
- Returns:
- The most recent desired count of tasks that was specified for the service to deploy or maintain.
-
withDesiredCount
public Deployment withDesiredCount(Integer desiredCount)
The most recent desired count of tasks that was specified for the service to deploy or maintain.
- Parameters:
desiredCount
- The most recent desired count of tasks that was specified for the service to deploy or maintain.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setPendingCount
public void setPendingCount(Integer pendingCount)
The number of tasks in the deployment that are in the
PENDING
status.- Parameters:
pendingCount
- The number of tasks in the deployment that are in thePENDING
status.
-
getPendingCount
public Integer getPendingCount()
The number of tasks in the deployment that are in the
PENDING
status.- Returns:
- The number of tasks in the deployment that are in the
PENDING
status.
-
withPendingCount
public Deployment withPendingCount(Integer pendingCount)
The number of tasks in the deployment that are in the
PENDING
status.- Parameters:
pendingCount
- The number of tasks in the deployment that are in thePENDING
status.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setRunningCount
public void setRunningCount(Integer runningCount)
The number of tasks in the deployment that are in the
RUNNING
status.- Parameters:
runningCount
- The number of tasks in the deployment that are in theRUNNING
status.
-
getRunningCount
public Integer getRunningCount()
The number of tasks in the deployment that are in the
RUNNING
status.- Returns:
- The number of tasks in the deployment that are in the
RUNNING
status.
-
withRunningCount
public Deployment withRunningCount(Integer runningCount)
The number of tasks in the deployment that are in the
RUNNING
status.- Parameters:
runningCount
- The number of tasks in the deployment that are in theRUNNING
status.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setCreatedAt
public void setCreatedAt(Date createdAt)
The Unix time in seconds and milliseconds when the service was created.
- Parameters:
createdAt
- The Unix time in seconds and milliseconds when the service was created.
-
getCreatedAt
public Date getCreatedAt()
The Unix time in seconds and milliseconds when the service was created.
- Returns:
- The Unix time in seconds and milliseconds when the service was created.
-
withCreatedAt
public Deployment withCreatedAt(Date createdAt)
The Unix time in seconds and milliseconds when the service was created.
- Parameters:
createdAt
- The Unix time in seconds and milliseconds when the service was created.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setUpdatedAt
public void setUpdatedAt(Date updatedAt)
The Unix time in seconds and milliseconds when the service was last updated.
- Parameters:
updatedAt
- The Unix time in seconds and milliseconds when the service was last updated.
-
getUpdatedAt
public Date getUpdatedAt()
The Unix time in seconds and milliseconds when the service was last updated.
- Returns:
- The Unix time in seconds and milliseconds when the service was last updated.
-
withUpdatedAt
public Deployment withUpdatedAt(Date updatedAt)
The Unix time in seconds and milliseconds when the service was last updated.
- Parameters:
updatedAt
- The Unix time in seconds and milliseconds when the service was last updated.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
toString
public String toString()
Returns a string representation of this object; useful for testing and debugging.- Overrides:
toString
in classObject
- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public Deployment clone()
-
-