Class UpdateServiceRequest

    • Constructor Detail

      • UpdateServiceRequest

        public UpdateServiceRequest()
    • Method Detail

      • setCluster

        public void setCluster​(String cluster)

        The short name or full Amazon Resource Name (ARN) of the cluster that your service is running on. If you do not specify a cluster, the default cluster is assumed.

        Parameters:
        cluster - The short name or full Amazon Resource Name (ARN) of the cluster that your service is running on. If you do not specify a cluster, the default cluster is assumed.
      • getCluster

        public String getCluster()

        The short name or full Amazon Resource Name (ARN) of the cluster that your service is running on. If you do not specify a cluster, the default cluster is assumed.

        Returns:
        The short name or full Amazon Resource Name (ARN) of the cluster that your service is running on. If you do not specify a cluster, the default cluster is assumed.
      • withCluster

        public UpdateServiceRequest withCluster​(String cluster)

        The short name or full Amazon Resource Name (ARN) of the cluster that your service is running on. If you do not specify a cluster, the default cluster is assumed.

        Parameters:
        cluster - The short name or full Amazon Resource Name (ARN) of the cluster that your service is running on. If you do not specify a cluster, the default cluster is assumed.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • setService

        public void setService​(String service)

        The name of the service to update.

        Parameters:
        service - The name of the service to update.
      • getService

        public String getService()

        The name of the service to update.

        Returns:
        The name of the service to update.
      • withService

        public UpdateServiceRequest withService​(String service)

        The name of the service to update.

        Parameters:
        service - The name of the service to update.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • setDesiredCount

        public void setDesiredCount​(Integer desiredCount)

        The number of instantiations of the task to place and keep running in your service.

        Parameters:
        desiredCount - The number of instantiations of the task to place and keep running in your service.
      • getDesiredCount

        public Integer getDesiredCount()

        The number of instantiations of the task to place and keep running in your service.

        Returns:
        The number of instantiations of the task to place and keep running in your service.
      • withDesiredCount

        public UpdateServiceRequest withDesiredCount​(Integer desiredCount)

        The number of instantiations of the task to place and keep running in your service.

        Parameters:
        desiredCount - The number of instantiations of the task to place and keep running in your service.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • setTaskDefinition

        public void setTaskDefinition​(String taskDefinition)

        The family and revision ( family:revision) or full Amazon Resource Name (ARN) of the task definition to run in your service. If a revision is not specified, the latest ACTIVE revision is used. If you modify the task definition with UpdateService, Amazon ECS spawns a task with the new version of the task definition and then stops an old task after the new version is running.

        Parameters:
        taskDefinition - The family and revision ( family:revision) or full Amazon Resource Name (ARN) of the task definition to run in your service. If a revision is not specified, the latest ACTIVE revision is used. If you modify the task definition with UpdateService, Amazon ECS spawns a task with the new version of the task definition and then stops an old task after the new version is running.
      • getTaskDefinition

        public String getTaskDefinition()

        The family and revision ( family:revision) or full Amazon Resource Name (ARN) of the task definition to run in your service. If a revision is not specified, the latest ACTIVE revision is used. If you modify the task definition with UpdateService, Amazon ECS spawns a task with the new version of the task definition and then stops an old task after the new version is running.

        Returns:
        The family and revision ( family:revision) or full Amazon Resource Name (ARN) of the task definition to run in your service. If a revision is not specified, the latest ACTIVE revision is used. If you modify the task definition with UpdateService, Amazon ECS spawns a task with the new version of the task definition and then stops an old task after the new version is running.
      • withTaskDefinition

        public UpdateServiceRequest withTaskDefinition​(String taskDefinition)

        The family and revision ( family:revision) or full Amazon Resource Name (ARN) of the task definition to run in your service. If a revision is not specified, the latest ACTIVE revision is used. If you modify the task definition with UpdateService, Amazon ECS spawns a task with the new version of the task definition and then stops an old task after the new version is running.

        Parameters:
        taskDefinition - The family and revision ( family:revision) or full Amazon Resource Name (ARN) of the task definition to run in your service. If a revision is not specified, the latest ACTIVE revision is used. If you modify the task definition with UpdateService, Amazon ECS spawns a task with the new version of the task definition and then stops an old task after the new version is running.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • setDeploymentConfiguration

        public void setDeploymentConfiguration​(DeploymentConfiguration deploymentConfiguration)

        Optional deployment parameters that control how many tasks run during the deployment and the ordering of stopping and starting tasks.

        Parameters:
        deploymentConfiguration - Optional deployment parameters that control how many tasks run during the deployment and the ordering of stopping and starting tasks.
      • getDeploymentConfiguration

        public DeploymentConfiguration getDeploymentConfiguration()

        Optional deployment parameters that control how many tasks run during the deployment and the ordering of stopping and starting tasks.

        Returns:
        Optional deployment parameters that control how many tasks run during the deployment and the ordering of stopping and starting tasks.
      • withDeploymentConfiguration

        public UpdateServiceRequest withDeploymentConfiguration​(DeploymentConfiguration deploymentConfiguration)

        Optional deployment parameters that control how many tasks run during the deployment and the ordering of stopping and starting tasks.

        Parameters:
        deploymentConfiguration - Optional deployment parameters that control how many tasks run during the deployment and the ordering of stopping and starting tasks.
        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