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>
20template <
typename RESULT_TYPE>
21class AmazonWebServiceResult;
41 template <
typename CapacityTaskIdT = Aws::String>
43 m_capacityTaskIdHasBeenSet =
true;
44 m_capacityTaskId = std::forward<CapacityTaskIdT>(value);
46 template <
typename CapacityTaskIdT = Aws::String>
58 template <
typename OutpostIdT = Aws::String>
60 m_outpostIdHasBeenSet =
true;
61 m_outpostId = std::forward<OutpostIdT>(value);
63 template <
typename OutpostIdT = Aws::String>
76 template <
typename OrderIdT = Aws::String>
78 m_orderIdHasBeenSet =
true;
79 m_orderId = std::forward<OrderIdT>(value);
81 template <
typename OrderIdT = Aws::String>
94 template <
typename AssetIdT = Aws::String>
96 m_assetIdHasBeenSet =
true;
97 m_assetId = std::forward<AssetIdT>(value);
99 template <
typename AssetIdT = Aws::String>
111 template <
typename RequestedInstancePoolsT = Aws::Vector<InstanceTypeCapacity>>
113 m_requestedInstancePoolsHasBeenSet =
true;
114 m_requestedInstancePools = std::forward<RequestedInstancePoolsT>(value);
116 template <
typename RequestedInstancePoolsT = Aws::Vector<InstanceTypeCapacity>>
121 template <
typename RequestedInstancePoolsT = InstanceTypeCapacity>
123 m_requestedInstancePoolsHasBeenSet =
true;
124 m_requestedInstancePools.emplace_back(std::forward<RequestedInstancePoolsT>(value));
135 template <
typename InstancesToExcludeT = InstancesToExclude>
137 m_instancesToExcludeHasBeenSet =
true;
138 m_instancesToExclude = std::forward<InstancesToExcludeT>(value);
140 template <
typename InstancesToExcludeT = InstancesToExclude>
154 m_dryRunHasBeenSet =
true;
181 m_capacityTaskStatusHasBeenSet =
true;
182 m_capacityTaskStatus = value;
195 template <
typename FailedT = CapacityTaskFailure>
197 m_failedHasBeenSet =
true;
198 m_failed = std::forward<FailedT>(value);
200 template <
typename FailedT = CapacityTaskFailure>
212 template <
typename CreationDateT = Aws::Utils::DateTime>
214 m_creationDateHasBeenSet =
true;
215 m_creationDate = std::forward<CreationDateT>(value);
217 template <
typename CreationDateT = Aws::Utils::DateTime>
229 template <
typename CompletionDateT = Aws::Utils::DateTime>
231 m_completionDateHasBeenSet =
true;
232 m_completionDate = std::forward<CompletionDateT>(value);
234 template <
typename CompletionDateT = Aws::Utils::DateTime>
246 template <
typename LastModifiedDateT = Aws::Utils::DateTime>
248 m_lastModifiedDateHasBeenSet =
true;
249 m_lastModifiedDate = std::forward<LastModifiedDateT>(value);
251 template <
typename LastModifiedDateT = Aws::Utils::DateTime>
269 m_taskActionOnBlockingInstancesHasBeenSet =
true;
270 m_taskActionOnBlockingInstances = value;
281 template <
typename RequestIdT = Aws::String>
283 m_requestIdHasBeenSet =
true;
284 m_requestId = std::forward<RequestIdT>(value);
286 template <
typename RequestIdT = Aws::String>
305 bool m_dryRun{
false};
309 CapacityTaskFailure m_failed;
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;
GetCapacityTaskResult & WithAssetId(AssetIdT &&value)
GetCapacityTaskResult & WithDryRun(bool value)
const CapacityTaskFailure & GetFailed() const
void SetFailed(FailedT &&value)
const Aws::String & GetOrderId() const
void SetDryRun(bool value)
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)
void SetCompletionDate(CompletionDateT &&value)
GetCapacityTaskResult & WithCapacityTaskId(CapacityTaskIdT &&value)
const Aws::String & GetCapacityTaskId() const
const Aws::String & GetAssetId() const
void SetAssetId(AssetIdT &&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)
const Aws::String & GetOutpostId() const
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
CapacityTaskStatus GetCapacityTaskStatus() const
const Aws::Vector< InstanceTypeCapacity > & GetRequestedInstancePools() const
const Aws::Utils::DateTime & GetCreationDate() const
void SetCapacityTaskId(CapacityTaskIdT &&value)
AWS_OUTPOSTS_API GetCapacityTaskResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
void SetOrderId(OrderIdT &&value)
void SetOutpostId(OutpostIdT &&value)
GetCapacityTaskResult & WithTaskActionOnBlockingInstances(TaskActionOnBlockingInstances value)
GetCapacityTaskResult & WithRequestedInstancePools(RequestedInstancePoolsT &&value)
void SetRequestId(RequestIdT &&value)
const Aws::String & GetRequestId() const
GetCapacityTaskResult & WithOutpostId(OutpostIdT &&value)
void SetCreationDate(CreationDateT &&value)
TaskActionOnBlockingInstances
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue