AWS SDK for C++

AWS SDK for C++ Version 1.11.788

Loading...
Searching...
No Matches
GetCapacityTaskResult.h
1
6#pragma once
7#include <aws/core/http/HttpResponse.h>
8#include <aws/core/utils/DateTime.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/outposts/Outposts_EXPORTS.h>
12#include <aws/outposts/model/CapacityTaskFailure.h>
13#include <aws/outposts/model/CapacityTaskStatus.h>
14#include <aws/outposts/model/InstanceTypeCapacity.h>
15#include <aws/outposts/model/InstancesToExclude.h>
16#include <aws/outposts/model/TaskActionOnBlockingInstances.h>
17
18#include <utility>
19
20namespace Aws {
21template <typename RESULT_TYPE>
22class AmazonWebServiceResult;
23
24namespace Utils {
25namespace Json {
26class JsonValue;
27} // namespace Json
28} // namespace Utils
29namespace Outposts {
30namespace Model {
32 public:
33 AWS_OUTPOSTS_API GetCapacityTaskResult() = default;
36
38
41 inline const Aws::String& GetCapacityTaskId() const { return m_capacityTaskId; }
42 template <typename CapacityTaskIdT = Aws::String>
43 void SetCapacityTaskId(CapacityTaskIdT&& value) {
44 m_capacityTaskIdHasBeenSet = true;
45 m_capacityTaskId = std::forward<CapacityTaskIdT>(value);
46 }
47 template <typename CapacityTaskIdT = Aws::String>
48 GetCapacityTaskResult& WithCapacityTaskId(CapacityTaskIdT&& value) {
49 SetCapacityTaskId(std::forward<CapacityTaskIdT>(value));
50 return *this;
51 }
53
55
58 inline const Aws::String& GetOutpostId() const { return m_outpostId; }
59 template <typename OutpostIdT = Aws::String>
60 void SetOutpostId(OutpostIdT&& value) {
61 m_outpostIdHasBeenSet = true;
62 m_outpostId = std::forward<OutpostIdT>(value);
63 }
64 template <typename OutpostIdT = Aws::String>
65 GetCapacityTaskResult& WithOutpostId(OutpostIdT&& value) {
66 SetOutpostId(std::forward<OutpostIdT>(value));
67 return *this;
68 }
70
72
76 inline const Aws::String& GetOrderId() const { return m_orderId; }
77 template <typename OrderIdT = Aws::String>
78 void SetOrderId(OrderIdT&& value) {
79 m_orderIdHasBeenSet = true;
80 m_orderId = std::forward<OrderIdT>(value);
81 }
82 template <typename OrderIdT = Aws::String>
84 SetOrderId(std::forward<OrderIdT>(value));
85 return *this;
86 }
88
90
94 inline const Aws::String& GetAssetId() const { return m_assetId; }
95 template <typename AssetIdT = Aws::String>
96 void SetAssetId(AssetIdT&& value) {
97 m_assetIdHasBeenSet = true;
98 m_assetId = std::forward<AssetIdT>(value);
99 }
100 template <typename AssetIdT = Aws::String>
102 SetAssetId(std::forward<AssetIdT>(value));
103 return *this;
104 }
106
108
111 inline const Aws::Vector<InstanceTypeCapacity>& GetRequestedInstancePools() const { return m_requestedInstancePools; }
112 template <typename RequestedInstancePoolsT = Aws::Vector<InstanceTypeCapacity>>
113 void SetRequestedInstancePools(RequestedInstancePoolsT&& value) {
114 m_requestedInstancePoolsHasBeenSet = true;
115 m_requestedInstancePools = std::forward<RequestedInstancePoolsT>(value);
116 }
117 template <typename RequestedInstancePoolsT = Aws::Vector<InstanceTypeCapacity>>
118 GetCapacityTaskResult& WithRequestedInstancePools(RequestedInstancePoolsT&& value) {
119 SetRequestedInstancePools(std::forward<RequestedInstancePoolsT>(value));
120 return *this;
121 }
122 template <typename RequestedInstancePoolsT = InstanceTypeCapacity>
123 GetCapacityTaskResult& AddRequestedInstancePools(RequestedInstancePoolsT&& value) {
124 m_requestedInstancePoolsHasBeenSet = true;
125 m_requestedInstancePools.emplace_back(std::forward<RequestedInstancePoolsT>(value));
126 return *this;
127 }
129
131
135 inline const InstancesToExclude& GetInstancesToExclude() const { return m_instancesToExclude; }
136 template <typename InstancesToExcludeT = InstancesToExclude>
137 void SetInstancesToExclude(InstancesToExcludeT&& value) {
138 m_instancesToExcludeHasBeenSet = true;
139 m_instancesToExclude = std::forward<InstancesToExcludeT>(value);
140 }
141 template <typename InstancesToExcludeT = InstancesToExclude>
142 GetCapacityTaskResult& WithInstancesToExclude(InstancesToExcludeT&& value) {
143 SetInstancesToExclude(std::forward<InstancesToExcludeT>(value));
144 return *this;
145 }
147
149
153 inline bool GetDryRun() const { return m_dryRun; }
154 inline void SetDryRun(bool value) {
155 m_dryRunHasBeenSet = true;
156 m_dryRun = value;
157 }
158 inline GetCapacityTaskResult& WithDryRun(bool value) {
159 SetDryRun(value);
160 return *this;
161 }
163
165
180 inline CapacityTaskStatus GetCapacityTaskStatus() const { return m_capacityTaskStatus; }
182 m_capacityTaskStatusHasBeenSet = true;
183 m_capacityTaskStatus = value;
184 }
187 return *this;
188 }
190
192
195 inline const CapacityTaskFailure& GetFailed() const { return m_failed; }
196 template <typename FailedT = CapacityTaskFailure>
197 void SetFailed(FailedT&& value) {
198 m_failedHasBeenSet = true;
199 m_failed = std::forward<FailedT>(value);
200 }
201 template <typename FailedT = CapacityTaskFailure>
203 SetFailed(std::forward<FailedT>(value));
204 return *this;
205 }
207
209
212 inline const Aws::Utils::DateTime& GetCreationDate() const { return m_creationDate; }
213 template <typename CreationDateT = Aws::Utils::DateTime>
214 void SetCreationDate(CreationDateT&& value) {
215 m_creationDateHasBeenSet = true;
216 m_creationDate = std::forward<CreationDateT>(value);
217 }
218 template <typename CreationDateT = Aws::Utils::DateTime>
219 GetCapacityTaskResult& WithCreationDate(CreationDateT&& value) {
220 SetCreationDate(std::forward<CreationDateT>(value));
221 return *this;
222 }
224
226
229 inline const Aws::Utils::DateTime& GetCompletionDate() const { return m_completionDate; }
230 template <typename CompletionDateT = Aws::Utils::DateTime>
231 void SetCompletionDate(CompletionDateT&& value) {
232 m_completionDateHasBeenSet = true;
233 m_completionDate = std::forward<CompletionDateT>(value);
234 }
235 template <typename CompletionDateT = Aws::Utils::DateTime>
236 GetCapacityTaskResult& WithCompletionDate(CompletionDateT&& value) {
237 SetCompletionDate(std::forward<CompletionDateT>(value));
238 return *this;
239 }
241
243
246 inline const Aws::Utils::DateTime& GetLastModifiedDate() const { return m_lastModifiedDate; }
247 template <typename LastModifiedDateT = Aws::Utils::DateTime>
248 void SetLastModifiedDate(LastModifiedDateT&& value) {
249 m_lastModifiedDateHasBeenSet = true;
250 m_lastModifiedDate = std::forward<LastModifiedDateT>(value);
251 }
252 template <typename LastModifiedDateT = Aws::Utils::DateTime>
253 GetCapacityTaskResult& WithLastModifiedDate(LastModifiedDateT&& value) {
254 SetLastModifiedDate(std::forward<LastModifiedDateT>(value));
255 return *this;
256 }
258
260
268 inline TaskActionOnBlockingInstances GetTaskActionOnBlockingInstances() const { return m_taskActionOnBlockingInstances; }
270 m_taskActionOnBlockingInstancesHasBeenSet = true;
271 m_taskActionOnBlockingInstances = value;
272 }
275 return *this;
276 }
278
280
281 inline const Aws::String& GetRequestId() const { return m_requestId; }
282 template <typename RequestIdT = Aws::String>
283 void SetRequestId(RequestIdT&& value) {
284 m_requestIdHasBeenSet = true;
285 m_requestId = std::forward<RequestIdT>(value);
286 }
287 template <typename RequestIdT = Aws::String>
289 SetRequestId(std::forward<RequestIdT>(value));
290 return *this;
291 }
293 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
294
295 private:
296 Aws::String m_capacityTaskId;
297
298 Aws::String m_outpostId;
299
300 Aws::String m_orderId;
301
302 Aws::String m_assetId;
303
304 Aws::Vector<InstanceTypeCapacity> m_requestedInstancePools;
305
306 InstancesToExclude m_instancesToExclude;
307
308 bool m_dryRun{false};
309
311
312 CapacityTaskFailure m_failed;
313
314 Aws::Utils::DateTime m_creationDate{};
315
316 Aws::Utils::DateTime m_completionDate{};
317
318 Aws::Utils::DateTime m_lastModifiedDate{};
319
321
322 Aws::String m_requestId;
323 Aws::Http::HttpResponseCode m_HttpResponseCode;
324 bool m_capacityTaskIdHasBeenSet = false;
325 bool m_outpostIdHasBeenSet = false;
326 bool m_orderIdHasBeenSet = false;
327 bool m_assetIdHasBeenSet = false;
328 bool m_requestedInstancePoolsHasBeenSet = false;
329 bool m_instancesToExcludeHasBeenSet = false;
330 bool m_dryRunHasBeenSet = false;
331 bool m_capacityTaskStatusHasBeenSet = false;
332 bool m_failedHasBeenSet = false;
333 bool m_creationDateHasBeenSet = false;
334 bool m_completionDateHasBeenSet = false;
335 bool m_lastModifiedDateHasBeenSet = false;
336 bool m_taskActionOnBlockingInstancesHasBeenSet = false;
337 bool m_requestIdHasBeenSet = false;
338};
339
340} // namespace Model
341} // namespace Outposts
342} // namespace Aws
GetCapacityTaskResult & WithAssetId(AssetIdT &&value)
GetCapacityTaskResult & WithDryRun(bool value)
const CapacityTaskFailure & GetFailed() const
void SetRequestedInstancePools(RequestedInstancePoolsT &&value)
const Aws::Utils::DateTime & GetCompletionDate() const
GetCapacityTaskResult & WithOrderId(OrderIdT &&value)
GetCapacityTaskResult & AddRequestedInstancePools(RequestedInstancePoolsT &&value)
void SetInstancesToExclude(InstancesToExcludeT &&value)
GetCapacityTaskResult & WithCapacityTaskStatus(CapacityTaskStatus value)
GetCapacityTaskResult & WithCapacityTaskId(CapacityTaskIdT &&value)
TaskActionOnBlockingInstances GetTaskActionOnBlockingInstances() const
GetCapacityTaskResult & WithRequestId(RequestIdT &&value)
AWS_OUTPOSTS_API GetCapacityTaskResult()=default
void SetCapacityTaskStatus(CapacityTaskStatus value)
void SetLastModifiedDate(LastModifiedDateT &&value)
GetCapacityTaskResult & WithLastModifiedDate(LastModifiedDateT &&value)
GetCapacityTaskResult & WithInstancesToExclude(InstancesToExcludeT &&value)
GetCapacityTaskResult & WithCompletionDate(CompletionDateT &&value)
void SetTaskActionOnBlockingInstances(TaskActionOnBlockingInstances value)
AWS_OUTPOSTS_API GetCapacityTaskResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
const InstancesToExclude & GetInstancesToExclude() const
GetCapacityTaskResult & WithCreationDate(CreationDateT &&value)
GetCapacityTaskResult & WithFailed(FailedT &&value)
const Aws::Utils::DateTime & GetLastModifiedDate() const
const Aws::Vector< InstanceTypeCapacity > & GetRequestedInstancePools() const
const Aws::Utils::DateTime & GetCreationDate() const
AWS_OUTPOSTS_API GetCapacityTaskResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Aws::Http::HttpResponseCode GetHttpResponseCode() const
GetCapacityTaskResult & WithTaskActionOnBlockingInstances(TaskActionOnBlockingInstances value)
GetCapacityTaskResult & WithRequestedInstancePools(RequestedInstancePoolsT &&value)
GetCapacityTaskResult & WithOutpostId(OutpostIdT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue