AWS SDK for C++

AWS SDK for C++ Version 1.11.787

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
28 public:
29 AWS_ECS_API SubmitTaskStateChangeRequest() = default;
30
31 // Service request name is the Operation name which will send this request out,
32 // each operation should has unique request name, so that we can get operation's name from this request.
33 // Note: this is not true for response, multiple operations may have the same response name,
34 // so we can not get operation's name from response.
35 inline virtual const char* GetServiceRequestName() const override { return "SubmitTaskStateChange"; }
36
37 AWS_ECS_API Aws::String SerializePayload() const override;
38
40
42
46 inline const Aws::String& GetCluster() const { return m_cluster; }
47 inline bool ClusterHasBeenSet() const { return m_clusterHasBeenSet; }
48 template <typename ClusterT = Aws::String>
49 void SetCluster(ClusterT&& value) {
50 m_clusterHasBeenSet = true;
51 m_cluster = std::forward<ClusterT>(value);
52 }
53 template <typename ClusterT = Aws::String>
55 SetCluster(std::forward<ClusterT>(value));
56 return *this;
57 }
59
61
64 inline const Aws::String& GetTask() const { return m_task; }
65 inline bool TaskHasBeenSet() const { return m_taskHasBeenSet; }
66 template <typename TaskT = Aws::String>
67 void SetTask(TaskT&& value) {
68 m_taskHasBeenSet = true;
69 m_task = std::forward<TaskT>(value);
70 }
71 template <typename TaskT = Aws::String>
73 SetTask(std::forward<TaskT>(value));
74 return *this;
75 }
77
79
82 inline const Aws::String& GetStatus() const { return m_status; }
83 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
84 template <typename StatusT = Aws::String>
85 void SetStatus(StatusT&& value) {
86 m_statusHasBeenSet = true;
87 m_status = std::forward<StatusT>(value);
88 }
89 template <typename StatusT = Aws::String>
91 SetStatus(std::forward<StatusT>(value));
92 return *this;
93 }
95
97
100 inline const Aws::String& GetReason() const { return m_reason; }
101 inline bool ReasonHasBeenSet() const { return m_reasonHasBeenSet; }
102 template <typename ReasonT = Aws::String>
103 void SetReason(ReasonT&& value) {
104 m_reasonHasBeenSet = true;
105 m_reason = std::forward<ReasonT>(value);
106 }
107 template <typename ReasonT = Aws::String>
109 SetReason(std::forward<ReasonT>(value));
110 return *this;
111 }
113
115
118 inline const Aws::Vector<ContainerStateChange>& GetContainers() const { return m_containers; }
119 inline bool ContainersHasBeenSet() const { return m_containersHasBeenSet; }
120 template <typename ContainersT = Aws::Vector<ContainerStateChange>>
121 void SetContainers(ContainersT&& value) {
122 m_containersHasBeenSet = true;
123 m_containers = std::forward<ContainersT>(value);
124 }
125 template <typename ContainersT = Aws::Vector<ContainerStateChange>>
127 SetContainers(std::forward<ContainersT>(value));
128 return *this;
129 }
130 template <typename ContainersT = ContainerStateChange>
132 m_containersHasBeenSet = true;
133 m_containers.emplace_back(std::forward<ContainersT>(value));
134 return *this;
135 }
137
139
142 inline const Aws::Vector<AttachmentStateChange>& GetAttachments() const { return m_attachments; }
143 inline bool AttachmentsHasBeenSet() const { return m_attachmentsHasBeenSet; }
144 template <typename AttachmentsT = Aws::Vector<AttachmentStateChange>>
145 void SetAttachments(AttachmentsT&& value) {
146 m_attachmentsHasBeenSet = true;
147 m_attachments = std::forward<AttachmentsT>(value);
148 }
149 template <typename AttachmentsT = Aws::Vector<AttachmentStateChange>>
151 SetAttachments(std::forward<AttachmentsT>(value));
152 return *this;
153 }
154 template <typename AttachmentsT = AttachmentStateChange>
156 m_attachmentsHasBeenSet = true;
157 m_attachments.emplace_back(std::forward<AttachmentsT>(value));
158 return *this;
159 }
161
163
166 inline const Aws::Vector<ManagedAgentStateChange>& GetManagedAgents() const { return m_managedAgents; }
167 inline bool ManagedAgentsHasBeenSet() const { return m_managedAgentsHasBeenSet; }
168 template <typename ManagedAgentsT = Aws::Vector<ManagedAgentStateChange>>
169 void SetManagedAgents(ManagedAgentsT&& value) {
170 m_managedAgentsHasBeenSet = true;
171 m_managedAgents = std::forward<ManagedAgentsT>(value);
172 }
173 template <typename ManagedAgentsT = Aws::Vector<ManagedAgentStateChange>>
175 SetManagedAgents(std::forward<ManagedAgentsT>(value));
176 return *this;
177 }
178 template <typename ManagedAgentsT = ManagedAgentStateChange>
180 m_managedAgentsHasBeenSet = true;
181 m_managedAgents.emplace_back(std::forward<ManagedAgentsT>(value));
182 return *this;
183 }
185
187
190 inline const Aws::Utils::DateTime& GetPullStartedAt() const { return m_pullStartedAt; }
191 inline bool PullStartedAtHasBeenSet() const { return m_pullStartedAtHasBeenSet; }
192 template <typename PullStartedAtT = Aws::Utils::DateTime>
193 void SetPullStartedAt(PullStartedAtT&& value) {
194 m_pullStartedAtHasBeenSet = true;
195 m_pullStartedAt = std::forward<PullStartedAtT>(value);
196 }
197 template <typename PullStartedAtT = Aws::Utils::DateTime>
199 SetPullStartedAt(std::forward<PullStartedAtT>(value));
200 return *this;
201 }
203
205
208 inline const Aws::Utils::DateTime& GetPullStoppedAt() const { return m_pullStoppedAt; }
209 inline bool PullStoppedAtHasBeenSet() const { return m_pullStoppedAtHasBeenSet; }
210 template <typename PullStoppedAtT = Aws::Utils::DateTime>
211 void SetPullStoppedAt(PullStoppedAtT&& value) {
212 m_pullStoppedAtHasBeenSet = true;
213 m_pullStoppedAt = std::forward<PullStoppedAtT>(value);
214 }
215 template <typename PullStoppedAtT = Aws::Utils::DateTime>
217 SetPullStoppedAt(std::forward<PullStoppedAtT>(value));
218 return *this;
219 }
221
223
226 inline const Aws::Utils::DateTime& GetExecutionStoppedAt() const { return m_executionStoppedAt; }
227 inline bool ExecutionStoppedAtHasBeenSet() const { return m_executionStoppedAtHasBeenSet; }
228 template <typename ExecutionStoppedAtT = Aws::Utils::DateTime>
229 void SetExecutionStoppedAt(ExecutionStoppedAtT&& value) {
230 m_executionStoppedAtHasBeenSet = true;
231 m_executionStoppedAt = std::forward<ExecutionStoppedAtT>(value);
232 }
233 template <typename ExecutionStoppedAtT = Aws::Utils::DateTime>
235 SetExecutionStoppedAt(std::forward<ExecutionStoppedAtT>(value));
236 return *this;
237 }
239 private:
240 Aws::String m_cluster;
241
242 Aws::String m_task;
243
244 Aws::String m_status;
245
246 Aws::String m_reason;
247
249
251
253
254 Aws::Utils::DateTime m_pullStartedAt{};
255
256 Aws::Utils::DateTime m_pullStoppedAt{};
257
258 Aws::Utils::DateTime m_executionStoppedAt{};
259 bool m_clusterHasBeenSet = false;
260 bool m_taskHasBeenSet = false;
261 bool m_statusHasBeenSet = false;
262 bool m_reasonHasBeenSet = false;
263 bool m_containersHasBeenSet = false;
264 bool m_attachmentsHasBeenSet = false;
265 bool m_managedAgentsHasBeenSet = false;
266 bool m_pullStartedAtHasBeenSet = false;
267 bool m_pullStoppedAtHasBeenSet = false;
268 bool m_executionStoppedAtHasBeenSet = false;
269};
270
271} // namespace Model
272} // namespace ECS
273} // 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