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/crt/cbor/Cbor.h>
11#include <aws/memorydb/MemoryDB_EXPORTS.h>
12#include <aws/memorydb/model/RecurringCharge.h>
34 AWS_MEMORYDB_API
ReservedNode(
const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
36 AWS_MEMORYDB_API
void CborEncode(Aws::Crt::Cbor::CborEncoder& encoder)
const;
44 template <
typename ReservationIdT = Aws::String>
46 m_reservationIdHasBeenSet =
true;
47 m_reservationId = std::forward<ReservationIdT>(value);
49 template <
typename ReservationIdT = Aws::String>
62 template <
typename ReservedNodesOfferingIdT = Aws::String>
64 m_reservedNodesOfferingIdHasBeenSet =
true;
65 m_reservedNodesOfferingId = std::forward<ReservedNodesOfferingIdT>(value);
67 template <
typename ReservedNodesOfferingIdT = Aws::String>
80 template <
typename NodeTypeT = Aws::String>
82 m_nodeTypeHasBeenSet =
true;
83 m_nodeType = std::forward<NodeTypeT>(value);
85 template <
typename NodeTypeT = Aws::String>
98 template <
typename StartTimeT = Aws::Utils::DateTime>
100 m_startTimeHasBeenSet =
true;
101 m_startTime = std::forward<StartTimeT>(value);
103 template <
typename StartTimeT = Aws::Utils::DateTime>
117 m_durationHasBeenSet =
true;
133 m_fixedPriceHasBeenSet =
true;
134 m_fixedPrice = value;
149 m_nodeCountHasBeenSet =
true;
164 template <
typename OfferingTypeT = Aws::String>
166 m_offeringTypeHasBeenSet =
true;
167 m_offeringType = std::forward<OfferingTypeT>(value);
169 template <
typename OfferingTypeT = Aws::String>
182 template <
typename StateT = Aws::String>
184 m_stateHasBeenSet =
true;
185 m_state = std::forward<StateT>(value);
187 template <
typename StateT = Aws::String>
189 SetState(std::forward<StateT>(value));
200 template <
typename RecurringChargesT = Aws::Vector<RecurringCharge>>
202 m_recurringChargesHasBeenSet =
true;
203 m_recurringCharges = std::forward<RecurringChargesT>(value);
205 template <
typename RecurringChargesT = Aws::Vector<RecurringCharge>>
210 template <
typename RecurringChargesT = RecurringCharge>
212 m_recurringChargesHasBeenSet =
true;
213 m_recurringCharges.emplace_back(std::forward<RecurringChargesT>(value));
224 template <
typename ARNT = Aws::String>
226 m_aRNHasBeenSet =
true;
227 m_aRN = std::forward<ARNT>(value);
229 template <
typename ARNT = Aws::String>
231 SetARN(std::forward<ARNT>(value));
244 int64_t m_duration{0};
246 double m_fixedPrice{0.0};
248 int64_t m_nodeCount{0};
257 bool m_reservationIdHasBeenSet =
false;
258 bool m_reservedNodesOfferingIdHasBeenSet =
false;
259 bool m_nodeTypeHasBeenSet =
false;
260 bool m_startTimeHasBeenSet =
false;
261 bool m_durationHasBeenSet =
false;
262 bool m_fixedPriceHasBeenSet =
false;
263 bool m_nodeCountHasBeenSet =
false;
264 bool m_offeringTypeHasBeenSet =
false;
265 bool m_stateHasBeenSet =
false;
266 bool m_recurringChargesHasBeenSet =
false;
267 bool m_aRNHasBeenSet =
false;
ReservedNode & AddRecurringCharges(RecurringChargesT &&value)
const Aws::String & GetState() const
AWS_MEMORYDB_API ReservedNode()=default
ReservedNode & WithReservationId(ReservationIdT &&value)
bool NodeTypeHasBeenSet() const
AWS_MEMORYDB_API ReservedNode(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
const Aws::String & GetReservedNodesOfferingId() const
void SetOfferingType(OfferingTypeT &&value)
const Aws::Utils::DateTime & GetStartTime() const
ReservedNode & WithARN(ARNT &&value)
bool StateHasBeenSet() const
const Aws::Vector< RecurringCharge > & GetRecurringCharges() const
ReservedNode & WithNodeCount(int64_t value)
ReservedNode & WithDuration(int64_t value)
void SetNodeType(NodeTypeT &&value)
ReservedNode & WithOfferingType(OfferingTypeT &&value)
bool OfferingTypeHasBeenSet() const
int64_t GetNodeCount() const
const Aws::String & GetReservationId() const
bool FixedPriceHasBeenSet() const
const Aws::String & GetNodeType() const
const Aws::String & GetOfferingType() const
bool ReservedNodesOfferingIdHasBeenSet() const
ReservedNode & WithStartTime(StartTimeT &&value)
void SetReservationId(ReservationIdT &&value)
ReservedNode & WithRecurringCharges(RecurringChargesT &&value)
ReservedNode & WithFixedPrice(double value)
double GetFixedPrice() const
bool ReservationIdHasBeenSet() const
AWS_MEMORYDB_API void CborEncode(Aws::Crt::Cbor::CborEncoder &encoder) const
void SetFixedPrice(double value)
ReservedNode & WithState(StateT &&value)
void SetRecurringCharges(RecurringChargesT &&value)
void SetReservedNodesOfferingId(ReservedNodesOfferingIdT &&value)
AWS_MEMORYDB_API ReservedNode & operator=(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
ReservedNode & WithNodeType(NodeTypeT &&value)
const Aws::String & GetARN() const
bool NodeCountHasBeenSet() const
int64_t GetDuration() const
void SetDuration(int64_t value)
void SetARN(ARNT &&value)
void SetState(StateT &&value)
bool StartTimeHasBeenSet() const
bool DurationHasBeenSet() const
bool ARNHasBeenSet() const
ReservedNode & WithReservedNodesOfferingId(ReservedNodesOfferingIdT &&value)
bool RecurringChargesHasBeenSet() const
void SetNodeCount(int64_t value)
void SetStartTime(StartTimeT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector