AWS SDK for C++

AWS SDK for C++ Version 1.11.606

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:
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
41
43
47 inline const Aws::String& GetCluster() const { return m_cluster; }
48 inline bool ClusterHasBeenSet() const { return m_clusterHasBeenSet; }
49 template<typename ClusterT = Aws::String>
50 void SetCluster(ClusterT&& value) { m_clusterHasBeenSet = true; m_cluster = std::forward<ClusterT>(value); }
51 template<typename ClusterT = Aws::String>
52 SubmitTaskStateChangeRequest& WithCluster(ClusterT&& value) { SetCluster(std::forward<ClusterT>(value)); return *this;}
54
56
59 inline const Aws::String& GetTask() const { return m_task; }
60 inline bool TaskHasBeenSet() const { return m_taskHasBeenSet; }
61 template<typename TaskT = Aws::String>
62 void SetTask(TaskT&& value) { m_taskHasBeenSet = true; m_task = std::forward<TaskT>(value); }
63 template<typename TaskT = Aws::String>
64 SubmitTaskStateChangeRequest& WithTask(TaskT&& value) { SetTask(std::forward<TaskT>(value)); return *this;}
66
68
71 inline const Aws::String& GetStatus() const { return m_status; }
72 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
73 template<typename StatusT = Aws::String>
74 void SetStatus(StatusT&& value) { m_statusHasBeenSet = true; m_status = std::forward<StatusT>(value); }
75 template<typename StatusT = Aws::String>
76 SubmitTaskStateChangeRequest& WithStatus(StatusT&& value) { SetStatus(std::forward<StatusT>(value)); return *this;}
78
80
83 inline const Aws::String& GetReason() const { return m_reason; }
84 inline bool ReasonHasBeenSet() const { return m_reasonHasBeenSet; }
85 template<typename ReasonT = Aws::String>
86 void SetReason(ReasonT&& value) { m_reasonHasBeenSet = true; m_reason = std::forward<ReasonT>(value); }
87 template<typename ReasonT = Aws::String>
88 SubmitTaskStateChangeRequest& WithReason(ReasonT&& value) { SetReason(std::forward<ReasonT>(value)); return *this;}
90
92
95 inline const Aws::Vector<ContainerStateChange>& GetContainers() const { return m_containers; }
96 inline bool ContainersHasBeenSet() const { return m_containersHasBeenSet; }
97 template<typename ContainersT = Aws::Vector<ContainerStateChange>>
98 void SetContainers(ContainersT&& value) { m_containersHasBeenSet = true; m_containers = std::forward<ContainersT>(value); }
99 template<typename ContainersT = Aws::Vector<ContainerStateChange>>
100 SubmitTaskStateChangeRequest& WithContainers(ContainersT&& value) { SetContainers(std::forward<ContainersT>(value)); return *this;}
101 template<typename ContainersT = ContainerStateChange>
102 SubmitTaskStateChangeRequest& AddContainers(ContainersT&& value) { m_containersHasBeenSet = true; m_containers.emplace_back(std::forward<ContainersT>(value)); return *this; }
104
106
109 inline const Aws::Vector<AttachmentStateChange>& GetAttachments() const { return m_attachments; }
110 inline bool AttachmentsHasBeenSet() const { return m_attachmentsHasBeenSet; }
111 template<typename AttachmentsT = Aws::Vector<AttachmentStateChange>>
112 void SetAttachments(AttachmentsT&& value) { m_attachmentsHasBeenSet = true; m_attachments = std::forward<AttachmentsT>(value); }
113 template<typename AttachmentsT = Aws::Vector<AttachmentStateChange>>
114 SubmitTaskStateChangeRequest& WithAttachments(AttachmentsT&& value) { SetAttachments(std::forward<AttachmentsT>(value)); return *this;}
115 template<typename AttachmentsT = AttachmentStateChange>
116 SubmitTaskStateChangeRequest& AddAttachments(AttachmentsT&& value) { m_attachmentsHasBeenSet = true; m_attachments.emplace_back(std::forward<AttachmentsT>(value)); return *this; }
118
120
123 inline const Aws::Vector<ManagedAgentStateChange>& GetManagedAgents() const { return m_managedAgents; }
124 inline bool ManagedAgentsHasBeenSet() const { return m_managedAgentsHasBeenSet; }
125 template<typename ManagedAgentsT = Aws::Vector<ManagedAgentStateChange>>
126 void SetManagedAgents(ManagedAgentsT&& value) { m_managedAgentsHasBeenSet = true; m_managedAgents = std::forward<ManagedAgentsT>(value); }
127 template<typename ManagedAgentsT = Aws::Vector<ManagedAgentStateChange>>
128 SubmitTaskStateChangeRequest& WithManagedAgents(ManagedAgentsT&& value) { SetManagedAgents(std::forward<ManagedAgentsT>(value)); return *this;}
129 template<typename ManagedAgentsT = ManagedAgentStateChange>
130 SubmitTaskStateChangeRequest& AddManagedAgents(ManagedAgentsT&& value) { m_managedAgentsHasBeenSet = true; m_managedAgents.emplace_back(std::forward<ManagedAgentsT>(value)); return *this; }
132
134
137 inline const Aws::Utils::DateTime& GetPullStartedAt() const { return m_pullStartedAt; }
138 inline bool PullStartedAtHasBeenSet() const { return m_pullStartedAtHasBeenSet; }
139 template<typename PullStartedAtT = Aws::Utils::DateTime>
140 void SetPullStartedAt(PullStartedAtT&& value) { m_pullStartedAtHasBeenSet = true; m_pullStartedAt = std::forward<PullStartedAtT>(value); }
141 template<typename PullStartedAtT = Aws::Utils::DateTime>
142 SubmitTaskStateChangeRequest& WithPullStartedAt(PullStartedAtT&& value) { SetPullStartedAt(std::forward<PullStartedAtT>(value)); return *this;}
144
146
149 inline const Aws::Utils::DateTime& GetPullStoppedAt() const { return m_pullStoppedAt; }
150 inline bool PullStoppedAtHasBeenSet() const { return m_pullStoppedAtHasBeenSet; }
151 template<typename PullStoppedAtT = Aws::Utils::DateTime>
152 void SetPullStoppedAt(PullStoppedAtT&& value) { m_pullStoppedAtHasBeenSet = true; m_pullStoppedAt = std::forward<PullStoppedAtT>(value); }
153 template<typename PullStoppedAtT = Aws::Utils::DateTime>
154 SubmitTaskStateChangeRequest& WithPullStoppedAt(PullStoppedAtT&& value) { SetPullStoppedAt(std::forward<PullStoppedAtT>(value)); return *this;}
156
158
161 inline const Aws::Utils::DateTime& GetExecutionStoppedAt() const { return m_executionStoppedAt; }
162 inline bool ExecutionStoppedAtHasBeenSet() const { return m_executionStoppedAtHasBeenSet; }
163 template<typename ExecutionStoppedAtT = Aws::Utils::DateTime>
164 void SetExecutionStoppedAt(ExecutionStoppedAtT&& value) { m_executionStoppedAtHasBeenSet = true; m_executionStoppedAt = std::forward<ExecutionStoppedAtT>(value); }
165 template<typename ExecutionStoppedAtT = Aws::Utils::DateTime>
166 SubmitTaskStateChangeRequest& WithExecutionStoppedAt(ExecutionStoppedAtT&& value) { SetExecutionStoppedAt(std::forward<ExecutionStoppedAtT>(value)); return *this;}
168 private:
169
170 Aws::String m_cluster;
171 bool m_clusterHasBeenSet = false;
172
173 Aws::String m_task;
174 bool m_taskHasBeenSet = false;
175
176 Aws::String m_status;
177 bool m_statusHasBeenSet = false;
178
179 Aws::String m_reason;
180 bool m_reasonHasBeenSet = false;
181
183 bool m_containersHasBeenSet = false;
184
186 bool m_attachmentsHasBeenSet = false;
187
189 bool m_managedAgentsHasBeenSet = false;
190
191 Aws::Utils::DateTime m_pullStartedAt{};
192 bool m_pullStartedAtHasBeenSet = false;
193
194 Aws::Utils::DateTime m_pullStoppedAt{};
195 bool m_pullStoppedAtHasBeenSet = false;
196
197 Aws::Utils::DateTime m_executionStoppedAt{};
198 bool m_executionStoppedAtHasBeenSet = false;
199 };
200
201} // namespace Model
202} // namespace ECS
203} // 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