7#include <aws/redshift-serverless/RedshiftServerless_EXPORTS.h>
8#include <aws/core/utils/DateTime.h>
9#include <aws/redshift-serverless/model/ReservationOffering.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
23namespace RedshiftServerless
51 inline void SetCapacity(
int value) { m_capacityHasBeenSet =
true; m_capacity = value; }
62 template<
typename EndDateT = Aws::Utils::DateTime>
63 void SetEndDate(EndDateT&& value) { m_endDateHasBeenSet =
true; m_endDate = std::forward<EndDateT>(value); }
64 template<
typename EndDateT = Aws::Utils::DateTime>
75 template<
typename OfferingT = ReservationOffering>
76 void SetOffering(OfferingT&& value) { m_offeringHasBeenSet =
true; m_offering = std::forward<OfferingT>(value); }
77 template<
typename OfferingT = ReservationOffering>
88 template<
typename ReservationArnT = Aws::String>
89 void SetReservationArn(ReservationArnT&& value) { m_reservationArnHasBeenSet =
true; m_reservationArn = std::forward<ReservationArnT>(value); }
90 template<
typename ReservationArnT = Aws::String>
100 template<
typename ReservationIdT = Aws::String>
101 void SetReservationId(ReservationIdT&& value) { m_reservationIdHasBeenSet =
true; m_reservationId = std::forward<ReservationIdT>(value); }
102 template<
typename ReservationIdT = Aws::String>
113 template<
typename StartDateT = Aws::Utils::DateTime>
114 void SetStartDate(StartDateT&& value) { m_startDateHasBeenSet =
true; m_startDate = std::forward<StartDateT>(value); }
115 template<
typename StartDateT = Aws::Utils::DateTime>
128 template<
typename StatusT = Aws::String>
129 void SetStatus(StatusT&& value) { m_statusHasBeenSet =
true; m_status = std::forward<StatusT>(value); }
130 template<
typename StatusT = Aws::String>
136 bool m_capacityHasBeenSet =
false;
139 bool m_endDateHasBeenSet =
false;
141 ReservationOffering m_offering;
142 bool m_offeringHasBeenSet =
false;
145 bool m_reservationArnHasBeenSet =
false;
148 bool m_reservationIdHasBeenSet =
false;
151 bool m_startDateHasBeenSet =
false;
154 bool m_statusHasBeenSet =
false;
Reservation & WithCapacity(int value)
Reservation & WithReservationArn(ReservationArnT &&value)
bool ReservationIdHasBeenSet() const
AWS_REDSHIFTSERVERLESS_API Reservation()=default
Reservation & WithStatus(StatusT &&value)
const ReservationOffering & GetOffering() const
void SetReservationId(ReservationIdT &&value)
Reservation & WithEndDate(EndDateT &&value)
AWS_REDSHIFTSERVERLESS_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetStatus() const
bool StatusHasBeenSet() const
const Aws::Utils::DateTime & GetStartDate() const
void SetStatus(StatusT &&value)
void SetOffering(OfferingT &&value)
const Aws::String & GetReservationArn() const
AWS_REDSHIFTSERVERLESS_API Reservation & operator=(Aws::Utils::Json::JsonView jsonValue)
Reservation & WithReservationId(ReservationIdT &&value)
const Aws::String & GetReservationId() const
bool CapacityHasBeenSet() const
Reservation & WithStartDate(StartDateT &&value)
void SetStartDate(StartDateT &&value)
const Aws::Utils::DateTime & GetEndDate() const
bool EndDateHasBeenSet() const
bool StartDateHasBeenSet() const
Reservation & WithOffering(OfferingT &&value)
void SetReservationArn(ReservationArnT &&value)
AWS_REDSHIFTSERVERLESS_API Reservation(Aws::Utils::Json::JsonView jsonValue)
bool OfferingHasBeenSet() const
bool ReservationArnHasBeenSet() const
void SetEndDate(EndDateT &&value)
void SetCapacity(int value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue