AWS SDK for C++  1.9.14
AWS SDK for C++
UpdateTaskSetRequest.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/ecs/ECS_EXPORTS.h>
8 #include <aws/ecs/ECSRequest.h>
10 #include <aws/ecs/model/Scale.h>
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace ECS
16 {
17 namespace Model
18 {
19 
23  {
24  public:
26 
27  // Service request name is the Operation name which will send this request out,
28  // each operation should has unique request name, so that we can get operation's name from this request.
29  // Note: this is not true for response, multiple operations may have the same response name,
30  // so we can not get operation's name from response.
31  inline virtual const char* GetServiceRequestName() const override { return "UpdateTaskSet"; }
32 
33  Aws::String SerializePayload() const override;
34 
36 
37 
42  inline const Aws::String& GetCluster() const{ return m_cluster; }
43 
48  inline bool ClusterHasBeenSet() const { return m_clusterHasBeenSet; }
49 
54  inline void SetCluster(const Aws::String& value) { m_clusterHasBeenSet = true; m_cluster = value; }
55 
60  inline void SetCluster(Aws::String&& value) { m_clusterHasBeenSet = true; m_cluster = std::move(value); }
61 
66  inline void SetCluster(const char* value) { m_clusterHasBeenSet = true; m_cluster.assign(value); }
67 
72  inline UpdateTaskSetRequest& WithCluster(const Aws::String& value) { SetCluster(value); return *this;}
73 
78  inline UpdateTaskSetRequest& WithCluster(Aws::String&& value) { SetCluster(std::move(value)); return *this;}
79 
84  inline UpdateTaskSetRequest& WithCluster(const char* value) { SetCluster(value); return *this;}
85 
86 
91  inline const Aws::String& GetService() const{ return m_service; }
92 
97  inline bool ServiceHasBeenSet() const { return m_serviceHasBeenSet; }
98 
103  inline void SetService(const Aws::String& value) { m_serviceHasBeenSet = true; m_service = value; }
104 
109  inline void SetService(Aws::String&& value) { m_serviceHasBeenSet = true; m_service = std::move(value); }
110 
115  inline void SetService(const char* value) { m_serviceHasBeenSet = true; m_service.assign(value); }
116 
121  inline UpdateTaskSetRequest& WithService(const Aws::String& value) { SetService(value); return *this;}
122 
127  inline UpdateTaskSetRequest& WithService(Aws::String&& value) { SetService(std::move(value)); return *this;}
128 
133  inline UpdateTaskSetRequest& WithService(const char* value) { SetService(value); return *this;}
134 
135 
140  inline const Aws::String& GetTaskSet() const{ return m_taskSet; }
141 
146  inline bool TaskSetHasBeenSet() const { return m_taskSetHasBeenSet; }
147 
152  inline void SetTaskSet(const Aws::String& value) { m_taskSetHasBeenSet = true; m_taskSet = value; }
153 
158  inline void SetTaskSet(Aws::String&& value) { m_taskSetHasBeenSet = true; m_taskSet = std::move(value); }
159 
164  inline void SetTaskSet(const char* value) { m_taskSetHasBeenSet = true; m_taskSet.assign(value); }
165 
170  inline UpdateTaskSetRequest& WithTaskSet(const Aws::String& value) { SetTaskSet(value); return *this;}
171 
176  inline UpdateTaskSetRequest& WithTaskSet(Aws::String&& value) { SetTaskSet(std::move(value)); return *this;}
177 
182  inline UpdateTaskSetRequest& WithTaskSet(const char* value) { SetTaskSet(value); return *this;}
183 
184 
189  inline const Scale& GetScale() const{ return m_scale; }
190 
195  inline bool ScaleHasBeenSet() const { return m_scaleHasBeenSet; }
196 
201  inline void SetScale(const Scale& value) { m_scaleHasBeenSet = true; m_scale = value; }
202 
207  inline void SetScale(Scale&& value) { m_scaleHasBeenSet = true; m_scale = std::move(value); }
208 
213  inline UpdateTaskSetRequest& WithScale(const Scale& value) { SetScale(value); return *this;}
214 
219  inline UpdateTaskSetRequest& WithScale(Scale&& value) { SetScale(std::move(value)); return *this;}
220 
221  private:
222 
223  Aws::String m_cluster;
224  bool m_clusterHasBeenSet;
225 
226  Aws::String m_service;
227  bool m_serviceHasBeenSet;
228 
229  Aws::String m_taskSet;
230  bool m_taskSetHasBeenSet;
231 
232  Scale m_scale;
233  bool m_scaleHasBeenSet;
234  };
235 
236 } // namespace Model
237 } // namespace ECS
238 } // namespace Aws
Aws::ECS::Model::UpdateTaskSetRequest::SetScale
void SetScale(Scale &&value)
Definition: UpdateTaskSetRequest.h:207
Aws::ECS::Model::UpdateTaskSetRequest::UpdateTaskSetRequest
UpdateTaskSetRequest()
Aws::CodeDeploy::Model::ComputePlatform::NOT_SET
@ NOT_SET
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::ECS::Model::UpdateTaskSetRequest::WithService
UpdateTaskSetRequest & WithService(Aws::String &&value)
Definition: UpdateTaskSetRequest.h:127
Aws::ECS::Model::UpdateTaskSetRequest::WithCluster
UpdateTaskSetRequest & WithCluster(const Aws::String &value)
Definition: UpdateTaskSetRequest.h:72
Aws::ECS::Model::UpdateTaskSetRequest::WithTaskSet
UpdateTaskSetRequest & WithTaskSet(const char *value)
Definition: UpdateTaskSetRequest.h:182
Aws::ECS::Model::UpdateTaskSetRequest::WithTaskSet
UpdateTaskSetRequest & WithTaskSet(Aws::String &&value)
Definition: UpdateTaskSetRequest.h:176
Aws::ECS::Model::UpdateTaskSetRequest::ClusterHasBeenSet
bool ClusterHasBeenSet() const
Definition: UpdateTaskSetRequest.h:48
Aws::ECS::Model::Scale
Definition: Scale.h:33
Aws::ECS::Model::UpdateTaskSetRequest::WithService
UpdateTaskSetRequest & WithService(const char *value)
Definition: UpdateTaskSetRequest.h:133
Aws::ECS::Model::UpdateTaskSetRequest::SetTaskSet
void SetTaskSet(const char *value)
Definition: UpdateTaskSetRequest.h:164
Aws::ECS::Model::UpdateTaskSetRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::ECS::Model::UpdateTaskSetRequest::TaskSetHasBeenSet
bool TaskSetHasBeenSet() const
Definition: UpdateTaskSetRequest.h:146
AWS_ECS_API
#define AWS_ECS_API
Definition: ECS_EXPORTS.h:28
Aws::ECS::Model::UpdateTaskSetRequest
Definition: UpdateTaskSetRequest.h:23
Aws::ECS::Model::UpdateTaskSetRequest::GetTaskSet
const Aws::String & GetTaskSet() const
Definition: UpdateTaskSetRequest.h:140
Aws::ECS::Model::UpdateTaskSetRequest::GetScale
const Scale & GetScale() const
Definition: UpdateTaskSetRequest.h:189
Aws::ECS::Model::UpdateTaskSetRequest::WithService
UpdateTaskSetRequest & WithService(const Aws::String &value)
Definition: UpdateTaskSetRequest.h:121
Aws::ECS::ECSRequest
Definition: ECSRequest.h:17
Aws::ECS::Model::UpdateTaskSetRequest::WithCluster
UpdateTaskSetRequest & WithCluster(const char *value)
Definition: UpdateTaskSetRequest.h:84
Aws::ECS::Model::UpdateTaskSetRequest::SetTaskSet
void SetTaskSet(Aws::String &&value)
Definition: UpdateTaskSetRequest.h:158
Scale.h
Aws::ECS::Model::UpdateTaskSetRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::ECS::Model::UpdateTaskSetRequest::SetService
void SetService(const char *value)
Definition: UpdateTaskSetRequest.h:115
AWSString.h
Aws::ECS::Model::UpdateTaskSetRequest::WithScale
UpdateTaskSetRequest & WithScale(const Scale &value)
Definition: UpdateTaskSetRequest.h:213
Aws::ECS::Model::UpdateTaskSetRequest::ScaleHasBeenSet
bool ScaleHasBeenSet() const
Definition: UpdateTaskSetRequest.h:195
Aws::ECS::Model::UpdateTaskSetRequest::WithScale
UpdateTaskSetRequest & WithScale(Scale &&value)
Definition: UpdateTaskSetRequest.h:219
Aws::ECS::Model::UpdateTaskSetRequest::SetCluster
void SetCluster(const Aws::String &value)
Definition: UpdateTaskSetRequest.h:54
Aws::ECS::Model::UpdateTaskSetRequest::SetCluster
void SetCluster(Aws::String &&value)
Definition: UpdateTaskSetRequest.h:60
Aws::ECS::Model::UpdateTaskSetRequest::SetTaskSet
void SetTaskSet(const Aws::String &value)
Definition: UpdateTaskSetRequest.h:152
Aws::ECS::Model::UpdateTaskSetRequest::ServiceHasBeenSet
bool ServiceHasBeenSet() const
Definition: UpdateTaskSetRequest.h:97
Aws
Definition: AccessManagementClient.h:15
Aws::ECS::Model::UpdateTaskSetRequest::SetScale
void SetScale(const Scale &value)
Definition: UpdateTaskSetRequest.h:201
Aws::ECS::Model::UpdateTaskSetRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: UpdateTaskSetRequest.h:31
Aws::ECS::Model::UpdateTaskSetRequest::WithCluster
UpdateTaskSetRequest & WithCluster(Aws::String &&value)
Definition: UpdateTaskSetRequest.h:78
Aws::ECS::Model::UpdateTaskSetRequest::GetCluster
const Aws::String & GetCluster() const
Definition: UpdateTaskSetRequest.h:42
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::ECS::Model::UpdateTaskSetRequest::SetService
void SetService(const Aws::String &value)
Definition: UpdateTaskSetRequest.h:103
Aws::ECS::Model::UpdateTaskSetRequest::WithTaskSet
UpdateTaskSetRequest & WithTaskSet(const Aws::String &value)
Definition: UpdateTaskSetRequest.h:170
Aws::ECS::Model::UpdateTaskSetRequest::SetService
void SetService(Aws::String &&value)
Definition: UpdateTaskSetRequest.h:109
ECS_EXPORTS.h
Aws::ECS::Model::UpdateTaskSetRequest::GetService
const Aws::String & GetService() const
Definition: UpdateTaskSetRequest.h:91
ECSRequest.h
Aws::ECS::Model::UpdateTaskSetRequest::SetCluster
void SetCluster(const char *value)
Definition: UpdateTaskSetRequest.h:66