AWS SDK for C++

AWS SDK for C++ Version 1.11.606

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() = default;
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 template<typename ClusterT = Aws::String>
45 void SetCluster(ClusterT&& value) { m_clusterHasBeenSet = true; m_cluster = std::forward<ClusterT>(value); }
46 template<typename ClusterT = Aws::String>
47 ExecuteCommandRequest& WithCluster(ClusterT&& value) { SetCluster(std::forward<ClusterT>(value)); return *this;}
49
51
55 inline const Aws::String& GetContainer() const { return m_container; }
56 inline bool ContainerHasBeenSet() const { return m_containerHasBeenSet; }
57 template<typename ContainerT = Aws::String>
58 void SetContainer(ContainerT&& value) { m_containerHasBeenSet = true; m_container = std::forward<ContainerT>(value); }
59 template<typename ContainerT = Aws::String>
60 ExecuteCommandRequest& WithContainer(ContainerT&& value) { SetContainer(std::forward<ContainerT>(value)); return *this;}
62
64
67 inline const Aws::String& GetCommand() const { return m_command; }
68 inline bool CommandHasBeenSet() const { return m_commandHasBeenSet; }
69 template<typename CommandT = Aws::String>
70 void SetCommand(CommandT&& value) { m_commandHasBeenSet = true; m_command = std::forward<CommandT>(value); }
71 template<typename CommandT = Aws::String>
72 ExecuteCommandRequest& WithCommand(CommandT&& value) { SetCommand(std::forward<CommandT>(value)); return *this;}
74
76
79 inline bool GetInteractive() const { return m_interactive; }
80 inline bool InteractiveHasBeenSet() const { return m_interactiveHasBeenSet; }
81 inline void SetInteractive(bool value) { m_interactiveHasBeenSet = true; m_interactive = value; }
82 inline ExecuteCommandRequest& WithInteractive(bool value) { SetInteractive(value); return *this;}
84
86
90 inline const Aws::String& GetTask() const { return m_task; }
91 inline bool TaskHasBeenSet() const { return m_taskHasBeenSet; }
92 template<typename TaskT = Aws::String>
93 void SetTask(TaskT&& value) { m_taskHasBeenSet = true; m_task = std::forward<TaskT>(value); }
94 template<typename TaskT = Aws::String>
95 ExecuteCommandRequest& WithTask(TaskT&& value) { SetTask(std::forward<TaskT>(value)); return *this;}
97 private:
98
99 Aws::String m_cluster;
100 bool m_clusterHasBeenSet = false;
101
102 Aws::String m_container;
103 bool m_containerHasBeenSet = false;
104
105 Aws::String m_command;
106 bool m_commandHasBeenSet = false;
107
108 bool m_interactive{false};
109 bool m_interactiveHasBeenSet = false;
110
111 Aws::String m_task;
112 bool m_taskHasBeenSet = false;
113 };
114
115} // namespace Model
116} // namespace ECS
117} // 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