AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
GetCapacityTaskResult.h
1
6#pragma once
7#include <aws/outposts/Outposts_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/outposts/model/InstancesToExclude.h>
11#include <aws/outposts/model/CapacityTaskStatus.h>
12#include <aws/outposts/model/CapacityTaskFailure.h>
13#include <aws/core/utils/DateTime.h>
14#include <aws/outposts/model/TaskActionOnBlockingInstances.h>
15#include <aws/outposts/model/InstanceTypeCapacity.h>
16#include <utility>
17
18namespace Aws
19{
20template<typename RESULT_TYPE>
21class AmazonWebServiceResult;
22
23namespace Utils
24{
25namespace Json
26{
27 class JsonValue;
28} // namespace Json
29} // namespace Utils
30namespace Outposts
31{
32namespace Model
33{
35 {
36 public:
37 AWS_OUTPOSTS_API GetCapacityTaskResult() = default;
40
41
43
46 inline const Aws::String& GetCapacityTaskId() const { return m_capacityTaskId; }
47 template<typename CapacityTaskIdT = Aws::String>
48 void SetCapacityTaskId(CapacityTaskIdT&& value) { m_capacityTaskIdHasBeenSet = true; m_capacityTaskId = std::forward<CapacityTaskIdT>(value); }
49 template<typename CapacityTaskIdT = Aws::String>
50 GetCapacityTaskResult& WithCapacityTaskId(CapacityTaskIdT&& value) { SetCapacityTaskId(std::forward<CapacityTaskIdT>(value)); return *this;}
52
54
57 inline const Aws::String& GetOutpostId() const { return m_outpostId; }
58 template<typename OutpostIdT = Aws::String>
59 void SetOutpostId(OutpostIdT&& value) { m_outpostIdHasBeenSet = true; m_outpostId = std::forward<OutpostIdT>(value); }
60 template<typename OutpostIdT = Aws::String>
61 GetCapacityTaskResult& WithOutpostId(OutpostIdT&& value) { SetOutpostId(std::forward<OutpostIdT>(value)); return *this;}
63
65
69 inline const Aws::String& GetOrderId() const { return m_orderId; }
70 template<typename OrderIdT = Aws::String>
71 void SetOrderId(OrderIdT&& value) { m_orderIdHasBeenSet = true; m_orderId = std::forward<OrderIdT>(value); }
72 template<typename OrderIdT = Aws::String>
73 GetCapacityTaskResult& WithOrderId(OrderIdT&& value) { SetOrderId(std::forward<OrderIdT>(value)); return *this;}
75
77
81 inline const Aws::String& GetAssetId() const { return m_assetId; }
82 template<typename AssetIdT = Aws::String>
83 void SetAssetId(AssetIdT&& value) { m_assetIdHasBeenSet = true; m_assetId = std::forward<AssetIdT>(value); }
84 template<typename AssetIdT = Aws::String>
85 GetCapacityTaskResult& WithAssetId(AssetIdT&& value) { SetAssetId(std::forward<AssetIdT>(value)); return *this;}
87
89
92 inline const Aws::Vector<InstanceTypeCapacity>& GetRequestedInstancePools() const { return m_requestedInstancePools; }
93 template<typename RequestedInstancePoolsT = Aws::Vector<InstanceTypeCapacity>>
94 void SetRequestedInstancePools(RequestedInstancePoolsT&& value) { m_requestedInstancePoolsHasBeenSet = true; m_requestedInstancePools = std::forward<RequestedInstancePoolsT>(value); }
95 template<typename RequestedInstancePoolsT = Aws::Vector<InstanceTypeCapacity>>
96 GetCapacityTaskResult& WithRequestedInstancePools(RequestedInstancePoolsT&& value) { SetRequestedInstancePools(std::forward<RequestedInstancePoolsT>(value)); return *this;}
97 template<typename RequestedInstancePoolsT = InstanceTypeCapacity>
98 GetCapacityTaskResult& AddRequestedInstancePools(RequestedInstancePoolsT&& value) { m_requestedInstancePoolsHasBeenSet = true; m_requestedInstancePools.emplace_back(std::forward<RequestedInstancePoolsT>(value)); return *this; }
100
102
106 inline const InstancesToExclude& GetInstancesToExclude() const { return m_instancesToExclude; }
107 template<typename InstancesToExcludeT = InstancesToExclude>
108 void SetInstancesToExclude(InstancesToExcludeT&& value) { m_instancesToExcludeHasBeenSet = true; m_instancesToExclude = std::forward<InstancesToExcludeT>(value); }
109 template<typename InstancesToExcludeT = InstancesToExclude>
110 GetCapacityTaskResult& WithInstancesToExclude(InstancesToExcludeT&& value) { SetInstancesToExclude(std::forward<InstancesToExcludeT>(value)); return *this;}
112
114
118 inline bool GetDryRun() const { return m_dryRun; }
119 inline void SetDryRun(bool value) { m_dryRunHasBeenSet = true; m_dryRun = value; }
120 inline GetCapacityTaskResult& WithDryRun(bool value) { SetDryRun(value); return *this;}
122
124
139 inline CapacityTaskStatus GetCapacityTaskStatus() const { return m_capacityTaskStatus; }
140 inline void SetCapacityTaskStatus(CapacityTaskStatus value) { m_capacityTaskStatusHasBeenSet = true; m_capacityTaskStatus = value; }
143
145
148 inline const CapacityTaskFailure& GetFailed() const { return m_failed; }
149 template<typename FailedT = CapacityTaskFailure>
150 void SetFailed(FailedT&& value) { m_failedHasBeenSet = true; m_failed = std::forward<FailedT>(value); }
151 template<typename FailedT = CapacityTaskFailure>
152 GetCapacityTaskResult& WithFailed(FailedT&& value) { SetFailed(std::forward<FailedT>(value)); return *this;}
154
156
159 inline const Aws::Utils::DateTime& GetCreationDate() const { return m_creationDate; }
160 template<typename CreationDateT = Aws::Utils::DateTime>
161 void SetCreationDate(CreationDateT&& value) { m_creationDateHasBeenSet = true; m_creationDate = std::forward<CreationDateT>(value); }
162 template<typename CreationDateT = Aws::Utils::DateTime>
163 GetCapacityTaskResult& WithCreationDate(CreationDateT&& value) { SetCreationDate(std::forward<CreationDateT>(value)); return *this;}
165
167
170 inline const Aws::Utils::DateTime& GetCompletionDate() const { return m_completionDate; }
171 template<typename CompletionDateT = Aws::Utils::DateTime>
172 void SetCompletionDate(CompletionDateT&& value) { m_completionDateHasBeenSet = true; m_completionDate = std::forward<CompletionDateT>(value); }
173 template<typename CompletionDateT = Aws::Utils::DateTime>
174 GetCapacityTaskResult& WithCompletionDate(CompletionDateT&& value) { SetCompletionDate(std::forward<CompletionDateT>(value)); return *this;}
176
178
181 inline const Aws::Utils::DateTime& GetLastModifiedDate() const { return m_lastModifiedDate; }
182 template<typename LastModifiedDateT = Aws::Utils::DateTime>
183 void SetLastModifiedDate(LastModifiedDateT&& value) { m_lastModifiedDateHasBeenSet = true; m_lastModifiedDate = std::forward<LastModifiedDateT>(value); }
184 template<typename LastModifiedDateT = Aws::Utils::DateTime>
185 GetCapacityTaskResult& WithLastModifiedDate(LastModifiedDateT&& value) { SetLastModifiedDate(std::forward<LastModifiedDateT>(value)); return *this;}
187
189
197 inline TaskActionOnBlockingInstances GetTaskActionOnBlockingInstances() const { return m_taskActionOnBlockingInstances; }
198 inline void SetTaskActionOnBlockingInstances(TaskActionOnBlockingInstances value) { m_taskActionOnBlockingInstancesHasBeenSet = true; m_taskActionOnBlockingInstances = value; }
201
203
204 inline const Aws::String& GetRequestId() const { return m_requestId; }
205 template<typename RequestIdT = Aws::String>
206 void SetRequestId(RequestIdT&& value) { m_requestIdHasBeenSet = true; m_requestId = std::forward<RequestIdT>(value); }
207 template<typename RequestIdT = Aws::String>
208 GetCapacityTaskResult& WithRequestId(RequestIdT&& value) { SetRequestId(std::forward<RequestIdT>(value)); return *this;}
210 private:
211
212 Aws::String m_capacityTaskId;
213 bool m_capacityTaskIdHasBeenSet = false;
214
215 Aws::String m_outpostId;
216 bool m_outpostIdHasBeenSet = false;
217
218 Aws::String m_orderId;
219 bool m_orderIdHasBeenSet = false;
220
221 Aws::String m_assetId;
222 bool m_assetIdHasBeenSet = false;
223
224 Aws::Vector<InstanceTypeCapacity> m_requestedInstancePools;
225 bool m_requestedInstancePoolsHasBeenSet = false;
226
227 InstancesToExclude m_instancesToExclude;
228 bool m_instancesToExcludeHasBeenSet = false;
229
230 bool m_dryRun{false};
231 bool m_dryRunHasBeenSet = false;
232
234 bool m_capacityTaskStatusHasBeenSet = false;
235
236 CapacityTaskFailure m_failed;
237 bool m_failedHasBeenSet = false;
238
239 Aws::Utils::DateTime m_creationDate{};
240 bool m_creationDateHasBeenSet = false;
241
242 Aws::Utils::DateTime m_completionDate{};
243 bool m_completionDateHasBeenSet = false;
244
245 Aws::Utils::DateTime m_lastModifiedDate{};
246 bool m_lastModifiedDateHasBeenSet = false;
247
249 bool m_taskActionOnBlockingInstancesHasBeenSet = false;
250
251 Aws::String m_requestId;
252 bool m_requestIdHasBeenSet = false;
253 };
254
255} // namespace Model
256} // namespace Outposts
257} // 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