AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
SubmitTaskStateChangeRequest.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 <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/core/utils/DateTime.h>
12#include <aws/ecs/model/ContainerStateChange.h>
13#include <aws/ecs/model/AttachmentStateChange.h>
14#include <aws/ecs/model/ManagedAgentStateChange.h>
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
37 AWS_ECS_API Aws::String SerializePayload() const override;
38
40
41
43
47 inline const Aws::String& GetCluster() const{ return m_cluster; }
48 inline bool ClusterHasBeenSet() const { return m_clusterHasBeenSet; }
49 inline void SetCluster(const Aws::String& value) { m_clusterHasBeenSet = true; m_cluster = value; }
50 inline void SetCluster(Aws::String&& value) { m_clusterHasBeenSet = true; m_cluster = std::move(value); }
51 inline void SetCluster(const char* value) { m_clusterHasBeenSet = true; m_cluster.assign(value); }
52 inline SubmitTaskStateChangeRequest& WithCluster(const Aws::String& value) { SetCluster(value); return *this;}
53 inline SubmitTaskStateChangeRequest& WithCluster(Aws::String&& value) { SetCluster(std::move(value)); return *this;}
54 inline SubmitTaskStateChangeRequest& WithCluster(const char* value) { SetCluster(value); return *this;}
56
58
61 inline const Aws::String& GetTask() const{ return m_task; }
62 inline bool TaskHasBeenSet() const { return m_taskHasBeenSet; }
63 inline void SetTask(const Aws::String& value) { m_taskHasBeenSet = true; m_task = value; }
64 inline void SetTask(Aws::String&& value) { m_taskHasBeenSet = true; m_task = std::move(value); }
65 inline void SetTask(const char* value) { m_taskHasBeenSet = true; m_task.assign(value); }
66 inline SubmitTaskStateChangeRequest& WithTask(const Aws::String& value) { SetTask(value); return *this;}
67 inline SubmitTaskStateChangeRequest& WithTask(Aws::String&& value) { SetTask(std::move(value)); return *this;}
68 inline SubmitTaskStateChangeRequest& WithTask(const char* value) { SetTask(value); return *this;}
70
72
75 inline const Aws::String& GetStatus() const{ return m_status; }
76 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
77 inline void SetStatus(const Aws::String& value) { m_statusHasBeenSet = true; m_status = value; }
78 inline void SetStatus(Aws::String&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
79 inline void SetStatus(const char* value) { m_statusHasBeenSet = true; m_status.assign(value); }
80 inline SubmitTaskStateChangeRequest& WithStatus(const Aws::String& value) { SetStatus(value); return *this;}
81 inline SubmitTaskStateChangeRequest& WithStatus(Aws::String&& value) { SetStatus(std::move(value)); return *this;}
82 inline SubmitTaskStateChangeRequest& WithStatus(const char* value) { SetStatus(value); return *this;}
84
86
89 inline const Aws::String& GetReason() const{ return m_reason; }
90 inline bool ReasonHasBeenSet() const { return m_reasonHasBeenSet; }
91 inline void SetReason(const Aws::String& value) { m_reasonHasBeenSet = true; m_reason = value; }
92 inline void SetReason(Aws::String&& value) { m_reasonHasBeenSet = true; m_reason = std::move(value); }
93 inline void SetReason(const char* value) { m_reasonHasBeenSet = true; m_reason.assign(value); }
94 inline SubmitTaskStateChangeRequest& WithReason(const Aws::String& value) { SetReason(value); return *this;}
95 inline SubmitTaskStateChangeRequest& WithReason(Aws::String&& value) { SetReason(std::move(value)); return *this;}
96 inline SubmitTaskStateChangeRequest& WithReason(const char* value) { SetReason(value); return *this;}
98
100
103 inline const Aws::Vector<ContainerStateChange>& GetContainers() const{ return m_containers; }
104 inline bool ContainersHasBeenSet() const { return m_containersHasBeenSet; }
105 inline void SetContainers(const Aws::Vector<ContainerStateChange>& value) { m_containersHasBeenSet = true; m_containers = value; }
106 inline void SetContainers(Aws::Vector<ContainerStateChange>&& value) { m_containersHasBeenSet = true; m_containers = std::move(value); }
109 inline SubmitTaskStateChangeRequest& AddContainers(const ContainerStateChange& value) { m_containersHasBeenSet = true; m_containers.push_back(value); return *this; }
110 inline SubmitTaskStateChangeRequest& AddContainers(ContainerStateChange&& value) { m_containersHasBeenSet = true; m_containers.push_back(std::move(value)); return *this; }
112
114
117 inline const Aws::Vector<AttachmentStateChange>& GetAttachments() const{ return m_attachments; }
118 inline bool AttachmentsHasBeenSet() const { return m_attachmentsHasBeenSet; }
119 inline void SetAttachments(const Aws::Vector<AttachmentStateChange>& value) { m_attachmentsHasBeenSet = true; m_attachments = value; }
120 inline void SetAttachments(Aws::Vector<AttachmentStateChange>&& value) { m_attachmentsHasBeenSet = true; m_attachments = std::move(value); }
123 inline SubmitTaskStateChangeRequest& AddAttachments(const AttachmentStateChange& value) { m_attachmentsHasBeenSet = true; m_attachments.push_back(value); return *this; }
124 inline SubmitTaskStateChangeRequest& AddAttachments(AttachmentStateChange&& value) { m_attachmentsHasBeenSet = true; m_attachments.push_back(std::move(value)); return *this; }
126
128
131 inline const Aws::Vector<ManagedAgentStateChange>& GetManagedAgents() const{ return m_managedAgents; }
132 inline bool ManagedAgentsHasBeenSet() const { return m_managedAgentsHasBeenSet; }
133 inline void SetManagedAgents(const Aws::Vector<ManagedAgentStateChange>& value) { m_managedAgentsHasBeenSet = true; m_managedAgents = value; }
134 inline void SetManagedAgents(Aws::Vector<ManagedAgentStateChange>&& value) { m_managedAgentsHasBeenSet = true; m_managedAgents = std::move(value); }
137 inline SubmitTaskStateChangeRequest& AddManagedAgents(const ManagedAgentStateChange& value) { m_managedAgentsHasBeenSet = true; m_managedAgents.push_back(value); return *this; }
138 inline SubmitTaskStateChangeRequest& AddManagedAgents(ManagedAgentStateChange&& value) { m_managedAgentsHasBeenSet = true; m_managedAgents.push_back(std::move(value)); return *this; }
140
142
145 inline const Aws::Utils::DateTime& GetPullStartedAt() const{ return m_pullStartedAt; }
146 inline bool PullStartedAtHasBeenSet() const { return m_pullStartedAtHasBeenSet; }
147 inline void SetPullStartedAt(const Aws::Utils::DateTime& value) { m_pullStartedAtHasBeenSet = true; m_pullStartedAt = value; }
148 inline void SetPullStartedAt(Aws::Utils::DateTime&& value) { m_pullStartedAtHasBeenSet = true; m_pullStartedAt = std::move(value); }
150 inline SubmitTaskStateChangeRequest& WithPullStartedAt(Aws::Utils::DateTime&& value) { SetPullStartedAt(std::move(value)); return *this;}
152
154
157 inline const Aws::Utils::DateTime& GetPullStoppedAt() const{ return m_pullStoppedAt; }
158 inline bool PullStoppedAtHasBeenSet() const { return m_pullStoppedAtHasBeenSet; }
159 inline void SetPullStoppedAt(const Aws::Utils::DateTime& value) { m_pullStoppedAtHasBeenSet = true; m_pullStoppedAt = value; }
160 inline void SetPullStoppedAt(Aws::Utils::DateTime&& value) { m_pullStoppedAtHasBeenSet = true; m_pullStoppedAt = std::move(value); }
162 inline SubmitTaskStateChangeRequest& WithPullStoppedAt(Aws::Utils::DateTime&& value) { SetPullStoppedAt(std::move(value)); return *this;}
164
166
169 inline const Aws::Utils::DateTime& GetExecutionStoppedAt() const{ return m_executionStoppedAt; }
170 inline bool ExecutionStoppedAtHasBeenSet() const { return m_executionStoppedAtHasBeenSet; }
171 inline void SetExecutionStoppedAt(const Aws::Utils::DateTime& value) { m_executionStoppedAtHasBeenSet = true; m_executionStoppedAt = value; }
172 inline void SetExecutionStoppedAt(Aws::Utils::DateTime&& value) { m_executionStoppedAtHasBeenSet = true; m_executionStoppedAt = std::move(value); }
176 private:
177
178 Aws::String m_cluster;
179 bool m_clusterHasBeenSet = false;
180
181 Aws::String m_task;
182 bool m_taskHasBeenSet = false;
183
184 Aws::String m_status;
185 bool m_statusHasBeenSet = false;
186
187 Aws::String m_reason;
188 bool m_reasonHasBeenSet = false;
189
191 bool m_containersHasBeenSet = false;
192
194 bool m_attachmentsHasBeenSet = false;
195
197 bool m_managedAgentsHasBeenSet = false;
198
199 Aws::Utils::DateTime m_pullStartedAt;
200 bool m_pullStartedAtHasBeenSet = false;
201
202 Aws::Utils::DateTime m_pullStoppedAt;
203 bool m_pullStoppedAtHasBeenSet = false;
204
205 Aws::Utils::DateTime m_executionStoppedAt;
206 bool m_executionStoppedAtHasBeenSet = false;
207 };
208
209} // namespace Model
210} // namespace ECS
211} // namespace Aws
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)
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)
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
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