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>
21template <
typename RESULT_TYPE>
22class AmazonWebServiceResult;
42 template <
typename CapacityTaskIdT = Aws::String>
44 m_capacityTaskIdHasBeenSet =
true;
45 m_capacityTaskId = std::forward<CapacityTaskIdT>(value);
47 template <
typename CapacityTaskIdT = Aws::String>
59 template <
typename OutpostIdT = Aws::String>
61 m_outpostIdHasBeenSet =
true;
62 m_outpostId = std::forward<OutpostIdT>(value);
64 template <
typename OutpostIdT = Aws::String>
77 template <
typename OrderIdT = Aws::String>
79 m_orderIdHasBeenSet =
true;
80 m_orderId = std::forward<OrderIdT>(value);
82 template <
typename OrderIdT = Aws::String>
95 template <
typename AssetIdT = Aws::String>
97 m_assetIdHasBeenSet =
true;
98 m_assetId = std::forward<AssetIdT>(value);
100 template <
typename AssetIdT = Aws::String>
112 template <
typename RequestedInstancePoolsT = Aws::Vector<InstanceTypeCapacity>>
114 m_requestedInstancePoolsHasBeenSet =
true;
115 m_requestedInstancePools = std::forward<RequestedInstancePoolsT>(value);
117 template <
typename RequestedInstancePoolsT = Aws::Vector<InstanceTypeCapacity>>
122 template <
typename RequestedInstancePoolsT = InstanceTypeCapacity>
124 m_requestedInstancePoolsHasBeenSet =
true;
125 m_requestedInstancePools.emplace_back(std::forward<RequestedInstancePoolsT>(value));
136 template <
typename InstancesToExcludeT = InstancesToExclude>
138 m_instancesToExcludeHasBeenSet =
true;
139 m_instancesToExclude = std::forward<InstancesToExcludeT>(value);
141 template <
typename InstancesToExcludeT = InstancesToExclude>
155 m_dryRunHasBeenSet =
true;
182 m_capacityTaskStatusHasBeenSet =
true;
183 m_capacityTaskStatus = value;
196 template <
typename FailedT = CapacityTaskFailure>
198 m_failedHasBeenSet =
true;
199 m_failed = std::forward<FailedT>(value);
201 template <
typename FailedT = CapacityTaskFailure>
213 template <
typename CreationDateT = Aws::Utils::DateTime>
215 m_creationDateHasBeenSet =
true;
216 m_creationDate = std::forward<CreationDateT>(value);
218 template <
typename CreationDateT = Aws::Utils::DateTime>
230 template <
typename CompletionDateT = Aws::Utils::DateTime>
232 m_completionDateHasBeenSet =
true;
233 m_completionDate = std::forward<CompletionDateT>(value);
235 template <
typename CompletionDateT = Aws::Utils::DateTime>
247 template <
typename LastModifiedDateT = Aws::Utils::DateTime>
249 m_lastModifiedDateHasBeenSet =
true;
250 m_lastModifiedDate = std::forward<LastModifiedDateT>(value);
252 template <
typename LastModifiedDateT = Aws::Utils::DateTime>
270 m_taskActionOnBlockingInstancesHasBeenSet =
true;
271 m_taskActionOnBlockingInstances = value;
282 template <
typename RequestIdT = Aws::String>
284 m_requestIdHasBeenSet =
true;
285 m_requestId = std::forward<RequestIdT>(value);
287 template <
typename RequestIdT = Aws::String>
308 bool m_dryRun{
false};
312 CapacityTaskFailure m_failed;
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;
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)
Aws::Http::HttpResponseCode GetHttpResponseCode() const
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