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;
169 m_capacityTaskStatusHasBeenSet =
true;
170 m_capacityTaskStatus = value;
183 template <
typename FailedT = CapacityTaskFailure>
185 m_failedHasBeenSet =
true;
186 m_failed = std::forward<FailedT>(value);
188 template <
typename FailedT = CapacityTaskFailure>
200 template <
typename CreationDateT = Aws::Utils::DateTime>
202 m_creationDateHasBeenSet =
true;
203 m_creationDate = std::forward<CreationDateT>(value);
205 template <
typename CreationDateT = Aws::Utils::DateTime>
217 template <
typename CompletionDateT = Aws::Utils::DateTime>
219 m_completionDateHasBeenSet =
true;
220 m_completionDate = std::forward<CompletionDateT>(value);
222 template <
typename CompletionDateT = Aws::Utils::DateTime>
234 template <
typename LastModifiedDateT = Aws::Utils::DateTime>
236 m_lastModifiedDateHasBeenSet =
true;
237 m_lastModifiedDate = std::forward<LastModifiedDateT>(value);
239 template <
typename LastModifiedDateT = Aws::Utils::DateTime>
256 m_taskActionOnBlockingInstancesHasBeenSet =
true;
257 m_taskActionOnBlockingInstances = value;
268 template <
typename RequestIdT = Aws::String>
270 m_requestIdHasBeenSet =
true;
271 m_requestId = std::forward<RequestIdT>(value);
273 template <
typename RequestIdT = Aws::String>
292 bool m_dryRun{
false};
296 CapacityTaskFailure m_failed;
307 bool m_capacityTaskIdHasBeenSet =
false;
308 bool m_outpostIdHasBeenSet =
false;
309 bool m_orderIdHasBeenSet =
false;
310 bool m_assetIdHasBeenSet =
false;
311 bool m_requestedInstancePoolsHasBeenSet =
false;
312 bool m_instancesToExcludeHasBeenSet =
false;
313 bool m_dryRunHasBeenSet =
false;
314 bool m_capacityTaskStatusHasBeenSet =
false;
315 bool m_failedHasBeenSet =
false;
316 bool m_creationDateHasBeenSet =
false;
317 bool m_completionDateHasBeenSet =
false;
318 bool m_lastModifiedDateHasBeenSet =
false;
319 bool m_taskActionOnBlockingInstancesHasBeenSet =
false;
320 bool m_requestIdHasBeenSet =
false;
void SetDryRun(bool value)
const Aws::String & GetOrderId() const
StartCapacityTaskResult & WithFailed(FailedT &&value)
const Aws::Utils::DateTime & GetCreationDate() const
StartCapacityTaskResult & WithOutpostId(OutpostIdT &&value)
void SetInstancesToExclude(InstancesToExcludeT &&value)
StartCapacityTaskResult & WithCapacityTaskId(CapacityTaskIdT &&value)
StartCapacityTaskResult & WithCompletionDate(CompletionDateT &&value)
StartCapacityTaskResult & WithInstancesToExclude(InstancesToExcludeT &&value)
AWS_OUTPOSTS_API StartCapacityTaskResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
const Aws::String & GetRequestId() const
const Aws::Utils::DateTime & GetLastModifiedDate() const
StartCapacityTaskResult & AddRequestedInstancePools(RequestedInstancePoolsT &&value)
const Aws::String & GetOutpostId() const
void SetOutpostId(OutpostIdT &&value)
void SetAssetId(AssetIdT &&value)
void SetFailed(FailedT &&value)
void SetTaskActionOnBlockingInstances(TaskActionOnBlockingInstances value)
StartCapacityTaskResult & WithOrderId(OrderIdT &&value)
void SetRequestId(RequestIdT &&value)
StartCapacityTaskResult & WithCapacityTaskStatus(CapacityTaskStatus value)
void SetLastModifiedDate(LastModifiedDateT &&value)
const Aws::String & GetAssetId() const
void SetCapacityTaskId(CapacityTaskIdT &&value)
const InstancesToExclude & GetInstancesToExclude() const
TaskActionOnBlockingInstances GetTaskActionOnBlockingInstances() const
const CapacityTaskFailure & GetFailed() const
StartCapacityTaskResult & WithTaskActionOnBlockingInstances(TaskActionOnBlockingInstances value)
const Aws::Utils::DateTime & GetCompletionDate() const
CapacityTaskStatus GetCapacityTaskStatus() const
StartCapacityTaskResult & WithDryRun(bool value)
AWS_OUTPOSTS_API StartCapacityTaskResult()=default
void SetCapacityTaskStatus(CapacityTaskStatus value)
const Aws::String & GetCapacityTaskId() const
void SetCreationDate(CreationDateT &&value)
const Aws::Vector< InstanceTypeCapacity > & GetRequestedInstancePools() const
StartCapacityTaskResult & WithLastModifiedDate(LastModifiedDateT &&value)
StartCapacityTaskResult & WithRequestedInstancePools(RequestedInstancePoolsT &&value)
void SetRequestedInstancePools(RequestedInstancePoolsT &&value)
StartCapacityTaskResult & WithCreationDate(CreationDateT &&value)
void SetOrderId(OrderIdT &&value)
StartCapacityTaskResult & WithAssetId(AssetIdT &&value)
StartCapacityTaskResult & WithRequestId(RequestIdT &&value)
AWS_OUTPOSTS_API StartCapacityTaskResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
void SetCompletionDate(CompletionDateT &&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