7#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/ec2/EC2_EXPORTS.h>
10#include <aws/ec2/model/FleetReservationType.h>
11#include <aws/ec2/model/ReservedCapacityAllocationStrategy.h>
12#include <aws/ec2/model/ReservedCapacityFallbackOptions.h>
54 m_allocationStrategyHasBeenSet =
true;
55 m_allocationStrategy = value;
70 template <
typename ReservationTypesT = Aws::Vector<FleetReservationType>>
72 m_reservationTypesHasBeenSet =
true;
73 m_reservationTypes = std::forward<ReservationTypesT>(value);
75 template <
typename ReservationTypesT = Aws::Vector<FleetReservationType>>
81 m_reservationTypesHasBeenSet =
true;
82 m_reservationTypes.push_back(value);
94 template <
typename ReservedCapacityFallbackOptionsT = ReservedCapacityFallbackOptions>
96 m_reservedCapacityFallbackOptionsHasBeenSet =
true;
97 m_reservedCapacityFallbackOptions = std::forward<ReservedCapacityFallbackOptionsT>(value);
99 template <
typename ReservedCapacityFallbackOptionsT = ReservedCapacityFallbackOptions>
110 ReservedCapacityFallbackOptions m_reservedCapacityFallbackOptions;
111 bool m_allocationStrategyHasBeenSet =
false;
112 bool m_reservationTypesHasBeenSet =
false;
113 bool m_reservedCapacityFallbackOptionsHasBeenSet =
false;
AWS_EC2_API ReservedCapacityOptions & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
void SetReservationTypes(ReservationTypesT &&value)
AWS_EC2_API ReservedCapacityOptions(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetReservedCapacityFallbackOptions(ReservedCapacityFallbackOptionsT &&value)
ReservedCapacityOptions & AddReservationTypes(FleetReservationType value)
const Aws::Vector< FleetReservationType > & GetReservationTypes() const
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
bool AllocationStrategyHasBeenSet() const
bool ReservedCapacityFallbackOptionsHasBeenSet() const
ReservedCapacityOptions & WithReservationTypes(ReservationTypesT &&value)
ReservedCapacityAllocationStrategy GetAllocationStrategy() const
void SetAllocationStrategy(ReservedCapacityAllocationStrategy value)
ReservedCapacityOptions & WithAllocationStrategy(ReservedCapacityAllocationStrategy value)
const ReservedCapacityFallbackOptions & GetReservedCapacityFallbackOptions() const
ReservedCapacityOptions & WithReservedCapacityFallbackOptions(ReservedCapacityFallbackOptionsT &&value)
bool ReservationTypesHasBeenSet() const
AWS_EC2_API ReservedCapacityOptions()=default
ReservedCapacityAllocationStrategy
std::vector< T, Aws::Allocator< T > > Vector
std::basic_ostream< char, std::char_traits< char > > OStream