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 UpdateServiceRequestclone()Creates a shallow clone of this request.booleanequals(Object obj)StringgetCluster()The short name or full Amazon Resource Name (ARN) of the cluster that your service is running on.DeploymentConfigurationgetDeploymentConfiguration()Optional deployment parameters that control how many tasks run during the deployment and the ordering of stopping and starting tasks.IntegergetDesiredCount()The number of instantiations of the task to place and keep running in your service.StringgetService()The name of the service to update.StringgetTaskDefinition()Thefamilyandrevision(family:revision) or full Amazon Resource Name (ARN) of the task definition to run in your service.inthashCode()voidsetCluster(String cluster)The short name or full Amazon Resource Name (ARN) of the cluster that your service is running on.voidsetDeploymentConfiguration(DeploymentConfiguration deploymentConfiguration)Optional deployment parameters that control how many tasks run during the deployment and the ordering of stopping and starting tasks.voidsetDesiredCount(Integer desiredCount)The number of instantiations of the task to place and keep running in your service.voidsetService(String service)The name of the service to update.voidsetTaskDefinition(String taskDefinition)Thefamilyandrevision(family:revision) or full Amazon Resource Name (ARN) of the task definition to run in your service.StringtoString()Returns a string representation of this object; useful for testing and debugging.UpdateServiceRequestwithCluster(String cluster)The short name or full Amazon Resource Name (ARN) of the cluster that your service is running on.UpdateServiceRequestwithDeploymentConfiguration(DeploymentConfiguration deploymentConfiguration)Optional deployment parameters that control how many tasks run during the deployment and the ordering of stopping and starting tasks.UpdateServiceRequestwithDesiredCount(Integer desiredCount)The number of instantiations of the task to place and keep running in your service.UpdateServiceRequestwithService(String service)The name of the service to update.UpdateServiceRequestwithTaskDefinition(String taskDefinition)Thefamilyandrevision(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
familyandrevision(family:revision) or full Amazon Resource Name (ARN) of the task definition to run in your service. If arevisionis not specified, the latestACTIVErevision 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- Thefamilyandrevision(family:revision) or full Amazon Resource Name (ARN) of the task definition to run in your service. If arevisionis not specified, the latestACTIVErevision 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
familyandrevision(family:revision) or full Amazon Resource Name (ARN) of the task definition to run in your service. If arevisionis not specified, the latestACTIVErevision 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
familyandrevision(family:revision) or full Amazon Resource Name (ARN) of the task definition to run in your service. If arevisionis not specified, the latestACTIVErevision 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
familyandrevision(family:revision) or full Amazon Resource Name (ARN) of the task definition to run in your service. If arevisionis not specified, the latestACTIVErevision 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- Thefamilyandrevision(family:revision) or full Amazon Resource Name (ARN) of the task definition to run in your service. If arevisionis not specified, the latestACTIVErevision 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:
toStringin classObject- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public UpdateServiceRequest clone()
Description copied from class:AmazonWebServiceRequestCreates a shallow clone of this request. Explicitly does not clone the deep structure of the request object.- Overrides:
clonein classAmazonWebServiceRequest- See Also:
Object.clone()
-
-