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()
boolean
The 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 thePENDING
status.The number of tasks in the deployment that are in theRUNNING
status.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.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
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
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.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 thePENDING
status.withRunningCount
(Integer runningCount) The number of tasks in the deployment that are in theRUNNING
status.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
The ID of the deployment.
- Parameters:
id
- The ID of the deployment.
-
getId
The ID of the deployment.
- Returns:
- The ID of the deployment.
-
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 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
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
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
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
PENDING
status.- Parameters:
pendingCount
- The number of tasks in the deployment that are in thePENDING
status.
-
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
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
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
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
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
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
Returns a string representation of this object; useful for testing and debugging. -
equals
-
hashCode
public int hashCode() -
clone
-