Class UpdateServiceRequest
- All Implemented Interfaces:
ReadLimitInfo
,Serializable
,Cloneable
- See Also:
-
Field Summary
Fields inherited from class com.amazonaws.AmazonWebServiceRequest
NOOP
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()
Creates a shallow clone of this request.boolean
The short name or full Amazon Resource Name (ARN) of the cluster that your service is running on.Optional deployment parameters that control how many tasks run during the deployment and the ordering of stopping and starting tasks.The number of instantiations of the task to place and keep running in your service.The name of the service to update.Thefamily
andrevision
(family:revision
) or full Amazon Resource Name (ARN) of the task definition to run in your service.int
hashCode()
void
setCluster
(String cluster) The short name or full Amazon Resource Name (ARN) of the cluster that your service is running on.void
setDeploymentConfiguration
(DeploymentConfiguration deploymentConfiguration) Optional deployment parameters that control how many tasks run during the deployment and the ordering of stopping and starting tasks.void
setDesiredCount
(Integer desiredCount) The number of instantiations of the task to place and keep running in your service.void
setService
(String service) The name of the service to update.void
setTaskDefinition
(String taskDefinition) Thefamily
andrevision
(family:revision
) or full Amazon Resource Name (ARN) of the task definition to run in your service.toString()
Returns a string representation of this object; useful for testing and debugging.withCluster
(String cluster) The short name or full Amazon Resource Name (ARN) of the cluster that your service is running on.withDeploymentConfiguration
(DeploymentConfiguration deploymentConfiguration) Optional deployment parameters that control how many tasks run during the deployment and the ordering of stopping and starting tasks.withDesiredCount
(Integer desiredCount) The number of instantiations of the task to place and keep running in your service.withService
(String service) The name of the service to update.withTaskDefinition
(String taskDefinition) Thefamily
andrevision
(family:revision
) or full Amazon Resource Name (ARN) of the task definition to run in your service.Methods inherited from class com.amazonaws.AmazonWebServiceRequest
copyBaseTo, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestCredentialsProvider, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestCredentialsProvider, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeout
-
Constructor Details
-
UpdateServiceRequest
public UpdateServiceRequest()
-
-
Method Details
-
setCluster
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
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
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
The name of the service to update.
- Parameters:
service
- The name of the service to update.
-
getService
The name of the service to update.
- Returns:
- The name of the service to update.
-
withService
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
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
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
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
The
family
andrevision
(family:revision
) or full Amazon Resource Name (ARN) of the task definition to run in your service. If arevision
is not specified, the latestACTIVE
revision is used. If you modify the task definition withUpdateService
, 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
- Thefamily
andrevision
(family:revision
) or full Amazon Resource Name (ARN) of the task definition to run in your service. If arevision
is not specified, the latestACTIVE
revision is used. If you modify the task definition withUpdateService
, 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
The
family
andrevision
(family:revision
) or full Amazon Resource Name (ARN) of the task definition to run in your service. If arevision
is not specified, the latestACTIVE
revision is used. If you modify the task definition withUpdateService
, 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
andrevision
(family:revision
) or full Amazon Resource Name (ARN) of the task definition to run in your service. If arevision
is not specified, the latestACTIVE
revision is used. If you modify the task definition withUpdateService
, 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
The
family
andrevision
(family:revision
) or full Amazon Resource Name (ARN) of the task definition to run in your service. If arevision
is not specified, the latestACTIVE
revision is used. If you modify the task definition withUpdateService
, 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
- Thefamily
andrevision
(family:revision
) or full Amazon Resource Name (ARN) of the task definition to run in your service. If arevision
is not specified, the latestACTIVE
revision is used. If you modify the task definition withUpdateService
, 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
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
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
Returns a string representation of this object; useful for testing and debugging. -
equals
-
hashCode
public int hashCode() -
clone
Description copied from class:AmazonWebServiceRequest
Creates a shallow clone of this request. Explicitly does not clone the deep structure of the request object.- Overrides:
clone
in classAmazonWebServiceRequest
- See Also:
-