AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
Reservation.h
1
6#pragma once
7#include <aws/mediaconnect/MediaConnect_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/mediaconnect/model/DurationUnits.h>
10#include <aws/mediaconnect/model/PriceUnits.h>
11#include <aws/mediaconnect/model/ReservationState.h>
12#include <aws/mediaconnect/model/ResourceSpecification.h>
13#include <utility>
14
15namespace Aws
16{
17namespace Utils
18{
19namespace Json
20{
21 class JsonValue;
22 class JsonView;
23} // namespace Json
24} // namespace Utils
25namespace MediaConnect
26{
27namespace Model
28{
29
42 {
43 public:
44 AWS_MEDIACONNECT_API Reservation();
45 AWS_MEDIACONNECT_API Reservation(Aws::Utils::Json::JsonView jsonValue);
46 AWS_MEDIACONNECT_API Reservation& operator=(Aws::Utils::Json::JsonView jsonValue);
47 AWS_MEDIACONNECT_API Aws::Utils::Json::JsonValue Jsonize() const;
48
49
51
55 inline const Aws::String& GetCurrencyCode() const{ return m_currencyCode; }
56 inline bool CurrencyCodeHasBeenSet() const { return m_currencyCodeHasBeenSet; }
57 inline void SetCurrencyCode(const Aws::String& value) { m_currencyCodeHasBeenSet = true; m_currencyCode = value; }
58 inline void SetCurrencyCode(Aws::String&& value) { m_currencyCodeHasBeenSet = true; m_currencyCode = std::move(value); }
59 inline void SetCurrencyCode(const char* value) { m_currencyCodeHasBeenSet = true; m_currencyCode.assign(value); }
60 inline Reservation& WithCurrencyCode(const Aws::String& value) { SetCurrencyCode(value); return *this;}
61 inline Reservation& WithCurrencyCode(Aws::String&& value) { SetCurrencyCode(std::move(value)); return *this;}
62 inline Reservation& WithCurrencyCode(const char* value) { SetCurrencyCode(value); return *this;}
64
66
70 inline int GetDuration() const{ return m_duration; }
71 inline bool DurationHasBeenSet() const { return m_durationHasBeenSet; }
72 inline void SetDuration(int value) { m_durationHasBeenSet = true; m_duration = value; }
73 inline Reservation& WithDuration(int value) { SetDuration(value); return *this;}
75
77
81 inline const DurationUnits& GetDurationUnits() const{ return m_durationUnits; }
82 inline bool DurationUnitsHasBeenSet() const { return m_durationUnitsHasBeenSet; }
83 inline void SetDurationUnits(const DurationUnits& value) { m_durationUnitsHasBeenSet = true; m_durationUnits = value; }
84 inline void SetDurationUnits(DurationUnits&& value) { m_durationUnitsHasBeenSet = true; m_durationUnits = std::move(value); }
85 inline Reservation& WithDurationUnits(const DurationUnits& value) { SetDurationUnits(value); return *this;}
86 inline Reservation& WithDurationUnits(DurationUnits&& value) { SetDurationUnits(std::move(value)); return *this;}
88
90
94 inline const Aws::String& GetEnd() const{ return m_end; }
95 inline bool EndHasBeenSet() const { return m_endHasBeenSet; }
96 inline void SetEnd(const Aws::String& value) { m_endHasBeenSet = true; m_end = value; }
97 inline void SetEnd(Aws::String&& value) { m_endHasBeenSet = true; m_end = std::move(value); }
98 inline void SetEnd(const char* value) { m_endHasBeenSet = true; m_end.assign(value); }
99 inline Reservation& WithEnd(const Aws::String& value) { SetEnd(value); return *this;}
100 inline Reservation& WithEnd(Aws::String&& value) { SetEnd(std::move(value)); return *this;}
101 inline Reservation& WithEnd(const char* value) { SetEnd(value); return *this;}
103
105
108 inline const Aws::String& GetOfferingArn() const{ return m_offeringArn; }
109 inline bool OfferingArnHasBeenSet() const { return m_offeringArnHasBeenSet; }
110 inline void SetOfferingArn(const Aws::String& value) { m_offeringArnHasBeenSet = true; m_offeringArn = value; }
111 inline void SetOfferingArn(Aws::String&& value) { m_offeringArnHasBeenSet = true; m_offeringArn = std::move(value); }
112 inline void SetOfferingArn(const char* value) { m_offeringArnHasBeenSet = true; m_offeringArn.assign(value); }
113 inline Reservation& WithOfferingArn(const Aws::String& value) { SetOfferingArn(value); return *this;}
114 inline Reservation& WithOfferingArn(Aws::String&& value) { SetOfferingArn(std::move(value)); return *this;}
115 inline Reservation& WithOfferingArn(const char* value) { SetOfferingArn(value); return *this;}
117
119
122 inline const Aws::String& GetOfferingDescription() const{ return m_offeringDescription; }
123 inline bool OfferingDescriptionHasBeenSet() const { return m_offeringDescriptionHasBeenSet; }
124 inline void SetOfferingDescription(const Aws::String& value) { m_offeringDescriptionHasBeenSet = true; m_offeringDescription = value; }
125 inline void SetOfferingDescription(Aws::String&& value) { m_offeringDescriptionHasBeenSet = true; m_offeringDescription = std::move(value); }
126 inline void SetOfferingDescription(const char* value) { m_offeringDescriptionHasBeenSet = true; m_offeringDescription.assign(value); }
127 inline Reservation& WithOfferingDescription(const Aws::String& value) { SetOfferingDescription(value); return *this;}
128 inline Reservation& WithOfferingDescription(Aws::String&& value) { SetOfferingDescription(std::move(value)); return *this;}
129 inline Reservation& WithOfferingDescription(const char* value) { SetOfferingDescription(value); return *this;}
131
133
137 inline const Aws::String& GetPricePerUnit() const{ return m_pricePerUnit; }
138 inline bool PricePerUnitHasBeenSet() const { return m_pricePerUnitHasBeenSet; }
139 inline void SetPricePerUnit(const Aws::String& value) { m_pricePerUnitHasBeenSet = true; m_pricePerUnit = value; }
140 inline void SetPricePerUnit(Aws::String&& value) { m_pricePerUnitHasBeenSet = true; m_pricePerUnit = std::move(value); }
141 inline void SetPricePerUnit(const char* value) { m_pricePerUnitHasBeenSet = true; m_pricePerUnit.assign(value); }
142 inline Reservation& WithPricePerUnit(const Aws::String& value) { SetPricePerUnit(value); return *this;}
143 inline Reservation& WithPricePerUnit(Aws::String&& value) { SetPricePerUnit(std::move(value)); return *this;}
144 inline Reservation& WithPricePerUnit(const char* value) { SetPricePerUnit(value); return *this;}
146
148
153 inline const PriceUnits& GetPriceUnits() const{ return m_priceUnits; }
154 inline bool PriceUnitsHasBeenSet() const { return m_priceUnitsHasBeenSet; }
155 inline void SetPriceUnits(const PriceUnits& value) { m_priceUnitsHasBeenSet = true; m_priceUnits = value; }
156 inline void SetPriceUnits(PriceUnits&& value) { m_priceUnitsHasBeenSet = true; m_priceUnits = std::move(value); }
157 inline Reservation& WithPriceUnits(const PriceUnits& value) { SetPriceUnits(value); return *this;}
158 inline Reservation& WithPriceUnits(PriceUnits&& value) { SetPriceUnits(std::move(value)); return *this;}
160
162
166 inline const Aws::String& GetReservationArn() const{ return m_reservationArn; }
167 inline bool ReservationArnHasBeenSet() const { return m_reservationArnHasBeenSet; }
168 inline void SetReservationArn(const Aws::String& value) { m_reservationArnHasBeenSet = true; m_reservationArn = value; }
169 inline void SetReservationArn(Aws::String&& value) { m_reservationArnHasBeenSet = true; m_reservationArn = std::move(value); }
170 inline void SetReservationArn(const char* value) { m_reservationArnHasBeenSet = true; m_reservationArn.assign(value); }
171 inline Reservation& WithReservationArn(const Aws::String& value) { SetReservationArn(value); return *this;}
172 inline Reservation& WithReservationArn(Aws::String&& value) { SetReservationArn(std::move(value)); return *this;}
173 inline Reservation& WithReservationArn(const char* value) { SetReservationArn(value); return *this;}
175
177
180 inline const Aws::String& GetReservationName() const{ return m_reservationName; }
181 inline bool ReservationNameHasBeenSet() const { return m_reservationNameHasBeenSet; }
182 inline void SetReservationName(const Aws::String& value) { m_reservationNameHasBeenSet = true; m_reservationName = value; }
183 inline void SetReservationName(Aws::String&& value) { m_reservationNameHasBeenSet = true; m_reservationName = std::move(value); }
184 inline void SetReservationName(const char* value) { m_reservationNameHasBeenSet = true; m_reservationName.assign(value); }
185 inline Reservation& WithReservationName(const Aws::String& value) { SetReservationName(value); return *this;}
186 inline Reservation& WithReservationName(Aws::String&& value) { SetReservationName(std::move(value)); return *this;}
187 inline Reservation& WithReservationName(const char* value) { SetReservationName(value); return *this;}
189
191
194 inline const ReservationState& GetReservationState() const{ return m_reservationState; }
195 inline bool ReservationStateHasBeenSet() const { return m_reservationStateHasBeenSet; }
196 inline void SetReservationState(const ReservationState& value) { m_reservationStateHasBeenSet = true; m_reservationState = value; }
197 inline void SetReservationState(ReservationState&& value) { m_reservationStateHasBeenSet = true; m_reservationState = std::move(value); }
198 inline Reservation& WithReservationState(const ReservationState& value) { SetReservationState(value); return *this;}
199 inline Reservation& WithReservationState(ReservationState&& value) { SetReservationState(std::move(value)); return *this;}
201
203
208 inline const ResourceSpecification& GetResourceSpecification() const{ return m_resourceSpecification; }
209 inline bool ResourceSpecificationHasBeenSet() const { return m_resourceSpecificationHasBeenSet; }
210 inline void SetResourceSpecification(const ResourceSpecification& value) { m_resourceSpecificationHasBeenSet = true; m_resourceSpecification = value; }
211 inline void SetResourceSpecification(ResourceSpecification&& value) { m_resourceSpecificationHasBeenSet = true; m_resourceSpecification = std::move(value); }
213 inline Reservation& WithResourceSpecification(ResourceSpecification&& value) { SetResourceSpecification(std::move(value)); return *this;}
215
217
221 inline const Aws::String& GetStart() const{ return m_start; }
222 inline bool StartHasBeenSet() const { return m_startHasBeenSet; }
223 inline void SetStart(const Aws::String& value) { m_startHasBeenSet = true; m_start = value; }
224 inline void SetStart(Aws::String&& value) { m_startHasBeenSet = true; m_start = std::move(value); }
225 inline void SetStart(const char* value) { m_startHasBeenSet = true; m_start.assign(value); }
226 inline Reservation& WithStart(const Aws::String& value) { SetStart(value); return *this;}
227 inline Reservation& WithStart(Aws::String&& value) { SetStart(std::move(value)); return *this;}
228 inline Reservation& WithStart(const char* value) { SetStart(value); return *this;}
230 private:
231
232 Aws::String m_currencyCode;
233 bool m_currencyCodeHasBeenSet = false;
234
235 int m_duration;
236 bool m_durationHasBeenSet = false;
237
238 DurationUnits m_durationUnits;
239 bool m_durationUnitsHasBeenSet = false;
240
241 Aws::String m_end;
242 bool m_endHasBeenSet = false;
243
244 Aws::String m_offeringArn;
245 bool m_offeringArnHasBeenSet = false;
246
247 Aws::String m_offeringDescription;
248 bool m_offeringDescriptionHasBeenSet = false;
249
250 Aws::String m_pricePerUnit;
251 bool m_pricePerUnitHasBeenSet = false;
252
253 PriceUnits m_priceUnits;
254 bool m_priceUnitsHasBeenSet = false;
255
256 Aws::String m_reservationArn;
257 bool m_reservationArnHasBeenSet = false;
258
259 Aws::String m_reservationName;
260 bool m_reservationNameHasBeenSet = false;
261
262 ReservationState m_reservationState;
263 bool m_reservationStateHasBeenSet = false;
264
265 ResourceSpecification m_resourceSpecification;
266 bool m_resourceSpecificationHasBeenSet = false;
267
268 Aws::String m_start;
269 bool m_startHasBeenSet = false;
270 };
271
272} // namespace Model
273} // namespace MediaConnect
274} // namespace Aws
const Aws::String & GetEnd() const
Definition Reservation.h:94
const Aws::String & GetStart() const
Reservation & WithReservationArn(const Aws::String &value)
void SetDurationUnits(DurationUnits &&value)
Definition Reservation.h:84
Reservation & WithReservationName(const Aws::String &value)
void SetReservationArn(Aws::String &&value)
Reservation & WithCurrencyCode(const Aws::String &value)
Definition Reservation.h:60
void SetReservationArn(const Aws::String &value)
const Aws::String & GetOfferingDescription() const
void SetEnd(Aws::String &&value)
Definition Reservation.h:97
void SetStart(Aws::String &&value)
void SetCurrencyCode(const char *value)
Definition Reservation.h:59
void SetOfferingArn(Aws::String &&value)
void SetPricePerUnit(Aws::String &&value)
Reservation & WithEnd(const char *value)
Reservation & WithOfferingDescription(const char *value)
void SetReservationState(const ReservationState &value)
Reservation & WithEnd(const Aws::String &value)
Definition Reservation.h:99
Reservation & WithDuration(int value)
Definition Reservation.h:73
const PriceUnits & GetPriceUnits() const
Reservation & WithStart(const Aws::String &value)
const ReservationState & GetReservationState() const
Reservation & WithReservationArn(Aws::String &&value)
Reservation & WithDurationUnits(DurationUnits &&value)
Definition Reservation.h:86
Reservation & WithPriceUnits(const PriceUnits &value)
AWS_MEDIACONNECT_API Reservation()
Reservation & WithStart(Aws::String &&value)
Reservation & WithDurationUnits(const DurationUnits &value)
Definition Reservation.h:85
void SetStart(const char *value)
Reservation & WithReservationName(const char *value)
const Aws::String & GetOfferingArn() const
void SetReservationName(const char *value)
void SetPricePerUnit(const Aws::String &value)
Reservation & WithPricePerUnit(Aws::String &&value)
void SetResourceSpecification(const ResourceSpecification &value)
Reservation & WithStart(const char *value)
void SetCurrencyCode(Aws::String &&value)
Definition Reservation.h:58
AWS_MEDIACONNECT_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetReservationName() const
const ResourceSpecification & GetResourceSpecification() const
Reservation & WithOfferingArn(Aws::String &&value)
AWS_MEDIACONNECT_API Reservation(Aws::Utils::Json::JsonView jsonValue)
Reservation & WithOfferingDescription(Aws::String &&value)
Reservation & WithPriceUnits(PriceUnits &&value)
Reservation & WithOfferingArn(const char *value)
Reservation & WithResourceSpecification(const ResourceSpecification &value)
void SetDurationUnits(const DurationUnits &value)
Definition Reservation.h:83
void SetStart(const Aws::String &value)
AWS_MEDIACONNECT_API Reservation & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetCurrencyCode(const Aws::String &value)
Definition Reservation.h:57
const Aws::String & GetPricePerUnit() const
void SetReservationState(ReservationState &&value)
void SetReservationArn(const char *value)
Reservation & WithPricePerUnit(const char *value)
void SetPriceUnits(const PriceUnits &value)
void SetEnd(const char *value)
Definition Reservation.h:98
const Aws::String & GetCurrencyCode() const
Definition Reservation.h:55
Reservation & WithOfferingArn(const Aws::String &value)
void SetOfferingDescription(const char *value)
void SetPriceUnits(PriceUnits &&value)
void SetPricePerUnit(const char *value)
Reservation & WithEnd(Aws::String &&value)
Reservation & WithResourceSpecification(ResourceSpecification &&value)
void SetOfferingArn(const Aws::String &value)
const Aws::String & GetReservationArn() const
void SetOfferingDescription(const Aws::String &value)
void SetEnd(const Aws::String &value)
Definition Reservation.h:96
void SetReservationName(const Aws::String &value)
Reservation & WithReservationArn(const char *value)
void SetOfferingArn(const char *value)
Reservation & WithCurrencyCode(Aws::String &&value)
Definition Reservation.h:61
void SetResourceSpecification(ResourceSpecification &&value)
void SetReservationName(Aws::String &&value)
Reservation & WithReservationName(Aws::String &&value)
const DurationUnits & GetDurationUnits() const
Definition Reservation.h:81
Reservation & WithPricePerUnit(const Aws::String &value)
void SetOfferingDescription(Aws::String &&value)
Reservation & WithReservationState(ReservationState &&value)
Reservation & WithCurrencyCode(const char *value)
Definition Reservation.h:62
Reservation & WithOfferingDescription(const Aws::String &value)
Reservation & WithReservationState(const ReservationState &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue