AWS SDK for C++

AWS SDK for C++ Version 1.11.710

Loading...
Searching...
No Matches
GetCapacityTaskResult.h
1
6#pragma once
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/outposts/Outposts_EXPORTS.h>
11#include <aws/outposts/model/CapacityTaskFailure.h>
12#include <aws/outposts/model/CapacityTaskStatus.h>
13#include <aws/outposts/model/InstanceTypeCapacity.h>
14#include <aws/outposts/model/InstancesToExclude.h>
15#include <aws/outposts/model/TaskActionOnBlockingInstances.h>
16
17#include <utility>
18
19namespace Aws {
20template <typename RESULT_TYPE>
21class AmazonWebServiceResult;
22
23namespace Utils {
24namespace Json {
25class JsonValue;
26} // namespace Json
27} // namespace Utils
28namespace Outposts {
29namespace Model {
31 public:
32 AWS_OUTPOSTS_API GetCapacityTaskResult() = default;
35
37
40 inline const Aws::String& GetCapacityTaskId() const { return m_capacityTaskId; }
41 template <typename CapacityTaskIdT = Aws::String>
42 void SetCapacityTaskId(CapacityTaskIdT&& value) {
43 m_capacityTaskIdHasBeenSet = true;
44 m_capacityTaskId = std::forward<CapacityTaskIdT>(value);
45 }
46 template <typename CapacityTaskIdT = Aws::String>
47 GetCapacityTaskResult& WithCapacityTaskId(CapacityTaskIdT&& value) {
48 SetCapacityTaskId(std::forward<CapacityTaskIdT>(value));
49 return *this;
50 }
52
54
57 inline const Aws::String& GetOutpostId() const { return m_outpostId; }
58 template <typename OutpostIdT = Aws::String>
59 void SetOutpostId(OutpostIdT&& value) {
60 m_outpostIdHasBeenSet = true;
61 m_outpostId = std::forward<OutpostIdT>(value);
62 }
63 template <typename OutpostIdT = Aws::String>
64 GetCapacityTaskResult& WithOutpostId(OutpostIdT&& value) {
65 SetOutpostId(std::forward<OutpostIdT>(value));
66 return *this;
67 }
69
71
75 inline const Aws::String& GetOrderId() const { return m_orderId; }
76 template <typename OrderIdT = Aws::String>
77 void SetOrderId(OrderIdT&& value) {
78 m_orderIdHasBeenSet = true;
79 m_orderId = std::forward<OrderIdT>(value);
80 }
81 template <typename OrderIdT = Aws::String>
83 SetOrderId(std::forward<OrderIdT>(value));
84 return *this;
85 }
87
89
93 inline const Aws::String& GetAssetId() const { return m_assetId; }
94 template <typename AssetIdT = Aws::String>
95 void SetAssetId(AssetIdT&& value) {
96 m_assetIdHasBeenSet = true;
97 m_assetId = std::forward<AssetIdT>(value);
98 }
99 template <typename AssetIdT = Aws::String>
101 SetAssetId(std::forward<AssetIdT>(value));
102 return *this;
103 }
105
107
110 inline const Aws::Vector<InstanceTypeCapacity>& GetRequestedInstancePools() const { return m_requestedInstancePools; }
111 template <typename RequestedInstancePoolsT = Aws::Vector<InstanceTypeCapacity>>
112 void SetRequestedInstancePools(RequestedInstancePoolsT&& value) {
113 m_requestedInstancePoolsHasBeenSet = true;
114 m_requestedInstancePools = std::forward<RequestedInstancePoolsT>(value);
115 }
116 template <typename RequestedInstancePoolsT = Aws::Vector<InstanceTypeCapacity>>
117 GetCapacityTaskResult& WithRequestedInstancePools(RequestedInstancePoolsT&& value) {
118 SetRequestedInstancePools(std::forward<RequestedInstancePoolsT>(value));
119 return *this;
120 }
121 template <typename RequestedInstancePoolsT = InstanceTypeCapacity>
122 GetCapacityTaskResult& AddRequestedInstancePools(RequestedInstancePoolsT&& value) {
123 m_requestedInstancePoolsHasBeenSet = true;
124 m_requestedInstancePools.emplace_back(std::forward<RequestedInstancePoolsT>(value));
125 return *this;
126 }
128
130
134 inline const InstancesToExclude& GetInstancesToExclude() const { return m_instancesToExclude; }
135 template <typename InstancesToExcludeT = InstancesToExclude>
136 void SetInstancesToExclude(InstancesToExcludeT&& value) {
137 m_instancesToExcludeHasBeenSet = true;
138 m_instancesToExclude = std::forward<InstancesToExcludeT>(value);
139 }
140 template <typename InstancesToExcludeT = InstancesToExclude>
141 GetCapacityTaskResult& WithInstancesToExclude(InstancesToExcludeT&& value) {
142 SetInstancesToExclude(std::forward<InstancesToExcludeT>(value));
143 return *this;
144 }
146
148
152 inline bool GetDryRun() const { return m_dryRun; }
153 inline void SetDryRun(bool value) {
154 m_dryRunHasBeenSet = true;
155 m_dryRun = value;
156 }
157 inline GetCapacityTaskResult& WithDryRun(bool value) {
158 SetDryRun(value);
159 return *this;
160 }
162
164
179 inline CapacityTaskStatus GetCapacityTaskStatus() const { return m_capacityTaskStatus; }
181 m_capacityTaskStatusHasBeenSet = true;
182 m_capacityTaskStatus = value;
183 }
186 return *this;
187 }
189
191
194 inline const CapacityTaskFailure& GetFailed() const { return m_failed; }
195 template <typename FailedT = CapacityTaskFailure>
196 void SetFailed(FailedT&& value) {
197 m_failedHasBeenSet = true;
198 m_failed = std::forward<FailedT>(value);
199 }
200 template <typename FailedT = CapacityTaskFailure>
202 SetFailed(std::forward<FailedT>(value));
203 return *this;
204 }
206
208
211 inline const Aws::Utils::DateTime& GetCreationDate() const { return m_creationDate; }
212 template <typename CreationDateT = Aws::Utils::DateTime>
213 void SetCreationDate(CreationDateT&& value) {
214 m_creationDateHasBeenSet = true;
215 m_creationDate = std::forward<CreationDateT>(value);
216 }
217 template <typename CreationDateT = Aws::Utils::DateTime>
218 GetCapacityTaskResult& WithCreationDate(CreationDateT&& value) {
219 SetCreationDate(std::forward<CreationDateT>(value));
220 return *this;
221 }
223
225
228 inline const Aws::Utils::DateTime& GetCompletionDate() const { return m_completionDate; }
229 template <typename CompletionDateT = Aws::Utils::DateTime>
230 void SetCompletionDate(CompletionDateT&& value) {
231 m_completionDateHasBeenSet = true;
232 m_completionDate = std::forward<CompletionDateT>(value);
233 }
234 template <typename CompletionDateT = Aws::Utils::DateTime>
235 GetCapacityTaskResult& WithCompletionDate(CompletionDateT&& value) {
236 SetCompletionDate(std::forward<CompletionDateT>(value));
237 return *this;
238 }
240
242
245 inline const Aws::Utils::DateTime& GetLastModifiedDate() const { return m_lastModifiedDate; }
246 template <typename LastModifiedDateT = Aws::Utils::DateTime>
247 void SetLastModifiedDate(LastModifiedDateT&& value) {
248 m_lastModifiedDateHasBeenSet = true;
249 m_lastModifiedDate = std::forward<LastModifiedDateT>(value);
250 }
251 template <typename LastModifiedDateT = Aws::Utils::DateTime>
252 GetCapacityTaskResult& WithLastModifiedDate(LastModifiedDateT&& value) {
253 SetLastModifiedDate(std::forward<LastModifiedDateT>(value));
254 return *this;
255 }
257
259
267 inline TaskActionOnBlockingInstances GetTaskActionOnBlockingInstances() const { return m_taskActionOnBlockingInstances; }
269 m_taskActionOnBlockingInstancesHasBeenSet = true;
270 m_taskActionOnBlockingInstances = value;
271 }
274 return *this;
275 }
277
279
280 inline const Aws::String& GetRequestId() const { return m_requestId; }
281 template <typename RequestIdT = Aws::String>
282 void SetRequestId(RequestIdT&& value) {
283 m_requestIdHasBeenSet = true;
284 m_requestId = std::forward<RequestIdT>(value);
285 }
286 template <typename RequestIdT = Aws::String>
288 SetRequestId(std::forward<RequestIdT>(value));
289 return *this;
290 }
292 private:
293 Aws::String m_capacityTaskId;
294
295 Aws::String m_outpostId;
296
297 Aws::String m_orderId;
298
299 Aws::String m_assetId;
300
301 Aws::Vector<InstanceTypeCapacity> m_requestedInstancePools;
302
303 InstancesToExclude m_instancesToExclude;
304
305 bool m_dryRun{false};
306
308
309 CapacityTaskFailure m_failed;
310
311 Aws::Utils::DateTime m_creationDate{};
312
313 Aws::Utils::DateTime m_completionDate{};
314
315 Aws::Utils::DateTime m_lastModifiedDate{};
316
318
319 Aws::String m_requestId;
320 bool m_capacityTaskIdHasBeenSet = false;
321 bool m_outpostIdHasBeenSet = false;
322 bool m_orderIdHasBeenSet = false;
323 bool m_assetIdHasBeenSet = false;
324 bool m_requestedInstancePoolsHasBeenSet = false;
325 bool m_instancesToExcludeHasBeenSet = false;
326 bool m_dryRunHasBeenSet = false;
327 bool m_capacityTaskStatusHasBeenSet = false;
328 bool m_failedHasBeenSet = false;
329 bool m_creationDateHasBeenSet = false;
330 bool m_completionDateHasBeenSet = false;
331 bool m_lastModifiedDateHasBeenSet = false;
332 bool m_taskActionOnBlockingInstancesHasBeenSet = false;
333 bool m_requestIdHasBeenSet = false;
334};
335
336} // namespace Model
337} // namespace Outposts
338} // 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)
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