AWS SDK for C++
AWS SDK for C++
Loading...
Searching...
No Matches
UpdateTaskSetRequest.h
Go to the documentation of this file.
1
6#pragma once
10#include <aws/ecs/model/Scale.h>
11#include <utility>
12
13namespace Aws
14{
15namespace ECS
16{
17namespace 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
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 = false;
225
226 Aws::String m_service;
227 bool m_serviceHasBeenSet = false;
228
229 Aws::String m_taskSet;
230 bool m_taskSetHasBeenSet = false;
231
232 Scale m_scale;
233 bool m_scaleHasBeenSet = false;
234 };
235
236} // namespace Model
237} // namespace ECS
238} // namespace Aws
#define AWS_ECS_API
Definition: ECS_EXPORTS.h:28
UpdateTaskSetRequest & WithScale(const Scale &value)
AWS_ECS_API Aws::String SerializePayload() const override
const Aws::String & GetTaskSet() const
const Aws::String & GetService() const
UpdateTaskSetRequest & WithService(const char *value)
void SetService(const Aws::String &value)
UpdateTaskSetRequest & WithService(const Aws::String &value)
UpdateTaskSetRequest & WithCluster(const char *value)
UpdateTaskSetRequest & WithTaskSet(const char *value)
const Aws::String & GetCluster() const
UpdateTaskSetRequest & WithTaskSet(Aws::String &&value)
virtual const char * GetServiceRequestName() const override
void SetTaskSet(const Aws::String &value)
UpdateTaskSetRequest & WithTaskSet(const Aws::String &value)
UpdateTaskSetRequest & WithService(Aws::String &&value)
UpdateTaskSetRequest & WithCluster(const Aws::String &value)
AWS_ECS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
UpdateTaskSetRequest & WithCluster(Aws::String &&value)
void SetCluster(const Aws::String &value)
UpdateTaskSetRequest & WithScale(Scale &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String