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>
45 template <
typename ClusterT = Aws::String>
47 m_clusterHasBeenSet =
true;
48 m_cluster = std::forward<ClusterT>(value);
50 template <
typename ClusterT = Aws::String>
63 template <
typename TaskT = Aws::String>
65 m_taskHasBeenSet =
true;
66 m_task = std::forward<TaskT>(value);
68 template <
typename TaskT = Aws::String>
70 SetTask(std::forward<TaskT>(value));
81 template <
typename StatusT = Aws::String>
83 m_statusHasBeenSet =
true;
84 m_status = std::forward<StatusT>(value);
86 template <
typename StatusT = Aws::String>
99 template <
typename ReasonT = Aws::String>
101 m_reasonHasBeenSet =
true;
102 m_reason = std::forward<ReasonT>(value);
104 template <
typename ReasonT = Aws::String>
117 template <
typename ContainersT = Aws::Vector<ContainerStateChange>>
119 m_containersHasBeenSet =
true;
120 m_containers = std::forward<ContainersT>(value);
122 template <
typename ContainersT = Aws::Vector<ContainerStateChange>>
127 template <
typename ContainersT = ContainerStateChange>
129 m_containersHasBeenSet =
true;
130 m_containers.emplace_back(std::forward<ContainersT>(value));
141 template <
typename AttachmentsT = Aws::Vector<AttachmentStateChange>>
143 m_attachmentsHasBeenSet =
true;
144 m_attachments = std::forward<AttachmentsT>(value);
146 template <
typename AttachmentsT = Aws::Vector<AttachmentStateChange>>
151 template <
typename AttachmentsT = AttachmentStateChange>
153 m_attachmentsHasBeenSet =
true;
154 m_attachments.emplace_back(std::forward<AttachmentsT>(value));
165 template <
typename ManagedAgentsT = Aws::Vector<ManagedAgentStateChange>>
167 m_managedAgentsHasBeenSet =
true;
168 m_managedAgents = std::forward<ManagedAgentsT>(value);
170 template <
typename ManagedAgentsT = Aws::Vector<ManagedAgentStateChange>>
175 template <
typename ManagedAgentsT = ManagedAgentStateChange>
177 m_managedAgentsHasBeenSet =
true;
178 m_managedAgents.emplace_back(std::forward<ManagedAgentsT>(value));
189 template <
typename PullStartedAtT = Aws::Utils::DateTime>
191 m_pullStartedAtHasBeenSet =
true;
192 m_pullStartedAt = std::forward<PullStartedAtT>(value);
194 template <
typename PullStartedAtT = Aws::Utils::DateTime>
207 template <
typename PullStoppedAtT = Aws::Utils::DateTime>
209 m_pullStoppedAtHasBeenSet =
true;
210 m_pullStoppedAt = std::forward<PullStoppedAtT>(value);
212 template <
typename PullStoppedAtT = Aws::Utils::DateTime>
225 template <
typename ExecutionStoppedAtT = Aws::Utils::DateTime>
227 m_executionStoppedAtHasBeenSet =
true;
228 m_executionStoppedAt = std::forward<ExecutionStoppedAtT>(value);
230 template <
typename ExecutionStoppedAtT = Aws::Utils::DateTime>
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;
const Aws::Vector< ManagedAgentStateChange > & GetManagedAgents() const
bool StatusHasBeenSet() const
SubmitTaskStateChangeRequest & WithPullStoppedAt(PullStoppedAtT &&value)
bool PullStartedAtHasBeenSet() const
void SetCluster(ClusterT &&value)
SubmitTaskStateChangeRequest & WithStatus(StatusT &&value)
SubmitTaskStateChangeRequest & WithExecutionStoppedAt(ExecutionStoppedAtT &&value)
AWS_ECS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
const Aws::Utils::DateTime & GetExecutionStoppedAt() const
bool PullStoppedAtHasBeenSet() const
bool ManagedAgentsHasBeenSet() const
const Aws::String & GetTask() const
bool ContainersHasBeenSet() const
bool AttachmentsHasBeenSet() const
virtual const char * GetServiceRequestName() const override
AWS_ECS_API SubmitTaskStateChangeRequest()=default
void SetManagedAgents(ManagedAgentsT &&value)
bool ClusterHasBeenSet() const
AWS_ECS_API Aws::String SerializePayload() const override
void SetReason(ReasonT &&value)
bool ReasonHasBeenSet() const
SubmitTaskStateChangeRequest & WithTask(TaskT &&value)
const Aws::String & GetStatus() const
void SetAttachments(AttachmentsT &&value)
SubmitTaskStateChangeRequest & AddAttachments(AttachmentsT &&value)
bool ExecutionStoppedAtHasBeenSet() const
SubmitTaskStateChangeRequest & AddContainers(ContainersT &&value)
void SetContainers(ContainersT &&value)
SubmitTaskStateChangeRequest & WithPullStartedAt(PullStartedAtT &&value)
void SetPullStartedAt(PullStartedAtT &&value)
SubmitTaskStateChangeRequest & AddManagedAgents(ManagedAgentsT &&value)
SubmitTaskStateChangeRequest & WithReason(ReasonT &&value)
const Aws::Utils::DateTime & GetPullStartedAt() const
void SetPullStoppedAt(PullStoppedAtT &&value)
SubmitTaskStateChangeRequest & WithAttachments(AttachmentsT &&value)
void SetTask(TaskT &&value)
const Aws::Vector< AttachmentStateChange > & GetAttachments() const
void SetStatus(StatusT &&value)
bool TaskHasBeenSet() const
const Aws::Vector< ContainerStateChange > & GetContainers() const
const Aws::Utils::DateTime & GetPullStoppedAt() const
const Aws::String & GetReason() const
const Aws::String & GetCluster() const
SubmitTaskStateChangeRequest & WithManagedAgents(ManagedAgentsT &&value)
SubmitTaskStateChangeRequest & WithCluster(ClusterT &&value)
SubmitTaskStateChangeRequest & WithContainers(ContainersT &&value)
void SetExecutionStoppedAt(ExecutionStoppedAtT &&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