AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
CreateCapacityReservationFleetResponse.h
1
6#pragma once
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/ec2/EC2_EXPORTS.h>
11#include <aws/ec2/model/CapacityReservationFleetState.h>
12#include <aws/ec2/model/FleetCapacityReservation.h>
13#include <aws/ec2/model/FleetCapacityReservationTenancy.h>
14#include <aws/ec2/model/FleetInstanceMatchCriteria.h>
15#include <aws/ec2/model/ResponseMetadata.h>
16#include <aws/ec2/model/Tag.h>
17
18#include <utility>
19
20namespace Aws {
21template <typename RESULT_TYPE>
22class AmazonWebServiceResult;
23
24namespace Utils {
25namespace Xml {
26class XmlDocument;
27} // namespace Xml
28} // namespace Utils
29namespace EC2 {
30namespace Model {
32 public:
36
38
41 inline const Aws::String& GetCapacityReservationFleetId() const { return m_capacityReservationFleetId; }
42 template <typename CapacityReservationFleetIdT = Aws::String>
43 void SetCapacityReservationFleetId(CapacityReservationFleetIdT&& value) {
44 m_capacityReservationFleetIdHasBeenSet = true;
45 m_capacityReservationFleetId = std::forward<CapacityReservationFleetIdT>(value);
46 }
47 template <typename CapacityReservationFleetIdT = Aws::String>
49 SetCapacityReservationFleetId(std::forward<CapacityReservationFleetIdT>(value));
50 return *this;
51 }
53
55
58 inline CapacityReservationFleetState GetState() const { return m_state; }
60 m_stateHasBeenSet = true;
61 m_state = value;
62 }
64 SetState(value);
65 return *this;
66 }
68
70
74 inline int GetTotalTargetCapacity() const { return m_totalTargetCapacity; }
75 inline void SetTotalTargetCapacity(int value) {
76 m_totalTargetCapacityHasBeenSet = true;
77 m_totalTargetCapacity = value;
78 }
81 return *this;
82 }
84
86
89 inline double GetTotalFulfilledCapacity() const { return m_totalFulfilledCapacity; }
90 inline void SetTotalFulfilledCapacity(double value) {
91 m_totalFulfilledCapacityHasBeenSet = true;
92 m_totalFulfilledCapacity = value;
93 }
96 return *this;
97 }
99
101
104 inline FleetInstanceMatchCriteria GetInstanceMatchCriteria() const { return m_instanceMatchCriteria; }
106 m_instanceMatchCriteriaHasBeenSet = true;
107 m_instanceMatchCriteria = value;
108 }
111 return *this;
112 }
114
116
119 inline const Aws::String& GetAllocationStrategy() const { return m_allocationStrategy; }
120 template <typename AllocationStrategyT = Aws::String>
121 void SetAllocationStrategy(AllocationStrategyT&& value) {
122 m_allocationStrategyHasBeenSet = true;
123 m_allocationStrategy = std::forward<AllocationStrategyT>(value);
124 }
125 template <typename AllocationStrategyT = Aws::String>
127 SetAllocationStrategy(std::forward<AllocationStrategyT>(value));
128 return *this;
129 }
131
133
136 inline const Aws::Utils::DateTime& GetCreateTime() const { return m_createTime; }
137 template <typename CreateTimeT = Aws::Utils::DateTime>
138 void SetCreateTime(CreateTimeT&& value) {
139 m_createTimeHasBeenSet = true;
140 m_createTime = std::forward<CreateTimeT>(value);
141 }
142 template <typename CreateTimeT = Aws::Utils::DateTime>
144 SetCreateTime(std::forward<CreateTimeT>(value));
145 return *this;
146 }
148
150
153 inline const Aws::Utils::DateTime& GetEndDate() const { return m_endDate; }
154 template <typename EndDateT = Aws::Utils::DateTime>
155 void SetEndDate(EndDateT&& value) {
156 m_endDateHasBeenSet = true;
157 m_endDate = std::forward<EndDateT>(value);
158 }
159 template <typename EndDateT = Aws::Utils::DateTime>
161 SetEndDate(std::forward<EndDateT>(value));
162 return *this;
163 }
165
167
170 inline FleetCapacityReservationTenancy GetTenancy() const { return m_tenancy; }
172 m_tenancyHasBeenSet = true;
173 m_tenancy = value;
174 }
176 SetTenancy(value);
177 return *this;
178 }
180
182
186 inline const Aws::Vector<FleetCapacityReservation>& GetFleetCapacityReservations() const { return m_fleetCapacityReservations; }
187 template <typename FleetCapacityReservationsT = Aws::Vector<FleetCapacityReservation>>
188 void SetFleetCapacityReservations(FleetCapacityReservationsT&& value) {
189 m_fleetCapacityReservationsHasBeenSet = true;
190 m_fleetCapacityReservations = std::forward<FleetCapacityReservationsT>(value);
191 }
192 template <typename FleetCapacityReservationsT = Aws::Vector<FleetCapacityReservation>>
194 SetFleetCapacityReservations(std::forward<FleetCapacityReservationsT>(value));
195 return *this;
196 }
197 template <typename FleetCapacityReservationsT = FleetCapacityReservation>
199 m_fleetCapacityReservationsHasBeenSet = true;
200 m_fleetCapacityReservations.emplace_back(std::forward<FleetCapacityReservationsT>(value));
201 return *this;
202 }
204
206
209 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
210 template <typename TagsT = Aws::Vector<Tag>>
211 void SetTags(TagsT&& value) {
212 m_tagsHasBeenSet = true;
213 m_tags = std::forward<TagsT>(value);
214 }
215 template <typename TagsT = Aws::Vector<Tag>>
217 SetTags(std::forward<TagsT>(value));
218 return *this;
219 }
220 template <typename TagsT = Tag>
222 m_tagsHasBeenSet = true;
223 m_tags.emplace_back(std::forward<TagsT>(value));
224 return *this;
225 }
227
229
230 inline const ResponseMetadata& GetResponseMetadata() const { return m_responseMetadata; }
231 template <typename ResponseMetadataT = ResponseMetadata>
232 void SetResponseMetadata(ResponseMetadataT&& value) {
233 m_responseMetadataHasBeenSet = true;
234 m_responseMetadata = std::forward<ResponseMetadataT>(value);
235 }
236 template <typename ResponseMetadataT = ResponseMetadata>
238 SetResponseMetadata(std::forward<ResponseMetadataT>(value));
239 return *this;
240 }
242 private:
243 Aws::String m_capacityReservationFleetId;
244
246
247 int m_totalTargetCapacity{0};
248
249 double m_totalFulfilledCapacity{0.0};
250
252
253 Aws::String m_allocationStrategy;
254
255 Aws::Utils::DateTime m_createTime{};
256
257 Aws::Utils::DateTime m_endDate{};
258
260
261 Aws::Vector<FleetCapacityReservation> m_fleetCapacityReservations;
262
263 Aws::Vector<Tag> m_tags;
264
265 ResponseMetadata m_responseMetadata;
266 bool m_capacityReservationFleetIdHasBeenSet = false;
267 bool m_stateHasBeenSet = false;
268 bool m_totalTargetCapacityHasBeenSet = false;
269 bool m_totalFulfilledCapacityHasBeenSet = false;
270 bool m_instanceMatchCriteriaHasBeenSet = false;
271 bool m_allocationStrategyHasBeenSet = false;
272 bool m_createTimeHasBeenSet = false;
273 bool m_endDateHasBeenSet = false;
274 bool m_tenancyHasBeenSet = false;
275 bool m_fleetCapacityReservationsHasBeenSet = false;
276 bool m_tagsHasBeenSet = false;
277 bool m_responseMetadataHasBeenSet = false;
278};
279
280} // namespace Model
281} // namespace EC2
282} // namespace Aws
const Aws::Vector< FleetCapacityReservation > & GetFleetCapacityReservations() const
CreateCapacityReservationFleetResponse & WithAllocationStrategy(AllocationStrategyT &&value)
AWS_EC2_API CreateCapacityReservationFleetResponse(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
CreateCapacityReservationFleetResponse & WithCapacityReservationFleetId(CapacityReservationFleetIdT &&value)
CreateCapacityReservationFleetResponse & WithFleetCapacityReservations(FleetCapacityReservationsT &&value)
CreateCapacityReservationFleetResponse & AddFleetCapacityReservations(FleetCapacityReservationsT &&value)
CreateCapacityReservationFleetResponse & WithInstanceMatchCriteria(FleetInstanceMatchCriteria value)
CreateCapacityReservationFleetResponse & WithCreateTime(CreateTimeT &&value)
CreateCapacityReservationFleetResponse & WithTotalFulfilledCapacity(double value)
CreateCapacityReservationFleetResponse & WithTenancy(FleetCapacityReservationTenancy value)
CreateCapacityReservationFleetResponse & AddTags(TagsT &&value)
CreateCapacityReservationFleetResponse & WithState(CapacityReservationFleetState value)
CreateCapacityReservationFleetResponse & WithEndDate(EndDateT &&value)
CreateCapacityReservationFleetResponse & WithResponseMetadata(ResponseMetadataT &&value)
CreateCapacityReservationFleetResponse & WithTotalTargetCapacity(int value)
CreateCapacityReservationFleetResponse & WithTags(TagsT &&value)
AWS_EC2_API CreateCapacityReservationFleetResponse & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Xml::XmlDocument XmlDocument