AWS SDK for C++  1.9.160
AWS SDK for C++
ExecuteCommandRequest.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 <utility>
11 
12 namespace Aws
13 {
14 namespace ECS
15 {
16 namespace 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 
32  Aws::String SerializePayload() const override;
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;
249 
250  Aws::String m_container;
251  bool m_containerHasBeenSet;
252 
253  Aws::String m_command;
254  bool m_commandHasBeenSet;
255 
256  bool m_interactive;
257  bool m_interactiveHasBeenSet;
258 
259  Aws::String m_task;
260  bool m_taskHasBeenSet;
261  };
262 
263 } // namespace Model
264 } // namespace ECS
265 } // namespace Aws
Aws::ECS::Model::ExecuteCommandRequest::WithCommand
ExecuteCommandRequest & WithCommand(const Aws::String &value)
Definition: ExecuteCommandRequest.h:163
Aws::ECS::Model::ExecuteCommandRequest::SetContainer
void SetContainer(Aws::String &&value)
Definition: ExecuteCommandRequest.h:108
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::ExecuteCommandRequest::WithTask
ExecuteCommandRequest & WithTask(const char *value)
Definition: ExecuteCommandRequest.h:243
Aws::ECS::Model::ExecuteCommandRequest::GetTask
const Aws::String & GetTask() const
Definition: ExecuteCommandRequest.h:201
Aws::ECS::Model::ExecuteCommandRequest::SetContainer
void SetContainer(const Aws::String &value)
Definition: ExecuteCommandRequest.h:102
Aws::ECS::Model::ExecuteCommandRequest::SetCommand
void SetCommand(const char *value)
Definition: ExecuteCommandRequest.h:158
Aws::ECS::Model::ExecuteCommandRequest::GetCommand
const Aws::String & GetCommand() const
Definition: ExecuteCommandRequest.h:138
Aws::ECS::Model::ExecuteCommandRequest
Definition: ExecuteCommandRequest.h:22
Aws::ECS::Model::ExecuteCommandRequest::WithContainer
ExecuteCommandRequest & WithContainer(const char *value)
Definition: ExecuteCommandRequest.h:132
Aws::ECS::Model::ExecuteCommandRequest::SetInteractive
void SetInteractive(bool value)
Definition: ExecuteCommandRequest.h:189
Aws::ECS::Model::ExecuteCommandRequest::SetContainer
void SetContainer(const char *value)
Definition: ExecuteCommandRequest.h:114
Aws::ECS::Model::ExecuteCommandRequest::ContainerHasBeenSet
bool ContainerHasBeenSet() const
Definition: ExecuteCommandRequest.h:96
Aws::ECS::Model::ExecuteCommandRequest::GetCluster
const Aws::String & GetCluster() const
Definition: ExecuteCommandRequest.h:41
AWS_ECS_API
#define AWS_ECS_API
Definition: ECS_EXPORTS.h:28
Aws::ECS::Model::ExecuteCommandRequest::GetContainer
const Aws::String & GetContainer() const
Definition: ExecuteCommandRequest.h:90
Aws::ECS::Model::ExecuteCommandRequest::WithCommand
ExecuteCommandRequest & WithCommand(const char *value)
Definition: ExecuteCommandRequest.h:173
Aws::ECS::Model::ExecuteCommandRequest::WithInteractive
ExecuteCommandRequest & WithInteractive(bool value)
Definition: ExecuteCommandRequest.h:194
Aws::ECS::Model::ExecuteCommandRequest::SetTask
void SetTask(const Aws::String &value)
Definition: ExecuteCommandRequest.h:213
Aws::ECS::Model::ExecuteCommandRequest::WithCluster
ExecuteCommandRequest & WithCluster(Aws::String &&value)
Definition: ExecuteCommandRequest.h:77
Aws::ECS::ECSRequest
Definition: ECSRequest.h:17
Aws::ECS::Model::ExecuteCommandRequest::WithCommand
ExecuteCommandRequest & WithCommand(Aws::String &&value)
Definition: ExecuteCommandRequest.h:168
Aws::ECS::Model::ExecuteCommandRequest::ExecuteCommandRequest
ExecuteCommandRequest()
Aws::ECS::Model::ExecuteCommandRequest::WithTask
ExecuteCommandRequest & WithTask(Aws::String &&value)
Definition: ExecuteCommandRequest.h:237
Aws::ECS::Model::ExecuteCommandRequest::SetCommand
void SetCommand(const Aws::String &value)
Definition: ExecuteCommandRequest.h:148
Aws::ECS::Model::ExecuteCommandRequest::WithContainer
ExecuteCommandRequest & WithContainer(Aws::String &&value)
Definition: ExecuteCommandRequest.h:126
Aws::ECS::Model::ExecuteCommandRequest::WithTask
ExecuteCommandRequest & WithTask(const Aws::String &value)
Definition: ExecuteCommandRequest.h:231
AWSString.h
Aws::ECS::Model::ExecuteCommandRequest::CommandHasBeenSet
bool CommandHasBeenSet() const
Definition: ExecuteCommandRequest.h:143
Aws
Definition: AccessManagementClient.h:15
Aws::ECS::Model::ExecuteCommandRequest::SetCluster
void SetCluster(const Aws::String &value)
Definition: ExecuteCommandRequest.h:53
Aws::ECS::Model::ExecuteCommandRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: ExecuteCommandRequest.h:30
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::ECS::Model::ExecuteCommandRequest::SetTask
void SetTask(Aws::String &&value)
Definition: ExecuteCommandRequest.h:219
Aws::ECS::Model::ExecuteCommandRequest::TaskHasBeenSet
bool TaskHasBeenSet() const
Definition: ExecuteCommandRequest.h:207
Aws::ECS::Model::ExecuteCommandRequest::InteractiveHasBeenSet
bool InteractiveHasBeenSet() const
Definition: ExecuteCommandRequest.h:184
Aws::ECS::Model::ExecuteCommandRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::ECS::Model::ExecuteCommandRequest::SetCluster
void SetCluster(Aws::String &&value)
Definition: ExecuteCommandRequest.h:59
Aws::ECS::Model::ExecuteCommandRequest::SetCluster
void SetCluster(const char *value)
Definition: ExecuteCommandRequest.h:65
Aws::ECS::Model::ExecuteCommandRequest::SetTask
void SetTask(const char *value)
Definition: ExecuteCommandRequest.h:225
Aws::ECS::Model::ExecuteCommandRequest::WithCluster
ExecuteCommandRequest & WithCluster(const Aws::String &value)
Definition: ExecuteCommandRequest.h:71
Aws::ECS::Model::ExecuteCommandRequest::GetInteractive
bool GetInteractive() const
Definition: ExecuteCommandRequest.h:179
Aws::ECS::Model::ExecuteCommandRequest::WithContainer
ExecuteCommandRequest & WithContainer(const Aws::String &value)
Definition: ExecuteCommandRequest.h:120
Aws::ECS::Model::ExecuteCommandRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::ECS::Model::ExecuteCommandRequest::SetCommand
void SetCommand(Aws::String &&value)
Definition: ExecuteCommandRequest.h:153
ECS_EXPORTS.h
ECSRequest.h
Aws::ECS::Model::ExecuteCommandRequest::ClusterHasBeenSet
bool ClusterHasBeenSet() const
Definition: ExecuteCommandRequest.h:47
Aws::ECS::Model::ExecuteCommandRequest::WithCluster
ExecuteCommandRequest & WithCluster(const char *value)
Definition: ExecuteCommandRequest.h:83