7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/ec2/EC2_EXPORTS.h>
12#include <aws/ec2/model/CapacityReservationFleetState.h>
13#include <aws/ec2/model/FleetCapacityReservation.h>
14#include <aws/ec2/model/FleetCapacityReservationTenancy.h>
15#include <aws/ec2/model/FleetInstanceMatchCriteria.h>
16#include <aws/ec2/model/Tag.h>
49 template <
typename CapacityReservationFleetIdT = Aws::String>
51 m_capacityReservationFleetIdHasBeenSet =
true;
52 m_capacityReservationFleetId = std::forward<CapacityReservationFleetIdT>(value);
54 template <
typename CapacityReservationFleetIdT = Aws::String>
67 template <
typename CapacityReservationFleetArnT = Aws::String>
69 m_capacityReservationFleetArnHasBeenSet =
true;
70 m_capacityReservationFleetArn = std::forward<CapacityReservationFleetArnT>(value);
72 template <
typename CapacityReservationFleetArnT = Aws::String>
110 m_stateHasBeenSet =
true;
129 m_totalTargetCapacityHasBeenSet =
true;
130 m_totalTargetCapacity = value;
145 m_totalFulfilledCapacityHasBeenSet =
true;
146 m_totalFulfilledCapacity = value;
166 m_tenancyHasBeenSet =
true;
181 template <
typename EndDateT = Aws::Utils::DateTime>
183 m_endDateHasBeenSet =
true;
184 m_endDate = std::forward<EndDateT>(value);
186 template <
typename EndDateT = Aws::Utils::DateTime>
199 template <
typename CreateTimeT = Aws::Utils::DateTime>
201 m_createTimeHasBeenSet =
true;
202 m_createTime = std::forward<CreateTimeT>(value);
204 template <
typename CreateTimeT = Aws::Utils::DateTime>
224 m_instanceMatchCriteriaHasBeenSet =
true;
225 m_instanceMatchCriteria = value;
243 template <
typename AllocationStrategyT = Aws::String>
245 m_allocationStrategyHasBeenSet =
true;
246 m_allocationStrategy = std::forward<AllocationStrategyT>(value);
248 template <
typename AllocationStrategyT = Aws::String>
261 template <
typename InstanceTypeSpecificationsT = Aws::Vector<FleetCapacityReservation>>
263 m_instanceTypeSpecificationsHasBeenSet =
true;
264 m_instanceTypeSpecifications = std::forward<InstanceTypeSpecificationsT>(value);
266 template <
typename InstanceTypeSpecificationsT = Aws::Vector<FleetCapacityReservation>>
271 template <
typename InstanceTypeSpecificationsT = FleetCapacityReservation>
273 m_instanceTypeSpecificationsHasBeenSet =
true;
274 m_instanceTypeSpecifications.emplace_back(std::forward<InstanceTypeSpecificationsT>(value));
285 template <
typename TagsT = Aws::Vector<Tag>>
287 m_tagsHasBeenSet =
true;
288 m_tags = std::forward<TagsT>(value);
290 template <
typename TagsT = Aws::Vector<Tag>>
292 SetTags(std::forward<TagsT>(value));
295 template <
typename TagsT = Tag>
297 m_tagsHasBeenSet =
true;
298 m_tags.emplace_back(std::forward<TagsT>(value));
309 int m_totalTargetCapacity{0};
311 double m_totalFulfilledCapacity{0.0};
326 bool m_capacityReservationFleetIdHasBeenSet =
false;
327 bool m_capacityReservationFleetArnHasBeenSet =
false;
328 bool m_stateHasBeenSet =
false;
329 bool m_totalTargetCapacityHasBeenSet =
false;
330 bool m_totalFulfilledCapacityHasBeenSet =
false;
331 bool m_tenancyHasBeenSet =
false;
332 bool m_endDateHasBeenSet =
false;
333 bool m_createTimeHasBeenSet =
false;
334 bool m_instanceMatchCriteriaHasBeenSet =
false;
335 bool m_allocationStrategyHasBeenSet =
false;
336 bool m_instanceTypeSpecificationsHasBeenSet =
false;
337 bool m_tagsHasBeenSet =
false;
int GetTotalTargetCapacity() const
void SetState(CapacityReservationFleetState value)
bool TotalTargetCapacityHasBeenSet() const
void SetInstanceMatchCriteria(FleetInstanceMatchCriteria value)
CapacityReservationFleet & WithTags(TagsT &&value)
bool CapacityReservationFleetIdHasBeenSet() const
const Aws::Vector< FleetCapacityReservation > & GetInstanceTypeSpecifications() const
CapacityReservationFleet & WithAllocationStrategy(AllocationStrategyT &&value)
const Aws::Vector< Tag > & GetTags() const
const Aws::String & GetAllocationStrategy() const
CapacityReservationFleet & WithTotalFulfilledCapacity(double value)
bool TenancyHasBeenSet() const
bool AllocationStrategyHasBeenSet() const
void SetEndDate(EndDateT &&value)
CapacityReservationFleet & AddTags(TagsT &&value)
CapacityReservationFleet & AddInstanceTypeSpecifications(InstanceTypeSpecificationsT &&value)
const Aws::Utils::DateTime & GetCreateTime() const
void SetTags(TagsT &&value)
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
void SetTotalTargetCapacity(int value)
const Aws::String & GetCapacityReservationFleetId() const
CapacityReservationFleet & WithCapacityReservationFleetArn(CapacityReservationFleetArnT &&value)
bool TotalFulfilledCapacityHasBeenSet() const
CapacityReservationFleet & WithInstanceMatchCriteria(FleetInstanceMatchCriteria value)
double GetTotalFulfilledCapacity() const
bool InstanceTypeSpecificationsHasBeenSet() const
void SetInstanceTypeSpecifications(InstanceTypeSpecificationsT &&value)
AWS_EC2_API CapacityReservationFleet()=default
bool InstanceMatchCriteriaHasBeenSet() const
CapacityReservationFleet & WithState(CapacityReservationFleetState value)
void SetAllocationStrategy(AllocationStrategyT &&value)
void SetTenancy(FleetCapacityReservationTenancy value)
CapacityReservationFleet & WithCreateTime(CreateTimeT &&value)
void SetCapacityReservationFleetArn(CapacityReservationFleetArnT &&value)
bool TagsHasBeenSet() const
CapacityReservationFleet & WithCapacityReservationFleetId(CapacityReservationFleetIdT &&value)
void SetCreateTime(CreateTimeT &&value)
FleetCapacityReservationTenancy GetTenancy() const
AWS_EC2_API CapacityReservationFleet(const Aws::Utils::Xml::XmlNode &xmlNode)
CapacityReservationFleet & WithTotalTargetCapacity(int value)
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
void SetTotalFulfilledCapacity(double value)
bool StateHasBeenSet() const
const Aws::Utils::DateTime & GetEndDate() const
FleetInstanceMatchCriteria GetInstanceMatchCriteria() const
bool CapacityReservationFleetArnHasBeenSet() const
const Aws::String & GetCapacityReservationFleetArn() const
AWS_EC2_API CapacityReservationFleet & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
CapacityReservationFleet & WithInstanceTypeSpecifications(InstanceTypeSpecificationsT &&value)
void SetCapacityReservationFleetId(CapacityReservationFleetIdT &&value)
bool EndDateHasBeenSet() const
CapacityReservationFleet & WithEndDate(EndDateT &&value)
CapacityReservationFleet & WithTenancy(FleetCapacityReservationTenancy value)
bool CreateTimeHasBeenSet() const
CapacityReservationFleetState GetState() const
FleetCapacityReservationTenancy
FleetInstanceMatchCriteria
CapacityReservationFleetState
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
std::basic_ostream< char, std::char_traits< char > > OStream