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 Deploymentclone()booleanequals(Object obj)DategetCreatedAt()The Unix time in seconds and milliseconds when the service was created.IntegergetDesiredCount()The most recent desired count of tasks that was specified for the service to deploy or maintain.StringgetId()The ID of the deployment.IntegergetPendingCount()The number of tasks in the deployment that are in thePENDINGstatus.IntegergetRunningCount()The number of tasks in the deployment that are in theRUNNINGstatus.StringgetStatus()The status of the deployment.StringgetTaskDefinition()The most recent task definition that was specified for the service to use.DategetUpdatedAt()The Unix time in seconds and milliseconds when the service was last updated.inthashCode()voidsetCreatedAt(Date createdAt)The Unix time in seconds and milliseconds when the service was created.voidsetDesiredCount(Integer desiredCount)The most recent desired count of tasks that was specified for the service to deploy or maintain.voidsetId(String id)The ID of the deployment.voidsetPendingCount(Integer pendingCount)The number of tasks in the deployment that are in thePENDINGstatus.voidsetRunningCount(Integer runningCount)The number of tasks in the deployment that are in theRUNNINGstatus.voidsetStatus(String status)The status of the deployment.voidsetTaskDefinition(String taskDefinition)The most recent task definition that was specified for the service to use.voidsetUpdatedAt(Date updatedAt)The Unix time in seconds and milliseconds when the service was last updated.StringtoString()Returns a string representation of this object; useful for testing and debugging.DeploymentwithCreatedAt(Date createdAt)The Unix time in seconds and milliseconds when the service was created.DeploymentwithDesiredCount(Integer desiredCount)The most recent desired count of tasks that was specified for the service to deploy or maintain.DeploymentwithId(String id)The ID of the deployment.DeploymentwithPendingCount(Integer pendingCount)The number of tasks in the deployment that are in thePENDINGstatus.DeploymentwithRunningCount(Integer runningCount)The number of tasks in the deployment that are in theRUNNINGstatus.DeploymentwithStatus(String status)The status of the deployment.DeploymentwithTaskDefinition(String taskDefinition)The most recent task definition that was specified for the service to use.DeploymentwithUpdatedAt(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 thePRIMARYdeployment), 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 thePRIMARYdeployment), 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 thePRIMARYdeployment), 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 thePRIMARYdeployment), 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 thePRIMARYdeployment), 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 thePRIMARYdeployment), 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
PENDINGstatus.- Parameters:
pendingCount- The number of tasks in the deployment that are in thePENDINGstatus.
-
getPendingCount
public Integer getPendingCount()
The number of tasks in the deployment that are in the
PENDINGstatus.- Returns:
- The number of tasks in the deployment that are in the
PENDINGstatus.
-
withPendingCount
public Deployment withPendingCount(Integer pendingCount)
The number of tasks in the deployment that are in the
PENDINGstatus.- Parameters:
pendingCount- The number of tasks in the deployment that are in thePENDINGstatus.- 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
RUNNINGstatus.- Parameters:
runningCount- The number of tasks in the deployment that are in theRUNNINGstatus.
-
getRunningCount
public Integer getRunningCount()
The number of tasks in the deployment that are in the
RUNNINGstatus.- Returns:
- The number of tasks in the deployment that are in the
RUNNINGstatus.
-
withRunningCount
public Deployment withRunningCount(Integer runningCount)
The number of tasks in the deployment that are in the
RUNNINGstatus.- Parameters:
runningCount- The number of tasks in the deployment that are in theRUNNINGstatus.- 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:
toStringin classObject- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public Deployment clone()
-
-