Class Deployment

    • Constructor Detail

      • Deployment

        public Deployment()
    • 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 the PRIMARY deployment), and INACTIVE (for deployments that have been completely replaced).

        Parameters:
        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).
      • 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 the PRIMARY deployment), and INACTIVE (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 the PRIMARY deployment), and INACTIVE (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 the PRIMARY deployment), and INACTIVE (for deployments that have been completely replaced).

        Parameters:
        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).
        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 the PENDING 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 the PENDING 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 the RUNNING 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 the RUNNING 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 class Object
        Returns:
        A string representation of this object.
        See Also:
        Object.toString()
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object