Class UpdateServiceRequest
- java.lang.Object
-
- com.amazonaws.AmazonWebServiceRequest
-
- com.amazonaws.services.ecs.model.UpdateServiceRequest
-
- All Implemented Interfaces:
ReadLimitInfo
,Serializable
,Cloneable
public class UpdateServiceRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class com.amazonaws.AmazonWebServiceRequest
NOOP
-
-
Constructor Summary
Constructors Constructor Description UpdateServiceRequest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description UpdateServiceRequest
clone()
Creates a shallow clone of this request.boolean
equals(Object obj)
String
getCluster()
The short name or full Amazon Resource Name (ARN) of the cluster that your service is running on.DeploymentConfiguration
getDeploymentConfiguration()
Optional deployment parameters that control how many tasks run during the deployment and the ordering of stopping and starting tasks.Integer
getDesiredCount()
The number of instantiations of the task to place and keep running in your service.String
getService()
The name of the service to update.String
getTaskDefinition()
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.String
toString()
Returns a string representation of this object; useful for testing and debugging.UpdateServiceRequest
withCluster(String cluster)
The short name or full Amazon Resource Name (ARN) of the cluster that your service is running on.UpdateServiceRequest
withDeploymentConfiguration(DeploymentConfiguration deploymentConfiguration)
Optional deployment parameters that control how many tasks run during the deployment and the ordering of stopping and starting tasks.UpdateServiceRequest
withDesiredCount(Integer desiredCount)
The number of instantiations of the task to place and keep running in your service.UpdateServiceRequest
withService(String service)
The name of the service to update.UpdateServiceRequest
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
-
-
-
-
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
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
public String 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
public UpdateServiceRequest withTaskDefinition(String taskDefinition)
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
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 classObject
- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public UpdateServiceRequest 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:
Object.clone()
-
-