AWS SDK for C++
AWS SDK for C++
Loading...
Searching...
No Matches
SubmitTaskStateChangeRequest.h
Go to the documentation of this file.
1
6#pragma once
15#include <utility>
16
17namespace Aws
18{
19namespace ECS
20{
21namespace Model
22{
23
27 {
28 public:
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
38
40
41
46 inline const Aws::String& GetCluster() const{ return m_cluster; }
47
52 inline bool ClusterHasBeenSet() const { return m_clusterHasBeenSet; }
53
58 inline void SetCluster(const Aws::String& value) { m_clusterHasBeenSet = true; m_cluster = value; }
59
64 inline void SetCluster(Aws::String&& value) { m_clusterHasBeenSet = true; m_cluster = std::move(value); }
65
70 inline void SetCluster(const char* value) { m_clusterHasBeenSet = true; m_cluster.assign(value); }
71
76 inline SubmitTaskStateChangeRequest& WithCluster(const Aws::String& value) { SetCluster(value); return *this;}
77
82 inline SubmitTaskStateChangeRequest& WithCluster(Aws::String&& value) { SetCluster(std::move(value)); return *this;}
83
88 inline SubmitTaskStateChangeRequest& WithCluster(const char* value) { SetCluster(value); return *this;}
89
90
94 inline const Aws::String& GetTask() const{ return m_task; }
95
99 inline bool TaskHasBeenSet() const { return m_taskHasBeenSet; }
100
104 inline void SetTask(const Aws::String& value) { m_taskHasBeenSet = true; m_task = value; }
105
109 inline void SetTask(Aws::String&& value) { m_taskHasBeenSet = true; m_task = std::move(value); }
110
114 inline void SetTask(const char* value) { m_taskHasBeenSet = true; m_task.assign(value); }
115
119 inline SubmitTaskStateChangeRequest& WithTask(const Aws::String& value) { SetTask(value); return *this;}
120
124 inline SubmitTaskStateChangeRequest& WithTask(Aws::String&& value) { SetTask(std::move(value)); return *this;}
125
129 inline SubmitTaskStateChangeRequest& WithTask(const char* value) { SetTask(value); return *this;}
130
131
135 inline const Aws::String& GetStatus() const{ return m_status; }
136
140 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
141
145 inline void SetStatus(const Aws::String& value) { m_statusHasBeenSet = true; m_status = value; }
146
150 inline void SetStatus(Aws::String&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
151
155 inline void SetStatus(const char* value) { m_statusHasBeenSet = true; m_status.assign(value); }
156
160 inline SubmitTaskStateChangeRequest& WithStatus(const Aws::String& value) { SetStatus(value); return *this;}
161
165 inline SubmitTaskStateChangeRequest& WithStatus(Aws::String&& value) { SetStatus(std::move(value)); return *this;}
166
170 inline SubmitTaskStateChangeRequest& WithStatus(const char* value) { SetStatus(value); return *this;}
171
172
176 inline const Aws::String& GetReason() const{ return m_reason; }
177
181 inline bool ReasonHasBeenSet() const { return m_reasonHasBeenSet; }
182
186 inline void SetReason(const Aws::String& value) { m_reasonHasBeenSet = true; m_reason = value; }
187
191 inline void SetReason(Aws::String&& value) { m_reasonHasBeenSet = true; m_reason = std::move(value); }
192
196 inline void SetReason(const char* value) { m_reasonHasBeenSet = true; m_reason.assign(value); }
197
201 inline SubmitTaskStateChangeRequest& WithReason(const Aws::String& value) { SetReason(value); return *this;}
202
206 inline SubmitTaskStateChangeRequest& WithReason(Aws::String&& value) { SetReason(std::move(value)); return *this;}
207
211 inline SubmitTaskStateChangeRequest& WithReason(const char* value) { SetReason(value); return *this;}
212
213
217 inline const Aws::Vector<ContainerStateChange>& GetContainers() const{ return m_containers; }
218
222 inline bool ContainersHasBeenSet() const { return m_containersHasBeenSet; }
223
227 inline void SetContainers(const Aws::Vector<ContainerStateChange>& value) { m_containersHasBeenSet = true; m_containers = value; }
228
232 inline void SetContainers(Aws::Vector<ContainerStateChange>&& value) { m_containersHasBeenSet = true; m_containers = std::move(value); }
233
238
243
247 inline SubmitTaskStateChangeRequest& AddContainers(const ContainerStateChange& value) { m_containersHasBeenSet = true; m_containers.push_back(value); return *this; }
248
252 inline SubmitTaskStateChangeRequest& AddContainers(ContainerStateChange&& value) { m_containersHasBeenSet = true; m_containers.push_back(std::move(value)); return *this; }
253
254
258 inline const Aws::Vector<AttachmentStateChange>& GetAttachments() const{ return m_attachments; }
259
263 inline bool AttachmentsHasBeenSet() const { return m_attachmentsHasBeenSet; }
264
268 inline void SetAttachments(const Aws::Vector<AttachmentStateChange>& value) { m_attachmentsHasBeenSet = true; m_attachments = value; }
269
273 inline void SetAttachments(Aws::Vector<AttachmentStateChange>&& value) { m_attachmentsHasBeenSet = true; m_attachments = std::move(value); }
274
279
284
288 inline SubmitTaskStateChangeRequest& AddAttachments(const AttachmentStateChange& value) { m_attachmentsHasBeenSet = true; m_attachments.push_back(value); return *this; }
289
293 inline SubmitTaskStateChangeRequest& AddAttachments(AttachmentStateChange&& value) { m_attachmentsHasBeenSet = true; m_attachments.push_back(std::move(value)); return *this; }
294
295
299 inline const Aws::Vector<ManagedAgentStateChange>& GetManagedAgents() const{ return m_managedAgents; }
300
304 inline bool ManagedAgentsHasBeenSet() const { return m_managedAgentsHasBeenSet; }
305
309 inline void SetManagedAgents(const Aws::Vector<ManagedAgentStateChange>& value) { m_managedAgentsHasBeenSet = true; m_managedAgents = value; }
310
314 inline void SetManagedAgents(Aws::Vector<ManagedAgentStateChange>&& value) { m_managedAgentsHasBeenSet = true; m_managedAgents = std::move(value); }
315
320
325
329 inline SubmitTaskStateChangeRequest& AddManagedAgents(const ManagedAgentStateChange& value) { m_managedAgentsHasBeenSet = true; m_managedAgents.push_back(value); return *this; }
330
334 inline SubmitTaskStateChangeRequest& AddManagedAgents(ManagedAgentStateChange&& value) { m_managedAgentsHasBeenSet = true; m_managedAgents.push_back(std::move(value)); return *this; }
335
336
340 inline const Aws::Utils::DateTime& GetPullStartedAt() const{ return m_pullStartedAt; }
341
345 inline bool PullStartedAtHasBeenSet() const { return m_pullStartedAtHasBeenSet; }
346
350 inline void SetPullStartedAt(const Aws::Utils::DateTime& value) { m_pullStartedAtHasBeenSet = true; m_pullStartedAt = value; }
351
355 inline void SetPullStartedAt(Aws::Utils::DateTime&& value) { m_pullStartedAtHasBeenSet = true; m_pullStartedAt = std::move(value); }
356
361
365 inline SubmitTaskStateChangeRequest& WithPullStartedAt(Aws::Utils::DateTime&& value) { SetPullStartedAt(std::move(value)); return *this;}
366
367
371 inline const Aws::Utils::DateTime& GetPullStoppedAt() const{ return m_pullStoppedAt; }
372
376 inline bool PullStoppedAtHasBeenSet() const { return m_pullStoppedAtHasBeenSet; }
377
381 inline void SetPullStoppedAt(const Aws::Utils::DateTime& value) { m_pullStoppedAtHasBeenSet = true; m_pullStoppedAt = value; }
382
386 inline void SetPullStoppedAt(Aws::Utils::DateTime&& value) { m_pullStoppedAtHasBeenSet = true; m_pullStoppedAt = std::move(value); }
387
392
396 inline SubmitTaskStateChangeRequest& WithPullStoppedAt(Aws::Utils::DateTime&& value) { SetPullStoppedAt(std::move(value)); return *this;}
397
398
402 inline const Aws::Utils::DateTime& GetExecutionStoppedAt() const{ return m_executionStoppedAt; }
403
407 inline bool ExecutionStoppedAtHasBeenSet() const { return m_executionStoppedAtHasBeenSet; }
408
412 inline void SetExecutionStoppedAt(const Aws::Utils::DateTime& value) { m_executionStoppedAtHasBeenSet = true; m_executionStoppedAt = value; }
413
417 inline void SetExecutionStoppedAt(Aws::Utils::DateTime&& value) { m_executionStoppedAtHasBeenSet = true; m_executionStoppedAt = std::move(value); }
418
423
428
429 private:
430
431 Aws::String m_cluster;
432 bool m_clusterHasBeenSet = false;
433
434 Aws::String m_task;
435 bool m_taskHasBeenSet = false;
436
437 Aws::String m_status;
438 bool m_statusHasBeenSet = false;
439
440 Aws::String m_reason;
441 bool m_reasonHasBeenSet = false;
442
444 bool m_containersHasBeenSet = false;
445
447 bool m_attachmentsHasBeenSet = false;
448
450 bool m_managedAgentsHasBeenSet = false;
451
452 Aws::Utils::DateTime m_pullStartedAt;
453 bool m_pullStartedAtHasBeenSet = false;
454
455 Aws::Utils::DateTime m_pullStoppedAt;
456 bool m_pullStoppedAtHasBeenSet = false;
457
458 Aws::Utils::DateTime m_executionStoppedAt;
459 bool m_executionStoppedAtHasBeenSet = false;
460 };
461
462} // namespace Model
463} // namespace ECS
464} // namespace Aws
#define AWS_ECS_API
Definition: ECS_EXPORTS.h:28
const Aws::Vector< ManagedAgentStateChange > & GetManagedAgents() const
void SetPullStoppedAt(const Aws::Utils::DateTime &value)
SubmitTaskStateChangeRequest & WithContainers(Aws::Vector< ContainerStateChange > &&value)
void SetManagedAgents(Aws::Vector< ManagedAgentStateChange > &&value)
void SetManagedAgents(const Aws::Vector< ManagedAgentStateChange > &value)
SubmitTaskStateChangeRequest & WithTask(const char *value)
SubmitTaskStateChangeRequest & WithCluster(const char *value)
SubmitTaskStateChangeRequest & WithAttachments(Aws::Vector< AttachmentStateChange > &&value)
SubmitTaskStateChangeRequest & WithCluster(Aws::String &&value)
SubmitTaskStateChangeRequest & WithContainers(const Aws::Vector< ContainerStateChange > &value)
SubmitTaskStateChangeRequest & WithReason(const Aws::String &value)
SubmitTaskStateChangeRequest & WithCluster(const Aws::String &value)
AWS_ECS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
const Aws::Utils::DateTime & GetExecutionStoppedAt() const
SubmitTaskStateChangeRequest & WithStatus(const char *value)
virtual const char * GetServiceRequestName() const override
SubmitTaskStateChangeRequest & AddContainers(const ContainerStateChange &value)
SubmitTaskStateChangeRequest & WithPullStartedAt(Aws::Utils::DateTime &&value)
void SetContainers(const Aws::Vector< ContainerStateChange > &value)
void SetExecutionStoppedAt(Aws::Utils::DateTime &&value)
AWS_ECS_API Aws::String SerializePayload() const override
SubmitTaskStateChangeRequest & WithTask(Aws::String &&value)
SubmitTaskStateChangeRequest & WithExecutionStoppedAt(Aws::Utils::DateTime &&value)
SubmitTaskStateChangeRequest & WithManagedAgents(Aws::Vector< ManagedAgentStateChange > &&value)
SubmitTaskStateChangeRequest & WithPullStoppedAt(const Aws::Utils::DateTime &value)
void SetContainers(Aws::Vector< ContainerStateChange > &&value)
SubmitTaskStateChangeRequest & WithReason(const char *value)
SubmitTaskStateChangeRequest & WithTask(const Aws::String &value)
SubmitTaskStateChangeRequest & WithManagedAgents(const Aws::Vector< ManagedAgentStateChange > &value)
void SetAttachments(Aws::Vector< AttachmentStateChange > &&value)
SubmitTaskStateChangeRequest & WithAttachments(const Aws::Vector< AttachmentStateChange > &value)
void SetPullStartedAt(const Aws::Utils::DateTime &value)
SubmitTaskStateChangeRequest & WithStatus(const Aws::String &value)
void SetAttachments(const Aws::Vector< AttachmentStateChange > &value)
SubmitTaskStateChangeRequest & AddManagedAgents(ManagedAgentStateChange &&value)
const Aws::Utils::DateTime & GetPullStartedAt() const
SubmitTaskStateChangeRequest & WithPullStoppedAt(Aws::Utils::DateTime &&value)
SubmitTaskStateChangeRequest & WithStatus(Aws::String &&value)
SubmitTaskStateChangeRequest & AddContainers(ContainerStateChange &&value)
SubmitTaskStateChangeRequest & AddManagedAgents(const ManagedAgentStateChange &value)
void SetExecutionStoppedAt(const Aws::Utils::DateTime &value)
SubmitTaskStateChangeRequest & WithExecutionStoppedAt(const Aws::Utils::DateTime &value)
const Aws::Vector< AttachmentStateChange > & GetAttachments() const
SubmitTaskStateChangeRequest & WithReason(Aws::String &&value)
SubmitTaskStateChangeRequest & AddAttachments(const AttachmentStateChange &value)
const Aws::Vector< ContainerStateChange > & GetContainers() const
const Aws::Utils::DateTime & GetPullStoppedAt() const
SubmitTaskStateChangeRequest & WithPullStartedAt(const Aws::Utils::DateTime &value)
SubmitTaskStateChangeRequest & AddAttachments(AttachmentStateChange &&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