AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
SubmitTaskStateChangeRequest.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/ecs/ECSRequest.h>
11#include <aws/ecs/ECS_EXPORTS.h>
12#include <aws/ecs/model/AttachmentStateChange.h>
13#include <aws/ecs/model/ContainerStateChange.h>
14#include <aws/ecs/model/ManagedAgentStateChange.h>
15
16#include <utility>
17
18namespace Aws {
19namespace ECS {
20namespace Model {
21
25 public:
26 AWS_ECS_API SubmitTaskStateChangeRequest() = default;
27
28 // Service request name is the Operation name which will send this request out,
29 // each operation should has unique request name, so that we can get operation's name from this request.
30 // Note: this is not true for response, multiple operations may have the same response name,
31 // so we can not get operation's name from response.
32 inline virtual const char* GetServiceRequestName() const override { return "SubmitTaskStateChange"; }
33
34 AWS_ECS_API Aws::String SerializePayload() const override;
35
37
39
43 inline const Aws::String& GetCluster() const { return m_cluster; }
44 inline bool ClusterHasBeenSet() const { return m_clusterHasBeenSet; }
45 template <typename ClusterT = Aws::String>
46 void SetCluster(ClusterT&& value) {
47 m_clusterHasBeenSet = true;
48 m_cluster = std::forward<ClusterT>(value);
49 }
50 template <typename ClusterT = Aws::String>
52 SetCluster(std::forward<ClusterT>(value));
53 return *this;
54 }
56
58
61 inline const Aws::String& GetTask() const { return m_task; }
62 inline bool TaskHasBeenSet() const { return m_taskHasBeenSet; }
63 template <typename TaskT = Aws::String>
64 void SetTask(TaskT&& value) {
65 m_taskHasBeenSet = true;
66 m_task = std::forward<TaskT>(value);
67 }
68 template <typename TaskT = Aws::String>
70 SetTask(std::forward<TaskT>(value));
71 return *this;
72 }
74
76
79 inline const Aws::String& GetStatus() const { return m_status; }
80 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
81 template <typename StatusT = Aws::String>
82 void SetStatus(StatusT&& value) {
83 m_statusHasBeenSet = true;
84 m_status = std::forward<StatusT>(value);
85 }
86 template <typename StatusT = Aws::String>
88 SetStatus(std::forward<StatusT>(value));
89 return *this;
90 }
92
94
97 inline const Aws::String& GetReason() const { return m_reason; }
98 inline bool ReasonHasBeenSet() const { return m_reasonHasBeenSet; }
99 template <typename ReasonT = Aws::String>
100 void SetReason(ReasonT&& value) {
101 m_reasonHasBeenSet = true;
102 m_reason = std::forward<ReasonT>(value);
103 }
104 template <typename ReasonT = Aws::String>
106 SetReason(std::forward<ReasonT>(value));
107 return *this;
108 }
110
112
115 inline const Aws::Vector<ContainerStateChange>& GetContainers() const { return m_containers; }
116 inline bool ContainersHasBeenSet() const { return m_containersHasBeenSet; }
117 template <typename ContainersT = Aws::Vector<ContainerStateChange>>
118 void SetContainers(ContainersT&& value) {
119 m_containersHasBeenSet = true;
120 m_containers = std::forward<ContainersT>(value);
121 }
122 template <typename ContainersT = Aws::Vector<ContainerStateChange>>
124 SetContainers(std::forward<ContainersT>(value));
125 return *this;
126 }
127 template <typename ContainersT = ContainerStateChange>
129 m_containersHasBeenSet = true;
130 m_containers.emplace_back(std::forward<ContainersT>(value));
131 return *this;
132 }
134
136
139 inline const Aws::Vector<AttachmentStateChange>& GetAttachments() const { return m_attachments; }
140 inline bool AttachmentsHasBeenSet() const { return m_attachmentsHasBeenSet; }
141 template <typename AttachmentsT = Aws::Vector<AttachmentStateChange>>
142 void SetAttachments(AttachmentsT&& value) {
143 m_attachmentsHasBeenSet = true;
144 m_attachments = std::forward<AttachmentsT>(value);
145 }
146 template <typename AttachmentsT = Aws::Vector<AttachmentStateChange>>
148 SetAttachments(std::forward<AttachmentsT>(value));
149 return *this;
150 }
151 template <typename AttachmentsT = AttachmentStateChange>
153 m_attachmentsHasBeenSet = true;
154 m_attachments.emplace_back(std::forward<AttachmentsT>(value));
155 return *this;
156 }
158
160
163 inline const Aws::Vector<ManagedAgentStateChange>& GetManagedAgents() const { return m_managedAgents; }
164 inline bool ManagedAgentsHasBeenSet() const { return m_managedAgentsHasBeenSet; }
165 template <typename ManagedAgentsT = Aws::Vector<ManagedAgentStateChange>>
166 void SetManagedAgents(ManagedAgentsT&& value) {
167 m_managedAgentsHasBeenSet = true;
168 m_managedAgents = std::forward<ManagedAgentsT>(value);
169 }
170 template <typename ManagedAgentsT = Aws::Vector<ManagedAgentStateChange>>
172 SetManagedAgents(std::forward<ManagedAgentsT>(value));
173 return *this;
174 }
175 template <typename ManagedAgentsT = ManagedAgentStateChange>
177 m_managedAgentsHasBeenSet = true;
178 m_managedAgents.emplace_back(std::forward<ManagedAgentsT>(value));
179 return *this;
180 }
182
184
187 inline const Aws::Utils::DateTime& GetPullStartedAt() const { return m_pullStartedAt; }
188 inline bool PullStartedAtHasBeenSet() const { return m_pullStartedAtHasBeenSet; }
189 template <typename PullStartedAtT = Aws::Utils::DateTime>
190 void SetPullStartedAt(PullStartedAtT&& value) {
191 m_pullStartedAtHasBeenSet = true;
192 m_pullStartedAt = std::forward<PullStartedAtT>(value);
193 }
194 template <typename PullStartedAtT = Aws::Utils::DateTime>
196 SetPullStartedAt(std::forward<PullStartedAtT>(value));
197 return *this;
198 }
200
202
205 inline const Aws::Utils::DateTime& GetPullStoppedAt() const { return m_pullStoppedAt; }
206 inline bool PullStoppedAtHasBeenSet() const { return m_pullStoppedAtHasBeenSet; }
207 template <typename PullStoppedAtT = Aws::Utils::DateTime>
208 void SetPullStoppedAt(PullStoppedAtT&& value) {
209 m_pullStoppedAtHasBeenSet = true;
210 m_pullStoppedAt = std::forward<PullStoppedAtT>(value);
211 }
212 template <typename PullStoppedAtT = Aws::Utils::DateTime>
214 SetPullStoppedAt(std::forward<PullStoppedAtT>(value));
215 return *this;
216 }
218
220
223 inline const Aws::Utils::DateTime& GetExecutionStoppedAt() const { return m_executionStoppedAt; }
224 inline bool ExecutionStoppedAtHasBeenSet() const { return m_executionStoppedAtHasBeenSet; }
225 template <typename ExecutionStoppedAtT = Aws::Utils::DateTime>
226 void SetExecutionStoppedAt(ExecutionStoppedAtT&& value) {
227 m_executionStoppedAtHasBeenSet = true;
228 m_executionStoppedAt = std::forward<ExecutionStoppedAtT>(value);
229 }
230 template <typename ExecutionStoppedAtT = Aws::Utils::DateTime>
232 SetExecutionStoppedAt(std::forward<ExecutionStoppedAtT>(value));
233 return *this;
234 }
236 private:
237 Aws::String m_cluster;
238
239 Aws::String m_task;
240
241 Aws::String m_status;
242
243 Aws::String m_reason;
244
246
248
250
251 Aws::Utils::DateTime m_pullStartedAt{};
252
253 Aws::Utils::DateTime m_pullStoppedAt{};
254
255 Aws::Utils::DateTime m_executionStoppedAt{};
256 bool m_clusterHasBeenSet = false;
257 bool m_taskHasBeenSet = false;
258 bool m_statusHasBeenSet = false;
259 bool m_reasonHasBeenSet = false;
260 bool m_containersHasBeenSet = false;
261 bool m_attachmentsHasBeenSet = false;
262 bool m_managedAgentsHasBeenSet = false;
263 bool m_pullStartedAtHasBeenSet = false;
264 bool m_pullStoppedAtHasBeenSet = false;
265 bool m_executionStoppedAtHasBeenSet = false;
266};
267
268} // namespace Model
269} // namespace ECS
270} // namespace Aws
const Aws::Vector< ManagedAgentStateChange > & GetManagedAgents() const
SubmitTaskStateChangeRequest & WithPullStoppedAt(PullStoppedAtT &&value)
SubmitTaskStateChangeRequest & WithStatus(StatusT &&value)
SubmitTaskStateChangeRequest & WithExecutionStoppedAt(ExecutionStoppedAtT &&value)
AWS_ECS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
const Aws::Utils::DateTime & GetExecutionStoppedAt() const
virtual const char * GetServiceRequestName() const override
AWS_ECS_API SubmitTaskStateChangeRequest()=default
AWS_ECS_API Aws::String SerializePayload() const override
SubmitTaskStateChangeRequest & WithTask(TaskT &&value)
SubmitTaskStateChangeRequest & AddAttachments(AttachmentsT &&value)
SubmitTaskStateChangeRequest & AddContainers(ContainersT &&value)
SubmitTaskStateChangeRequest & WithPullStartedAt(PullStartedAtT &&value)
SubmitTaskStateChangeRequest & AddManagedAgents(ManagedAgentsT &&value)
SubmitTaskStateChangeRequest & WithReason(ReasonT &&value)
SubmitTaskStateChangeRequest & WithAttachments(AttachmentsT &&value)
const Aws::Vector< AttachmentStateChange > & GetAttachments() const
const Aws::Vector< ContainerStateChange > & GetContainers() const
SubmitTaskStateChangeRequest & WithManagedAgents(ManagedAgentsT &&value)
SubmitTaskStateChangeRequest & WithCluster(ClusterT &&value)
SubmitTaskStateChangeRequest & WithContainers(ContainersT &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector