AWS SDK for C++
AWS SDK for C++
Loading...
Searching...
No Matches
ExecuteCommandRequest.h
Go to the documentation of this file.
1
6#pragma once
10#include <utility>
11
12namespace Aws
13{
14namespace ECS
15{
16namespace Model
17{
18
22 {
23 public:
25
26 // Service request name is the Operation name which will send this request out,
27 // each operation should has unique request name, so that we can get operation's name from this request.
28 // Note: this is not true for response, multiple operations may have the same response name,
29 // so we can not get operation's name from response.
30 inline virtual const char* GetServiceRequestName() const override { return "ExecuteCommand"; }
31
33
35
36
41 inline const Aws::String& GetCluster() const{ return m_cluster; }
42
47 inline bool ClusterHasBeenSet() const { return m_clusterHasBeenSet; }
48
53 inline void SetCluster(const Aws::String& value) { m_clusterHasBeenSet = true; m_cluster = value; }
54
59 inline void SetCluster(Aws::String&& value) { m_clusterHasBeenSet = true; m_cluster = std::move(value); }
60
65 inline void SetCluster(const char* value) { m_clusterHasBeenSet = true; m_cluster.assign(value); }
66
71 inline ExecuteCommandRequest& WithCluster(const Aws::String& value) { SetCluster(value); return *this;}
72
77 inline ExecuteCommandRequest& WithCluster(Aws::String&& value) { SetCluster(std::move(value)); return *this;}
78
83 inline ExecuteCommandRequest& WithCluster(const char* value) { SetCluster(value); return *this;}
84
85
90 inline const Aws::String& GetContainer() const{ return m_container; }
91
96 inline bool ContainerHasBeenSet() const { return m_containerHasBeenSet; }
97
102 inline void SetContainer(const Aws::String& value) { m_containerHasBeenSet = true; m_container = value; }
103
108 inline void SetContainer(Aws::String&& value) { m_containerHasBeenSet = true; m_container = std::move(value); }
109
114 inline void SetContainer(const char* value) { m_containerHasBeenSet = true; m_container.assign(value); }
115
120 inline ExecuteCommandRequest& WithContainer(const Aws::String& value) { SetContainer(value); return *this;}
121
126 inline ExecuteCommandRequest& WithContainer(Aws::String&& value) { SetContainer(std::move(value)); return *this;}
127
132 inline ExecuteCommandRequest& WithContainer(const char* value) { SetContainer(value); return *this;}
133
134
138 inline const Aws::String& GetCommand() const{ return m_command; }
139
143 inline bool CommandHasBeenSet() const { return m_commandHasBeenSet; }
144
148 inline void SetCommand(const Aws::String& value) { m_commandHasBeenSet = true; m_command = value; }
149
153 inline void SetCommand(Aws::String&& value) { m_commandHasBeenSet = true; m_command = std::move(value); }
154
158 inline void SetCommand(const char* value) { m_commandHasBeenSet = true; m_command.assign(value); }
159
163 inline ExecuteCommandRequest& WithCommand(const Aws::String& value) { SetCommand(value); return *this;}
164
168 inline ExecuteCommandRequest& WithCommand(Aws::String&& value) { SetCommand(std::move(value)); return *this;}
169
173 inline ExecuteCommandRequest& WithCommand(const char* value) { SetCommand(value); return *this;}
174
175
179 inline bool GetInteractive() const{ return m_interactive; }
180
184 inline bool InteractiveHasBeenSet() const { return m_interactiveHasBeenSet; }
185
189 inline void SetInteractive(bool value) { m_interactiveHasBeenSet = true; m_interactive = value; }
190
194 inline ExecuteCommandRequest& WithInteractive(bool value) { SetInteractive(value); return *this;}
195
196
201 inline const Aws::String& GetTask() const{ return m_task; }
202
207 inline bool TaskHasBeenSet() const { return m_taskHasBeenSet; }
208
213 inline void SetTask(const Aws::String& value) { m_taskHasBeenSet = true; m_task = value; }
214
219 inline void SetTask(Aws::String&& value) { m_taskHasBeenSet = true; m_task = std::move(value); }
220
225 inline void SetTask(const char* value) { m_taskHasBeenSet = true; m_task.assign(value); }
226
231 inline ExecuteCommandRequest& WithTask(const Aws::String& value) { SetTask(value); return *this;}
232
237 inline ExecuteCommandRequest& WithTask(Aws::String&& value) { SetTask(std::move(value)); return *this;}
238
243 inline ExecuteCommandRequest& WithTask(const char* value) { SetTask(value); return *this;}
244
245 private:
246
247 Aws::String m_cluster;
248 bool m_clusterHasBeenSet = false;
249
250 Aws::String m_container;
251 bool m_containerHasBeenSet = false;
252
253 Aws::String m_command;
254 bool m_commandHasBeenSet = false;
255
256 bool m_interactive;
257 bool m_interactiveHasBeenSet = false;
258
259 Aws::String m_task;
260 bool m_taskHasBeenSet = false;
261 };
262
263} // namespace Model
264} // namespace ECS
265} // namespace Aws
#define AWS_ECS_API
Definition: ECS_EXPORTS.h:28
ExecuteCommandRequest & WithCommand(Aws::String &&value)
void SetTask(const Aws::String &value)
void SetCluster(const Aws::String &value)
ExecuteCommandRequest & WithInteractive(bool value)
ExecuteCommandRequest & WithCluster(const char *value)
ExecuteCommandRequest & WithTask(const Aws::String &value)
AWS_ECS_API Aws::String SerializePayload() const override
const Aws::String & GetContainer() const
void SetContainer(const Aws::String &value)
void SetCommand(const Aws::String &value)
ExecuteCommandRequest & WithTask(const char *value)
ExecuteCommandRequest & WithContainer(const char *value)
ExecuteCommandRequest & WithCluster(const Aws::String &value)
AWS_ECS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
ExecuteCommandRequest & WithCommand(const Aws::String &value)
ExecuteCommandRequest & WithCluster(Aws::String &&value)
virtual const char * GetServiceRequestName() const override
ExecuteCommandRequest & WithContainer(const Aws::String &value)
ExecuteCommandRequest & WithCommand(const char *value)
ExecuteCommandRequest & WithContainer(Aws::String &&value)
ExecuteCommandRequest & WithTask(Aws::String &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String