@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class UpdateServiceRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
NOOP
Constructor and Description |
---|
UpdateServiceRequest() |
Modifier and Type | Method and Description |
---|---|
UpdateServiceRequest |
clone()
Creates a shallow clone of this object for all fields except the handler context.
|
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.
|
Boolean |
getForceNewDeployment()
Whether or not to force a new deployment of the service.
|
Integer |
getHealthCheckGracePeriodSeconds()
The period of time, in seconds, that the Amazon ECS service scheduler should ignore unhealthy Elastic Load
Balancing target health checks after a task has first started.
|
NetworkConfiguration |
getNetworkConfiguration()
The network configuration for the service.
|
String |
getPlatformVersion()
The platform version you want to update your service to run.
|
String |
getService()
The name of the service to update.
|
String |
getTaskDefinition()
The
family and revision (family:revision ) or full ARN of the task
definition to run in your service. |
int |
hashCode() |
Boolean |
isForceNewDeployment()
Whether or not to force a new deployment of the service.
|
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 |
setForceNewDeployment(Boolean forceNewDeployment)
Whether or not to force a new deployment of the service.
|
void |
setHealthCheckGracePeriodSeconds(Integer healthCheckGracePeriodSeconds)
The period of time, in seconds, that the Amazon ECS service scheduler should ignore unhealthy Elastic Load
Balancing target health checks after a task has first started.
|
void |
setNetworkConfiguration(NetworkConfiguration networkConfiguration)
The network configuration for the service.
|
void |
setPlatformVersion(String platformVersion)
The platform version you want to update your service to run.
|
void |
setService(String service)
The name of the service to update.
|
void |
setTaskDefinition(String taskDefinition)
The
family and revision (family:revision ) or full 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 |
withForceNewDeployment(Boolean forceNewDeployment)
Whether or not to force a new deployment of the service.
|
UpdateServiceRequest |
withHealthCheckGracePeriodSeconds(Integer healthCheckGracePeriodSeconds)
The period of time, in seconds, that the Amazon ECS service scheduler should ignore unhealthy Elastic Load
Balancing target health checks after a task has first started.
|
UpdateServiceRequest |
withNetworkConfiguration(NetworkConfiguration networkConfiguration)
The network configuration for the service.
|
UpdateServiceRequest |
withPlatformVersion(String platformVersion)
The platform version you want to update your service to run.
|
UpdateServiceRequest |
withService(String service)
The name of the service to update.
|
UpdateServiceRequest |
withTaskDefinition(String taskDefinition)
The
family and revision (family:revision ) or full ARN of the task
definition to run in your service. |
addHandlerContext, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getHandlerContext, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestCredentialsProvider, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestCredentialsProvider, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestCredentialsProvider, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeout
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.
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 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(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(String service)
The name of the service to update.
service
- The name of the service to update.public String getService()
The name of the service to update.
public UpdateServiceRequest withService(String service)
The name of the service to update.
service
- The name of the service to update.public void setDesiredCount(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 Integer getDesiredCount()
The number of instantiations of the task to place and keep running in your service.
public UpdateServiceRequest withDesiredCount(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(String taskDefinition)
The family
and revision
(family:revision
) or full 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 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 String getTaskDefinition()
The family
and revision
(family:revision
) or full 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 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(String taskDefinition)
The family
and revision
(family:revision
) or full 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 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 void setNetworkConfiguration(NetworkConfiguration networkConfiguration)
The network configuration for the service. This parameter is required for task definitions that use the
awsvpc
network mode to receive their own Elastic Network Interface, and it is not supported for
other network modes. For more information, see Task Networking in the
Amazon Elastic Container Service Developer Guide.
Updating a service to add a subnet to a list of existing subnets does not trigger a service deployment. For example, if your network configuration change is to keep the existing subnets and simply add another subnet to the network configuration, this does not trigger a new service deployment.
networkConfiguration
- The network configuration for the service. This parameter is required for task definitions that use the
awsvpc
network mode to receive their own Elastic Network Interface, and it is not supported
for other network modes. For more information, see Task Networking
in the Amazon Elastic Container Service Developer Guide. Updating a service to add a subnet to a list of existing subnets does not trigger a service deployment. For example, if your network configuration change is to keep the existing subnets and simply add another subnet to the network configuration, this does not trigger a new service deployment.
public NetworkConfiguration getNetworkConfiguration()
The network configuration for the service. This parameter is required for task definitions that use the
awsvpc
network mode to receive their own Elastic Network Interface, and it is not supported for
other network modes. For more information, see Task Networking in the
Amazon Elastic Container Service Developer Guide.
Updating a service to add a subnet to a list of existing subnets does not trigger a service deployment. For example, if your network configuration change is to keep the existing subnets and simply add another subnet to the network configuration, this does not trigger a new service deployment.
awsvpc
network mode to receive their own Elastic Network Interface, and it is not supported
for other network modes. For more information, see Task
Networking in the Amazon Elastic Container Service Developer Guide. Updating a service to add a subnet to a list of existing subnets does not trigger a service deployment. For example, if your network configuration change is to keep the existing subnets and simply add another subnet to the network configuration, this does not trigger a new service deployment.
public UpdateServiceRequest withNetworkConfiguration(NetworkConfiguration networkConfiguration)
The network configuration for the service. This parameter is required for task definitions that use the
awsvpc
network mode to receive their own Elastic Network Interface, and it is not supported for
other network modes. For more information, see Task Networking in the
Amazon Elastic Container Service Developer Guide.
Updating a service to add a subnet to a list of existing subnets does not trigger a service deployment. For example, if your network configuration change is to keep the existing subnets and simply add another subnet to the network configuration, this does not trigger a new service deployment.
networkConfiguration
- The network configuration for the service. This parameter is required for task definitions that use the
awsvpc
network mode to receive their own Elastic Network Interface, and it is not supported
for other network modes. For more information, see Task Networking
in the Amazon Elastic Container Service Developer Guide. Updating a service to add a subnet to a list of existing subnets does not trigger a service deployment. For example, if your network configuration change is to keep the existing subnets and simply add another subnet to the network configuration, this does not trigger a new service deployment.
public void setPlatformVersion(String platformVersion)
The platform version you want to update your service to run.
platformVersion
- The platform version you want to update your service to run.public String getPlatformVersion()
The platform version you want to update your service to run.
public UpdateServiceRequest withPlatformVersion(String platformVersion)
The platform version you want to update your service to run.
platformVersion
- The platform version you want to update your service to run.public void setForceNewDeployment(Boolean forceNewDeployment)
Whether or not to force a new deployment of the service.
forceNewDeployment
- Whether or not to force a new deployment of the service.public Boolean getForceNewDeployment()
Whether or not to force a new deployment of the service.
public UpdateServiceRequest withForceNewDeployment(Boolean forceNewDeployment)
Whether or not to force a new deployment of the service.
forceNewDeployment
- Whether or not to force a new deployment of the service.public Boolean isForceNewDeployment()
Whether or not to force a new deployment of the service.
public void setHealthCheckGracePeriodSeconds(Integer healthCheckGracePeriodSeconds)
The period of time, in seconds, that the Amazon ECS service scheduler should ignore unhealthy Elastic Load Balancing target health checks after a task has first started. This is only valid if your service is configured to use a load balancer. If your service's tasks take a while to start and respond to ELB health checks, you can specify a health check grace period of up to 1,800 seconds during which the ECS service scheduler will ignore ELB health check status. This grace period can prevent the ECS service scheduler from marking tasks as unhealthy and stopping them before they have time to come up.
healthCheckGracePeriodSeconds
- The period of time, in seconds, that the Amazon ECS service scheduler should ignore unhealthy Elastic Load
Balancing target health checks after a task has first started. This is only valid if your service is
configured to use a load balancer. If your service's tasks take a while to start and respond to ELB health
checks, you can specify a health check grace period of up to 1,800 seconds during which the ECS service
scheduler will ignore ELB health check status. This grace period can prevent the ECS service scheduler
from marking tasks as unhealthy and stopping them before they have time to come up.public Integer getHealthCheckGracePeriodSeconds()
The period of time, in seconds, that the Amazon ECS service scheduler should ignore unhealthy Elastic Load Balancing target health checks after a task has first started. This is only valid if your service is configured to use a load balancer. If your service's tasks take a while to start and respond to ELB health checks, you can specify a health check grace period of up to 1,800 seconds during which the ECS service scheduler will ignore ELB health check status. This grace period can prevent the ECS service scheduler from marking tasks as unhealthy and stopping them before they have time to come up.
public UpdateServiceRequest withHealthCheckGracePeriodSeconds(Integer healthCheckGracePeriodSeconds)
The period of time, in seconds, that the Amazon ECS service scheduler should ignore unhealthy Elastic Load Balancing target health checks after a task has first started. This is only valid if your service is configured to use a load balancer. If your service's tasks take a while to start and respond to ELB health checks, you can specify a health check grace period of up to 1,800 seconds during which the ECS service scheduler will ignore ELB health check status. This grace period can prevent the ECS service scheduler from marking tasks as unhealthy and stopping them before they have time to come up.
healthCheckGracePeriodSeconds
- The period of time, in seconds, that the Amazon ECS service scheduler should ignore unhealthy Elastic Load
Balancing target health checks after a task has first started. This is only valid if your service is
configured to use a load balancer. If your service's tasks take a while to start and respond to ELB health
checks, you can specify a health check grace period of up to 1,800 seconds during which the ECS service
scheduler will ignore ELB health check status. This grace period can prevent the ECS service scheduler
from marking tasks as unhealthy and stopping them before they have time to come up.public String toString()
toString
in class Object
Object.toString()
public UpdateServiceRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.