@Generated(value="software.amazon.awssdk:codegen") public final class UpdateServiceRequest extends EcsRequest implements ToCopyableBuilder<UpdateServiceRequest.Builder,UpdateServiceRequest>
| Modifier and Type | Class and Description | 
|---|---|
static interface  | 
UpdateServiceRequest.Builder  | 
| Modifier and Type | Method and Description | 
|---|---|
static UpdateServiceRequest.Builder | 
builder()  | 
String | 
cluster()
 The short name or full Amazon Resource Name (ARN) of the cluster that your service is running on. 
 | 
DeploymentConfiguration | 
deploymentConfiguration()
 Optional deployment parameters that control how many tasks run during the deployment and the ordering of stopping
 and starting tasks. 
 | 
Integer | 
desiredCount()
 The number of instantiations of the task to place and keep running in your service. 
 | 
boolean | 
equals(Object obj)  | 
<T> Optional<T> | 
getValueForField(String fieldName,
                Class<T> clazz)
Used to retrieve the value of a field from any class that extends  
SdkRequest. | 
int | 
hashCode()  | 
NetworkConfiguration | 
networkConfiguration()
 The network configuration for the service. 
 | 
static Class<? extends UpdateServiceRequest.Builder> | 
serializableBuilderClass()  | 
String | 
service()
 The name of the service to update. 
 | 
String | 
taskDefinition()
 The  
family and revision (family:revision) or full Amazon Resource Name
 (ARN) of the task definition to run in your service. | 
UpdateServiceRequest.Builder | 
toBuilder()
Take this object and create a builder that contains all of the current property values of this object. 
 | 
String | 
toString()  | 
overrideConfigurationcopypublic 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.
public String service()
The name of the service to update.
public Integer desiredCount()
The number of instantiations of the task to place and keep running in your service.
public 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.
 
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 DeploymentConfiguration deploymentConfiguration()
Optional deployment parameters that control how many tasks run during the deployment and the ordering of stopping and starting tasks.
public 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 EC2 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 EC2 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.Builder toBuilder()
ToCopyableBuildertoBuilder in interface ToCopyableBuilder<UpdateServiceRequest.Builder,UpdateServiceRequest>toBuilder in class EcsRequestpublic static UpdateServiceRequest.Builder builder()
public static Class<? extends UpdateServiceRequest.Builder> serializableBuilderClass()
public <T> Optional<T> getValueForField(String fieldName, Class<T> clazz)
SdkRequestSdkRequest. The field name
 specified should match the member name from the corresponding service-2.json model specified in the
 codegen-resources folder for a given service. The class specifies what class to cast the returned value to.
 If the returned value is also a modeled class, the SdkRequest.getValueForField(String, Class) method will
 again be available.getValueForField in class SdkRequestfieldName - The name of the member to be retrieved.clazz - The class to cast the returned object to.Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.