public class UpdateServiceRequest extends AmazonWebServiceRequest implements java.io.Serializable, java.lang.Cloneable
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
cluster
The short name or full Amazon Resource Name (ARN) of the cluster that
your service is running on.
|
private DeploymentConfiguration |
deploymentConfiguration
Optional deployment parameters that control how many tasks run during the
deployment and the ordering of stopping and starting tasks.
|
private java.lang.Integer |
desiredCount
The number of instantiations of the task to place and keep running in
your service.
|
private java.lang.String |
service
The name of the service to update.
|
private java.lang.String |
taskDefinition
The
family and revision (
family:revision ) or full Amazon Resource Name (ARN) of the
task definition to run in your service. |
NOOP
Constructor and Description |
---|
UpdateServiceRequest() |
Modifier and Type | Method and Description |
---|---|
UpdateServiceRequest |
clone()
Creates a shallow clone of this request.
|
boolean |
equals(java.lang.Object obj) |
java.lang.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.
|
java.lang.Integer |
getDesiredCount()
The number of instantiations of the task to place and keep running in
your service.
|
java.lang.String |
getService()
The name of the service to update.
|
java.lang.String |
getTaskDefinition()
The
family and revision (
family:revision ) or full Amazon Resource Name (ARN) of the
task definition to run in your service. |
int |
hashCode() |
void |
setCluster(java.lang.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(java.lang.Integer desiredCount)
The number of instantiations of the task to place and keep running in
your service.
|
void |
setService(java.lang.String service)
The name of the service to update.
|
void |
setTaskDefinition(java.lang.String taskDefinition)
The
family and revision (
family:revision ) or full Amazon Resource Name (ARN) of the
task definition to run in your service. |
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
UpdateServiceRequest |
withCluster(java.lang.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(java.lang.Integer desiredCount)
The number of instantiations of the task to place and keep running in
your service.
|
UpdateServiceRequest |
withService(java.lang.String service)
The name of the service to update.
|
UpdateServiceRequest |
withTaskDefinition(java.lang.String taskDefinition)
The
family and revision (
family:revision ) or full Amazon Resource Name (ARN) of the
task definition to run in your service. |
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
private java.lang.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.
private java.lang.String service
The name of the service to update.
private java.lang.Integer desiredCount
The number of instantiations of the task to place and keep running in your service.
private java.lang.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.
private DeploymentConfiguration deploymentConfiguration
Optional deployment parameters that control how many tasks run during the deployment and the ordering of stopping and starting tasks.
public void setCluster(java.lang.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.
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.public java.lang.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.
public UpdateServiceRequest withCluster(java.lang.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.
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.public void setService(java.lang.String service)
The name of the service to update.
service
- The name of the service to update.public java.lang.String getService()
The name of the service to update.
public UpdateServiceRequest withService(java.lang.String service)
The name of the service to update.
service
- The name of the service to update.public void setDesiredCount(java.lang.Integer desiredCount)
The number of instantiations of the task to place and keep running in your service.
desiredCount
- The number of instantiations of the task to place and keep running
in your service.public java.lang.Integer getDesiredCount()
The number of instantiations of the task to place and keep running in your service.
public UpdateServiceRequest withDesiredCount(java.lang.Integer desiredCount)
The number of instantiations of the task to place and keep running in your service.
desiredCount
- The number of instantiations of the task to place and keep running
in your service.public void setTaskDefinition(java.lang.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.
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.public java.lang.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.
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.public UpdateServiceRequest withTaskDefinition(java.lang.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.
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.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.
deploymentConfiguration
- Optional deployment parameters that control how many tasks run
during the deployment and the ordering of stopping and starting
tasks.public DeploymentConfiguration getDeploymentConfiguration()
Optional deployment parameters that control how many tasks run during the deployment and the ordering of stopping and starting tasks.
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.
deploymentConfiguration
- Optional deployment parameters that control how many tasks run
during the deployment and the ordering of stopping and starting
tasks.public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public UpdateServiceRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()