Class Deployment
- All Implemented Interfaces:
Serializable, Cloneable
The details of an Amazon ECS service deployment.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()booleanThe Unix time in seconds and milliseconds when the service was created.The most recent desired count of tasks that was specified for the service to deploy or maintain.getId()The ID of the deployment.The number of tasks in the deployment that are in thePENDINGstatus.The number of tasks in the deployment that are in theRUNNINGstatus.The status of the deployment.The most recent task definition that was specified for the service to use.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.voidThe 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.voidThe 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.toString()Returns a string representation of this object; useful for testing and debugging.withCreatedAt(Date createdAt) The Unix time in seconds and milliseconds when the service was created.withDesiredCount(Integer desiredCount) The most recent desired count of tasks that was specified for the service to deploy or maintain.The ID of the deployment.withPendingCount(Integer pendingCount) The number of tasks in the deployment that are in thePENDINGstatus.withRunningCount(Integer runningCount) The number of tasks in the deployment that are in theRUNNINGstatus.withStatus(String status) The status of the deployment.withTaskDefinition(String taskDefinition) The most recent task definition that was specified for the service to use.withUpdatedAt(Date updatedAt) The Unix time in seconds and milliseconds when the service was last updated.
-
Constructor Details
-
Deployment
public Deployment()
-
-
Method Details
-
setId
-
getId
-
withId
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
-
equals
-
hashCode
-
clone
-