AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ExecuteCommandRequest.h
1
6#pragma once
7#include <aws/ecs/ECS_EXPORTS.h>
8#include <aws/ecs/ECSRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <utility>
11
12namespace Aws
13{
14namespace ECS
15{
16namespace Model
17{
18
22 {
23 public:
24 AWS_ECS_API ExecuteCommandRequest();
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_ECS_API Aws::String SerializePayload() const override;
33
35
36
38
42 inline const Aws::String& GetCluster() const{ return m_cluster; }
43 inline bool ClusterHasBeenSet() const { return m_clusterHasBeenSet; }
44 inline void SetCluster(const Aws::String& value) { m_clusterHasBeenSet = true; m_cluster = value; }
45 inline void SetCluster(Aws::String&& value) { m_clusterHasBeenSet = true; m_cluster = std::move(value); }
46 inline void SetCluster(const char* value) { m_clusterHasBeenSet = true; m_cluster.assign(value); }
47 inline ExecuteCommandRequest& WithCluster(const Aws::String& value) { SetCluster(value); return *this;}
48 inline ExecuteCommandRequest& WithCluster(Aws::String&& value) { SetCluster(std::move(value)); return *this;}
49 inline ExecuteCommandRequest& WithCluster(const char* value) { SetCluster(value); return *this;}
51
53
57 inline const Aws::String& GetContainer() const{ return m_container; }
58 inline bool ContainerHasBeenSet() const { return m_containerHasBeenSet; }
59 inline void SetContainer(const Aws::String& value) { m_containerHasBeenSet = true; m_container = value; }
60 inline void SetContainer(Aws::String&& value) { m_containerHasBeenSet = true; m_container = std::move(value); }
61 inline void SetContainer(const char* value) { m_containerHasBeenSet = true; m_container.assign(value); }
62 inline ExecuteCommandRequest& WithContainer(const Aws::String& value) { SetContainer(value); return *this;}
63 inline ExecuteCommandRequest& WithContainer(Aws::String&& value) { SetContainer(std::move(value)); return *this;}
64 inline ExecuteCommandRequest& WithContainer(const char* value) { SetContainer(value); return *this;}
66
68
71 inline const Aws::String& GetCommand() const{ return m_command; }
72 inline bool CommandHasBeenSet() const { return m_commandHasBeenSet; }
73 inline void SetCommand(const Aws::String& value) { m_commandHasBeenSet = true; m_command = value; }
74 inline void SetCommand(Aws::String&& value) { m_commandHasBeenSet = true; m_command = std::move(value); }
75 inline void SetCommand(const char* value) { m_commandHasBeenSet = true; m_command.assign(value); }
76 inline ExecuteCommandRequest& WithCommand(const Aws::String& value) { SetCommand(value); return *this;}
77 inline ExecuteCommandRequest& WithCommand(Aws::String&& value) { SetCommand(std::move(value)); return *this;}
78 inline ExecuteCommandRequest& WithCommand(const char* value) { SetCommand(value); return *this;}
80
82
85 inline bool GetInteractive() const{ return m_interactive; }
86 inline bool InteractiveHasBeenSet() const { return m_interactiveHasBeenSet; }
87 inline void SetInteractive(bool value) { m_interactiveHasBeenSet = true; m_interactive = value; }
88 inline ExecuteCommandRequest& WithInteractive(bool value) { SetInteractive(value); return *this;}
90
92
96 inline const Aws::String& GetTask() const{ return m_task; }
97 inline bool TaskHasBeenSet() const { return m_taskHasBeenSet; }
98 inline void SetTask(const Aws::String& value) { m_taskHasBeenSet = true; m_task = value; }
99 inline void SetTask(Aws::String&& value) { m_taskHasBeenSet = true; m_task = std::move(value); }
100 inline void SetTask(const char* value) { m_taskHasBeenSet = true; m_task.assign(value); }
101 inline ExecuteCommandRequest& WithTask(const Aws::String& value) { SetTask(value); return *this;}
102 inline ExecuteCommandRequest& WithTask(Aws::String&& value) { SetTask(std::move(value)); return *this;}
103 inline ExecuteCommandRequest& WithTask(const char* value) { SetTask(value); return *this;}
105 private:
106
107 Aws::String m_cluster;
108 bool m_clusterHasBeenSet = false;
109
110 Aws::String m_container;
111 bool m_containerHasBeenSet = false;
112
113 Aws::String m_command;
114 bool m_commandHasBeenSet = false;
115
116 bool m_interactive;
117 bool m_interactiveHasBeenSet = false;
118
119 Aws::String m_task;
120 bool m_taskHasBeenSet = false;
121 };
122
123} // namespace Model
124} // namespace ECS
125} // namespace Aws
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
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