AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
StartCapacityTaskResult.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 StartCapacityTaskResult() = 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 StartCapacityTaskResult& 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 StartCapacityTaskResult& 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 StartCapacityTaskResult& 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 StartCapacityTaskResult& 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 StartCapacityTaskResult& WithRequestedInstancePools(RequestedInstancePoolsT&& value) { SetRequestedInstancePools(std::forward<RequestedInstancePoolsT>(value)); return *this;}
97 template<typename RequestedInstancePoolsT = InstanceTypeCapacity>
98 StartCapacityTaskResult& 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 StartCapacityTaskResult& 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 StartCapacityTaskResult& WithDryRun(bool value) { SetDryRun(value); return *this;}
122
124
127 inline CapacityTaskStatus GetCapacityTaskStatus() const { return m_capacityTaskStatus; }
128 inline void SetCapacityTaskStatus(CapacityTaskStatus value) { m_capacityTaskStatusHasBeenSet = true; m_capacityTaskStatus = value; }
131
133
136 inline const CapacityTaskFailure& GetFailed() const { return m_failed; }
137 template<typename FailedT = CapacityTaskFailure>
138 void SetFailed(FailedT&& value) { m_failedHasBeenSet = true; m_failed = std::forward<FailedT>(value); }
139 template<typename FailedT = CapacityTaskFailure>
140 StartCapacityTaskResult& WithFailed(FailedT&& value) { SetFailed(std::forward<FailedT>(value)); return *this;}
142
144
147 inline const Aws::Utils::DateTime& GetCreationDate() const { return m_creationDate; }
148 template<typename CreationDateT = Aws::Utils::DateTime>
149 void SetCreationDate(CreationDateT&& value) { m_creationDateHasBeenSet = true; m_creationDate = std::forward<CreationDateT>(value); }
150 template<typename CreationDateT = Aws::Utils::DateTime>
151 StartCapacityTaskResult& WithCreationDate(CreationDateT&& value) { SetCreationDate(std::forward<CreationDateT>(value)); return *this;}
153
155
158 inline const Aws::Utils::DateTime& GetCompletionDate() const { return m_completionDate; }
159 template<typename CompletionDateT = Aws::Utils::DateTime>
160 void SetCompletionDate(CompletionDateT&& value) { m_completionDateHasBeenSet = true; m_completionDate = std::forward<CompletionDateT>(value); }
161 template<typename CompletionDateT = Aws::Utils::DateTime>
162 StartCapacityTaskResult& WithCompletionDate(CompletionDateT&& value) { SetCompletionDate(std::forward<CompletionDateT>(value)); return *this;}
164
166
169 inline const Aws::Utils::DateTime& GetLastModifiedDate() const { return m_lastModifiedDate; }
170 template<typename LastModifiedDateT = Aws::Utils::DateTime>
171 void SetLastModifiedDate(LastModifiedDateT&& value) { m_lastModifiedDateHasBeenSet = true; m_lastModifiedDate = std::forward<LastModifiedDateT>(value); }
172 template<typename LastModifiedDateT = Aws::Utils::DateTime>
173 StartCapacityTaskResult& WithLastModifiedDate(LastModifiedDateT&& value) { SetLastModifiedDate(std::forward<LastModifiedDateT>(value)); return *this;}
175
177
184 inline TaskActionOnBlockingInstances GetTaskActionOnBlockingInstances() const { return m_taskActionOnBlockingInstances; }
185 inline void SetTaskActionOnBlockingInstances(TaskActionOnBlockingInstances value) { m_taskActionOnBlockingInstancesHasBeenSet = true; m_taskActionOnBlockingInstances = value; }
188
190
191 inline const Aws::String& GetRequestId() const { return m_requestId; }
192 template<typename RequestIdT = Aws::String>
193 void SetRequestId(RequestIdT&& value) { m_requestIdHasBeenSet = true; m_requestId = std::forward<RequestIdT>(value); }
194 template<typename RequestIdT = Aws::String>
195 StartCapacityTaskResult& WithRequestId(RequestIdT&& value) { SetRequestId(std::forward<RequestIdT>(value)); return *this;}
197 private:
198
199 Aws::String m_capacityTaskId;
200 bool m_capacityTaskIdHasBeenSet = false;
201
202 Aws::String m_outpostId;
203 bool m_outpostIdHasBeenSet = false;
204
205 Aws::String m_orderId;
206 bool m_orderIdHasBeenSet = false;
207
208 Aws::String m_assetId;
209 bool m_assetIdHasBeenSet = false;
210
211 Aws::Vector<InstanceTypeCapacity> m_requestedInstancePools;
212 bool m_requestedInstancePoolsHasBeenSet = false;
213
214 InstancesToExclude m_instancesToExclude;
215 bool m_instancesToExcludeHasBeenSet = false;
216
217 bool m_dryRun{false};
218 bool m_dryRunHasBeenSet = false;
219
221 bool m_capacityTaskStatusHasBeenSet = false;
222
223 CapacityTaskFailure m_failed;
224 bool m_failedHasBeenSet = false;
225
226 Aws::Utils::DateTime m_creationDate{};
227 bool m_creationDateHasBeenSet = false;
228
229 Aws::Utils::DateTime m_completionDate{};
230 bool m_completionDateHasBeenSet = false;
231
232 Aws::Utils::DateTime m_lastModifiedDate{};
233 bool m_lastModifiedDateHasBeenSet = false;
234
236 bool m_taskActionOnBlockingInstancesHasBeenSet = false;
237
238 Aws::String m_requestId;
239 bool m_requestIdHasBeenSet = false;
240 };
241
242} // namespace Model
243} // namespace Outposts
244} // namespace Aws
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::Utils::DateTime & GetLastModifiedDate() const
StartCapacityTaskResult & AddRequestedInstancePools(RequestedInstancePoolsT &&value)
void SetTaskActionOnBlockingInstances(TaskActionOnBlockingInstances value)
StartCapacityTaskResult & WithOrderId(OrderIdT &&value)
StartCapacityTaskResult & WithCapacityTaskStatus(CapacityTaskStatus value)
const InstancesToExclude & GetInstancesToExclude() const
TaskActionOnBlockingInstances GetTaskActionOnBlockingInstances() const
StartCapacityTaskResult & WithTaskActionOnBlockingInstances(TaskActionOnBlockingInstances value)
const Aws::Utils::DateTime & GetCompletionDate() const
StartCapacityTaskResult & WithDryRun(bool value)
AWS_OUTPOSTS_API StartCapacityTaskResult()=default
const Aws::Vector< InstanceTypeCapacity > & GetRequestedInstancePools() const
StartCapacityTaskResult & WithLastModifiedDate(LastModifiedDateT &&value)
StartCapacityTaskResult & WithRequestedInstancePools(RequestedInstancePoolsT &&value)
void SetRequestedInstancePools(RequestedInstancePoolsT &&value)
StartCapacityTaskResult & WithCreationDate(CreationDateT &&value)
StartCapacityTaskResult & WithAssetId(AssetIdT &&value)
StartCapacityTaskResult & WithRequestId(RequestIdT &&value)
AWS_OUTPOSTS_API StartCapacityTaskResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue