AWS SDK for C++  0.12.9
AWS SDK for C++
UpdateServiceRequest.h
Go to the documentation of this file.
1 /*
2 * Copyright 2010-2016 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License").
5 * You may not use this file except in compliance with the License.
6 * A copy of the License is located at
7 *
8 * http://aws.amazon.com/apache2.0
9 *
10 * or in the "license" file accompanying this file. This file is distributed
11 * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
12 * express or implied. See the License for the specific language governing
13 * permissions and limitations under the License.
14 */
15 #pragma once
16 #include <aws/ecs/ECS_EXPORTS.h>
17 #include <aws/ecs/ECSRequest.h>
20 
21 namespace Aws
22 {
23 namespace ECS
24 {
25 namespace Model
26 {
27 
31  {
32  public:
34  Aws::String SerializePayload() const override;
35 
36  Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
37 
43  inline const Aws::String& GetCluster() const{ return m_cluster; }
44 
50  inline void SetCluster(const Aws::String& value) { m_clusterHasBeenSet = true; m_cluster = value; }
51 
57  inline void SetCluster(Aws::String&& value) { m_clusterHasBeenSet = true; m_cluster = value; }
58 
64  inline void SetCluster(const char* value) { m_clusterHasBeenSet = true; m_cluster.assign(value); }
65 
71  inline UpdateServiceRequest& WithCluster(const Aws::String& value) { SetCluster(value); return *this;}
72 
78  inline UpdateServiceRequest& WithCluster(Aws::String&& value) { SetCluster(value); return *this;}
79 
85  inline UpdateServiceRequest& WithCluster(const char* value) { SetCluster(value); return *this;}
86 
90  inline const Aws::String& GetService() const{ return m_service; }
91 
95  inline void SetService(const Aws::String& value) { m_serviceHasBeenSet = true; m_service = value; }
96 
100  inline void SetService(Aws::String&& value) { m_serviceHasBeenSet = true; m_service = value; }
101 
105  inline void SetService(const char* value) { m_serviceHasBeenSet = true; m_service.assign(value); }
106 
110  inline UpdateServiceRequest& WithService(const Aws::String& value) { SetService(value); return *this;}
111 
115  inline UpdateServiceRequest& WithService(Aws::String&& value) { SetService(value); return *this;}
116 
120  inline UpdateServiceRequest& WithService(const char* value) { SetService(value); return *this;}
121 
126  inline long GetDesiredCount() const{ return m_desiredCount; }
127 
132  inline void SetDesiredCount(long value) { m_desiredCountHasBeenSet = true; m_desiredCount = value; }
133 
138  inline UpdateServiceRequest& WithDesiredCount(long value) { SetDesiredCount(value); return *this;}
139 
149  inline const Aws::String& GetTaskDefinition() const{ return m_taskDefinition; }
150 
160  inline void SetTaskDefinition(const Aws::String& value) { m_taskDefinitionHasBeenSet = true; m_taskDefinition = value; }
161 
171  inline void SetTaskDefinition(Aws::String&& value) { m_taskDefinitionHasBeenSet = true; m_taskDefinition = value; }
172 
182  inline void SetTaskDefinition(const char* value) { m_taskDefinitionHasBeenSet = true; m_taskDefinition.assign(value); }
183 
193  inline UpdateServiceRequest& WithTaskDefinition(const Aws::String& value) { SetTaskDefinition(value); return *this;}
194 
204  inline UpdateServiceRequest& WithTaskDefinition(Aws::String&& value) { SetTaskDefinition(value); return *this;}
205 
215  inline UpdateServiceRequest& WithTaskDefinition(const char* value) { SetTaskDefinition(value); return *this;}
216 
221  inline const DeploymentConfiguration& GetDeploymentConfiguration() const{ return m_deploymentConfiguration; }
222 
227  inline void SetDeploymentConfiguration(const DeploymentConfiguration& value) { m_deploymentConfigurationHasBeenSet = true; m_deploymentConfiguration = value; }
228 
233  inline void SetDeploymentConfiguration(DeploymentConfiguration&& value) { m_deploymentConfigurationHasBeenSet = true; m_deploymentConfiguration = value; }
234 
239  inline UpdateServiceRequest& WithDeploymentConfiguration(const DeploymentConfiguration& value) { SetDeploymentConfiguration(value); return *this;}
240 
245  inline UpdateServiceRequest& WithDeploymentConfiguration(DeploymentConfiguration&& value) { SetDeploymentConfiguration(value); return *this;}
246 
247  private:
248  Aws::String m_cluster;
249  bool m_clusterHasBeenSet;
250  Aws::String m_service;
251  bool m_serviceHasBeenSet;
252  long m_desiredCount;
253  bool m_desiredCountHasBeenSet;
254  Aws::String m_taskDefinition;
255  bool m_taskDefinitionHasBeenSet;
256  DeploymentConfiguration m_deploymentConfiguration;
257  bool m_deploymentConfigurationHasBeenSet;
258  };
259 
260 } // namespace Model
261 } // namespace ECS
262 } // namespace Aws
UpdateServiceRequest & WithDesiredCount(long value)
void SetTaskDefinition(const Aws::String &value)
#define AWS_ECS_API
Definition: ECS_EXPORTS.h:34
const Aws::String & GetService() const
UpdateServiceRequest & WithTaskDefinition(const char *value)
const Aws::String & GetCluster() const
UpdateServiceRequest & WithCluster(Aws::String &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:63
UpdateServiceRequest & WithCluster(const Aws::String &value)
UpdateServiceRequest & WithDeploymentConfiguration(const DeploymentConfiguration &value)
UpdateServiceRequest & WithService(const Aws::String &value)
void SetDeploymentConfiguration(const DeploymentConfiguration &value)
UpdateServiceRequest & WithCluster(const char *value)
void SetDeploymentConfiguration(DeploymentConfiguration &&value)
const Aws::String & GetTaskDefinition() const
UpdateServiceRequest & WithTaskDefinition(const Aws::String &value)
void SetCluster(const Aws::String &value)
void SetService(const Aws::String &value)
UpdateServiceRequest & WithService(Aws::String &&value)
UpdateServiceRequest & WithService(const char *value)
UpdateServiceRequest & WithDeploymentConfiguration(DeploymentConfiguration &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
UpdateServiceRequest & WithTaskDefinition(Aws::String &&value)
const DeploymentConfiguration & GetDeploymentConfiguration() const
void SetTaskDefinition(Aws::String &&value)
JSON (JavaScript Object Notation).