AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
ExecuteCommandRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/ecs/ECSRequest.h>
9#include <aws/ecs/ECS_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace ECS {
15namespace Model {
16
20 public:
21 AWS_ECS_API ExecuteCommandRequest() = default;
22
23 // Service request name is the Operation name which will send this request out,
24 // each operation should has unique request name, so that we can get operation's name from this request.
25 // Note: this is not true for response, multiple operations may have the same response name,
26 // so we can not get operation's name from response.
27 inline virtual const char* GetServiceRequestName() const override { return "ExecuteCommand"; }
28
29 AWS_ECS_API Aws::String SerializePayload() const override;
30
32
34
38 inline const Aws::String& GetCluster() const { return m_cluster; }
39 inline bool ClusterHasBeenSet() const { return m_clusterHasBeenSet; }
40 template <typename ClusterT = Aws::String>
41 void SetCluster(ClusterT&& value) {
42 m_clusterHasBeenSet = true;
43 m_cluster = std::forward<ClusterT>(value);
44 }
45 template <typename ClusterT = Aws::String>
47 SetCluster(std::forward<ClusterT>(value));
48 return *this;
49 }
51
53
57 inline const Aws::String& GetContainer() const { return m_container; }
58 inline bool ContainerHasBeenSet() const { return m_containerHasBeenSet; }
59 template <typename ContainerT = Aws::String>
60 void SetContainer(ContainerT&& value) {
61 m_containerHasBeenSet = true;
62 m_container = std::forward<ContainerT>(value);
63 }
64 template <typename ContainerT = Aws::String>
65 ExecuteCommandRequest& WithContainer(ContainerT&& value) {
66 SetContainer(std::forward<ContainerT>(value));
67 return *this;
68 }
70
72
75 inline const Aws::String& GetCommand() const { return m_command; }
76 inline bool CommandHasBeenSet() const { return m_commandHasBeenSet; }
77 template <typename CommandT = Aws::String>
78 void SetCommand(CommandT&& value) {
79 m_commandHasBeenSet = true;
80 m_command = std::forward<CommandT>(value);
81 }
82 template <typename CommandT = Aws::String>
84 SetCommand(std::forward<CommandT>(value));
85 return *this;
86 }
88
90
93 inline bool GetInteractive() const { return m_interactive; }
94 inline bool InteractiveHasBeenSet() const { return m_interactiveHasBeenSet; }
95 inline void SetInteractive(bool value) {
96 m_interactiveHasBeenSet = true;
97 m_interactive = value;
98 }
100 SetInteractive(value);
101 return *this;
102 }
104
106
110 inline const Aws::String& GetTask() const { return m_task; }
111 inline bool TaskHasBeenSet() const { return m_taskHasBeenSet; }
112 template <typename TaskT = Aws::String>
113 void SetTask(TaskT&& value) {
114 m_taskHasBeenSet = true;
115 m_task = std::forward<TaskT>(value);
116 }
117 template <typename TaskT = Aws::String>
119 SetTask(std::forward<TaskT>(value));
120 return *this;
121 }
123 private:
124 Aws::String m_cluster;
125
126 Aws::String m_container;
127
128 Aws::String m_command;
129
130 bool m_interactive{false};
131
132 Aws::String m_task;
133 bool m_clusterHasBeenSet = false;
134 bool m_containerHasBeenSet = false;
135 bool m_commandHasBeenSet = false;
136 bool m_interactiveHasBeenSet = false;
137 bool m_taskHasBeenSet = false;
138};
139
140} // namespace Model
141} // namespace ECS
142} // namespace Aws
ExecuteCommandRequest & WithTask(TaskT &&value)
ExecuteCommandRequest & WithInteractive(bool value)
AWS_ECS_API Aws::String SerializePayload() const override
ExecuteCommandRequest & WithContainer(ContainerT &&value)
ExecuteCommandRequest & WithCluster(ClusterT &&value)
ExecuteCommandRequest & WithCommand(CommandT &&value)
AWS_ECS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
virtual const char * GetServiceRequestName() const override
AWS_ECS_API ExecuteCommandRequest()=default
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String