AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
Reservation.h
1
6#pragma once
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>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace RedshiftServerless
24{
25namespace Model
26{
27
37 {
38 public:
39 AWS_REDSHIFTSERVERLESS_API Reservation() = default;
40 AWS_REDSHIFTSERVERLESS_API Reservation(Aws::Utils::Json::JsonView jsonValue);
41 AWS_REDSHIFTSERVERLESS_API Reservation& operator=(Aws::Utils::Json::JsonView jsonValue);
42 AWS_REDSHIFTSERVERLESS_API Aws::Utils::Json::JsonValue Jsonize() const;
43
44
46
49 inline int GetCapacity() const { return m_capacity; }
50 inline bool CapacityHasBeenSet() const { return m_capacityHasBeenSet; }
51 inline void SetCapacity(int value) { m_capacityHasBeenSet = true; m_capacity = value; }
52 inline Reservation& WithCapacity(int value) { SetCapacity(value); return *this;}
54
56
60 inline const Aws::Utils::DateTime& GetEndDate() const { return m_endDate; }
61 inline bool EndDateHasBeenSet() const { return m_endDateHasBeenSet; }
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>
65 Reservation& WithEndDate(EndDateT&& value) { SetEndDate(std::forward<EndDateT>(value)); return *this;}
67
69
73 inline const ReservationOffering& GetOffering() const { return m_offering; }
74 inline bool OfferingHasBeenSet() const { return m_offeringHasBeenSet; }
75 template<typename OfferingT = ReservationOffering>
76 void SetOffering(OfferingT&& value) { m_offeringHasBeenSet = true; m_offering = std::forward<OfferingT>(value); }
77 template<typename OfferingT = ReservationOffering>
78 Reservation& WithOffering(OfferingT&& value) { SetOffering(std::forward<OfferingT>(value)); return *this;}
80
82
86 inline const Aws::String& GetReservationArn() const { return m_reservationArn; }
87 inline bool ReservationArnHasBeenSet() const { return m_reservationArnHasBeenSet; }
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>
91 Reservation& WithReservationArn(ReservationArnT&& value) { SetReservationArn(std::forward<ReservationArnT>(value)); return *this;}
93
95
98 inline const Aws::String& GetReservationId() const { return m_reservationId; }
99 inline bool ReservationIdHasBeenSet() const { return m_reservationIdHasBeenSet; }
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>
103 Reservation& WithReservationId(ReservationIdT&& value) { SetReservationId(std::forward<ReservationIdT>(value)); return *this;}
105
107
111 inline const Aws::Utils::DateTime& GetStartDate() const { return m_startDate; }
112 inline bool StartDateHasBeenSet() const { return m_startDateHasBeenSet; }
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>
116 Reservation& WithStartDate(StartDateT&& value) { SetStartDate(std::forward<StartDateT>(value)); return *this;}
118
120
126 inline const Aws::String& GetStatus() const { return m_status; }
127 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
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>
131 Reservation& WithStatus(StatusT&& value) { SetStatus(std::forward<StatusT>(value)); return *this;}
133 private:
134
135 int m_capacity{0};
136 bool m_capacityHasBeenSet = false;
137
138 Aws::Utils::DateTime m_endDate{};
139 bool m_endDateHasBeenSet = false;
140
141 ReservationOffering m_offering;
142 bool m_offeringHasBeenSet = false;
143
144 Aws::String m_reservationArn;
145 bool m_reservationArnHasBeenSet = false;
146
147 Aws::String m_reservationId;
148 bool m_reservationIdHasBeenSet = false;
149
150 Aws::Utils::DateTime m_startDate{};
151 bool m_startDateHasBeenSet = false;
152
153 Aws::String m_status;
154 bool m_statusHasBeenSet = false;
155 };
156
157} // namespace Model
158} // namespace RedshiftServerless
159} // namespace Aws
Reservation & WithReservationArn(ReservationArnT &&value)
Definition Reservation.h:91
AWS_REDSHIFTSERVERLESS_API Reservation()=default
Reservation & WithStatus(StatusT &&value)
const ReservationOffering & GetOffering() const
Definition Reservation.h:73
void SetReservationId(ReservationIdT &&value)
Reservation & WithEndDate(EndDateT &&value)
Definition Reservation.h:65
AWS_REDSHIFTSERVERLESS_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetStatus() const
const Aws::Utils::DateTime & GetStartDate() const
const Aws::String & GetReservationArn() const
Definition Reservation.h:86
AWS_REDSHIFTSERVERLESS_API Reservation & operator=(Aws::Utils::Json::JsonView jsonValue)
Reservation & WithReservationId(ReservationIdT &&value)
const Aws::String & GetReservationId() const
Definition Reservation.h:98
Reservation & WithStartDate(StartDateT &&value)
const Aws::Utils::DateTime & GetEndDate() const
Definition Reservation.h:60
Reservation & WithOffering(OfferingT &&value)
Definition Reservation.h:78
void SetReservationArn(ReservationArnT &&value)
Definition Reservation.h:89
AWS_REDSHIFTSERVERLESS_API Reservation(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue