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/medialive/MediaLive_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/medialive/model/OfferingDurationUnits.h>
10#include <aws/medialive/model/OfferingType.h>
11#include <aws/medialive/model/RenewalSettings.h>
12#include <aws/medialive/model/ReservationResourceSpecification.h>
13#include <aws/medialive/model/ReservationState.h>
14#include <aws/core/utils/memory/stl/AWSMap.h>
15#include <utility>
16
17namespace Aws
18{
19namespace Utils
20{
21namespace Json
22{
23 class JsonValue;
24 class JsonView;
25} // namespace Json
26} // namespace Utils
27namespace MediaLive
28{
29namespace Model
30{
31
38 {
39 public:
40 AWS_MEDIALIVE_API Reservation();
41 AWS_MEDIALIVE_API Reservation(Aws::Utils::Json::JsonView jsonValue);
42 AWS_MEDIALIVE_API Reservation& operator=(Aws::Utils::Json::JsonView jsonValue);
43 AWS_MEDIALIVE_API Aws::Utils::Json::JsonValue Jsonize() const;
44
45
47
51 inline const Aws::String& GetArn() const{ return m_arn; }
52 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
53 inline void SetArn(const Aws::String& value) { m_arnHasBeenSet = true; m_arn = value; }
54 inline void SetArn(Aws::String&& value) { m_arnHasBeenSet = true; m_arn = std::move(value); }
55 inline void SetArn(const char* value) { m_arnHasBeenSet = true; m_arn.assign(value); }
56 inline Reservation& WithArn(const Aws::String& value) { SetArn(value); return *this;}
57 inline Reservation& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;}
58 inline Reservation& WithArn(const char* value) { SetArn(value); return *this;}
60
62
65 inline int GetCount() const{ return m_count; }
66 inline bool CountHasBeenSet() const { return m_countHasBeenSet; }
67 inline void SetCount(int value) { m_countHasBeenSet = true; m_count = value; }
68 inline Reservation& WithCount(int value) { SetCount(value); return *this;}
70
72
75 inline const Aws::String& GetCurrencyCode() const{ return m_currencyCode; }
76 inline bool CurrencyCodeHasBeenSet() const { return m_currencyCodeHasBeenSet; }
77 inline void SetCurrencyCode(const Aws::String& value) { m_currencyCodeHasBeenSet = true; m_currencyCode = value; }
78 inline void SetCurrencyCode(Aws::String&& value) { m_currencyCodeHasBeenSet = true; m_currencyCode = std::move(value); }
79 inline void SetCurrencyCode(const char* value) { m_currencyCodeHasBeenSet = true; m_currencyCode.assign(value); }
80 inline Reservation& WithCurrencyCode(const Aws::String& value) { SetCurrencyCode(value); return *this;}
81 inline Reservation& WithCurrencyCode(Aws::String&& value) { SetCurrencyCode(std::move(value)); return *this;}
82 inline Reservation& WithCurrencyCode(const char* value) { SetCurrencyCode(value); return *this;}
84
86
89 inline int GetDuration() const{ return m_duration; }
90 inline bool DurationHasBeenSet() const { return m_durationHasBeenSet; }
91 inline void SetDuration(int value) { m_durationHasBeenSet = true; m_duration = value; }
92 inline Reservation& WithDuration(int value) { SetDuration(value); return *this;}
94
96
99 inline const OfferingDurationUnits& GetDurationUnits() const{ return m_durationUnits; }
100 inline bool DurationUnitsHasBeenSet() const { return m_durationUnitsHasBeenSet; }
101 inline void SetDurationUnits(const OfferingDurationUnits& value) { m_durationUnitsHasBeenSet = true; m_durationUnits = value; }
102 inline void SetDurationUnits(OfferingDurationUnits&& value) { m_durationUnitsHasBeenSet = true; m_durationUnits = std::move(value); }
103 inline Reservation& WithDurationUnits(const OfferingDurationUnits& value) { SetDurationUnits(value); return *this;}
104 inline Reservation& WithDurationUnits(OfferingDurationUnits&& value) { SetDurationUnits(std::move(value)); return *this;}
106
108
111 inline const Aws::String& GetEnd() const{ return m_end; }
112 inline bool EndHasBeenSet() const { return m_endHasBeenSet; }
113 inline void SetEnd(const Aws::String& value) { m_endHasBeenSet = true; m_end = value; }
114 inline void SetEnd(Aws::String&& value) { m_endHasBeenSet = true; m_end = std::move(value); }
115 inline void SetEnd(const char* value) { m_endHasBeenSet = true; m_end.assign(value); }
116 inline Reservation& WithEnd(const Aws::String& value) { SetEnd(value); return *this;}
117 inline Reservation& WithEnd(Aws::String&& value) { SetEnd(std::move(value)); return *this;}
118 inline Reservation& WithEnd(const char* value) { SetEnd(value); return *this;}
120
122
125 inline double GetFixedPrice() const{ return m_fixedPrice; }
126 inline bool FixedPriceHasBeenSet() const { return m_fixedPriceHasBeenSet; }
127 inline void SetFixedPrice(double value) { m_fixedPriceHasBeenSet = true; m_fixedPrice = value; }
128 inline Reservation& WithFixedPrice(double value) { SetFixedPrice(value); return *this;}
130
132
135 inline const Aws::String& GetName() const{ return m_name; }
136 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
137 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
138 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
139 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
140 inline Reservation& WithName(const Aws::String& value) { SetName(value); return *this;}
141 inline Reservation& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
142 inline Reservation& WithName(const char* value) { SetName(value); return *this;}
144
146
150 inline const Aws::String& GetOfferingDescription() const{ return m_offeringDescription; }
151 inline bool OfferingDescriptionHasBeenSet() const { return m_offeringDescriptionHasBeenSet; }
152 inline void SetOfferingDescription(const Aws::String& value) { m_offeringDescriptionHasBeenSet = true; m_offeringDescription = value; }
153 inline void SetOfferingDescription(Aws::String&& value) { m_offeringDescriptionHasBeenSet = true; m_offeringDescription = std::move(value); }
154 inline void SetOfferingDescription(const char* value) { m_offeringDescriptionHasBeenSet = true; m_offeringDescription.assign(value); }
155 inline Reservation& WithOfferingDescription(const Aws::String& value) { SetOfferingDescription(value); return *this;}
156 inline Reservation& WithOfferingDescription(Aws::String&& value) { SetOfferingDescription(std::move(value)); return *this;}
157 inline Reservation& WithOfferingDescription(const char* value) { SetOfferingDescription(value); return *this;}
159
161
164 inline const Aws::String& GetOfferingId() const{ return m_offeringId; }
165 inline bool OfferingIdHasBeenSet() const { return m_offeringIdHasBeenSet; }
166 inline void SetOfferingId(const Aws::String& value) { m_offeringIdHasBeenSet = true; m_offeringId = value; }
167 inline void SetOfferingId(Aws::String&& value) { m_offeringIdHasBeenSet = true; m_offeringId = std::move(value); }
168 inline void SetOfferingId(const char* value) { m_offeringIdHasBeenSet = true; m_offeringId.assign(value); }
169 inline Reservation& WithOfferingId(const Aws::String& value) { SetOfferingId(value); return *this;}
170 inline Reservation& WithOfferingId(Aws::String&& value) { SetOfferingId(std::move(value)); return *this;}
171 inline Reservation& WithOfferingId(const char* value) { SetOfferingId(value); return *this;}
173
175
178 inline const OfferingType& GetOfferingType() const{ return m_offeringType; }
179 inline bool OfferingTypeHasBeenSet() const { return m_offeringTypeHasBeenSet; }
180 inline void SetOfferingType(const OfferingType& value) { m_offeringTypeHasBeenSet = true; m_offeringType = value; }
181 inline void SetOfferingType(OfferingType&& value) { m_offeringTypeHasBeenSet = true; m_offeringType = std::move(value); }
182 inline Reservation& WithOfferingType(const OfferingType& value) { SetOfferingType(value); return *this;}
183 inline Reservation& WithOfferingType(OfferingType&& value) { SetOfferingType(std::move(value)); return *this;}
185
187
190 inline const Aws::String& GetRegion() const{ return m_region; }
191 inline bool RegionHasBeenSet() const { return m_regionHasBeenSet; }
192 inline void SetRegion(const Aws::String& value) { m_regionHasBeenSet = true; m_region = value; }
193 inline void SetRegion(Aws::String&& value) { m_regionHasBeenSet = true; m_region = std::move(value); }
194 inline void SetRegion(const char* value) { m_regionHasBeenSet = true; m_region.assign(value); }
195 inline Reservation& WithRegion(const Aws::String& value) { SetRegion(value); return *this;}
196 inline Reservation& WithRegion(Aws::String&& value) { SetRegion(std::move(value)); return *this;}
197 inline Reservation& WithRegion(const char* value) { SetRegion(value); return *this;}
199
201
204 inline const RenewalSettings& GetRenewalSettings() const{ return m_renewalSettings; }
205 inline bool RenewalSettingsHasBeenSet() const { return m_renewalSettingsHasBeenSet; }
206 inline void SetRenewalSettings(const RenewalSettings& value) { m_renewalSettingsHasBeenSet = true; m_renewalSettings = value; }
207 inline void SetRenewalSettings(RenewalSettings&& value) { m_renewalSettingsHasBeenSet = true; m_renewalSettings = std::move(value); }
208 inline Reservation& WithRenewalSettings(const RenewalSettings& value) { SetRenewalSettings(value); return *this;}
209 inline Reservation& WithRenewalSettings(RenewalSettings&& value) { SetRenewalSettings(std::move(value)); return *this;}
211
213
216 inline const Aws::String& GetReservationId() const{ return m_reservationId; }
217 inline bool ReservationIdHasBeenSet() const { return m_reservationIdHasBeenSet; }
218 inline void SetReservationId(const Aws::String& value) { m_reservationIdHasBeenSet = true; m_reservationId = value; }
219 inline void SetReservationId(Aws::String&& value) { m_reservationIdHasBeenSet = true; m_reservationId = std::move(value); }
220 inline void SetReservationId(const char* value) { m_reservationIdHasBeenSet = true; m_reservationId.assign(value); }
221 inline Reservation& WithReservationId(const Aws::String& value) { SetReservationId(value); return *this;}
222 inline Reservation& WithReservationId(Aws::String&& value) { SetReservationId(std::move(value)); return *this;}
223 inline Reservation& WithReservationId(const char* value) { SetReservationId(value); return *this;}
225
227
230 inline const ReservationResourceSpecification& GetResourceSpecification() const{ return m_resourceSpecification; }
231 inline bool ResourceSpecificationHasBeenSet() const { return m_resourceSpecificationHasBeenSet; }
232 inline void SetResourceSpecification(const ReservationResourceSpecification& value) { m_resourceSpecificationHasBeenSet = true; m_resourceSpecification = value; }
233 inline void SetResourceSpecification(ReservationResourceSpecification&& value) { m_resourceSpecificationHasBeenSet = true; m_resourceSpecification = std::move(value); }
237
239
243 inline const Aws::String& GetStart() const{ return m_start; }
244 inline bool StartHasBeenSet() const { return m_startHasBeenSet; }
245 inline void SetStart(const Aws::String& value) { m_startHasBeenSet = true; m_start = value; }
246 inline void SetStart(Aws::String&& value) { m_startHasBeenSet = true; m_start = std::move(value); }
247 inline void SetStart(const char* value) { m_startHasBeenSet = true; m_start.assign(value); }
248 inline Reservation& WithStart(const Aws::String& value) { SetStart(value); return *this;}
249 inline Reservation& WithStart(Aws::String&& value) { SetStart(std::move(value)); return *this;}
250 inline Reservation& WithStart(const char* value) { SetStart(value); return *this;}
252
254
257 inline const ReservationState& GetState() const{ return m_state; }
258 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
259 inline void SetState(const ReservationState& value) { m_stateHasBeenSet = true; m_state = value; }
260 inline void SetState(ReservationState&& value) { m_stateHasBeenSet = true; m_state = std::move(value); }
261 inline Reservation& WithState(const ReservationState& value) { SetState(value); return *this;}
262 inline Reservation& WithState(ReservationState&& value) { SetState(std::move(value)); return *this;}
264
266
269 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const{ return m_tags; }
270 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
271 inline void SetTags(const Aws::Map<Aws::String, Aws::String>& value) { m_tagsHasBeenSet = true; m_tags = value; }
272 inline void SetTags(Aws::Map<Aws::String, Aws::String>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
273 inline Reservation& WithTags(const Aws::Map<Aws::String, Aws::String>& value) { SetTags(value); return *this;}
274 inline Reservation& WithTags(Aws::Map<Aws::String, Aws::String>&& value) { SetTags(std::move(value)); return *this;}
275 inline Reservation& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
276 inline Reservation& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
277 inline Reservation& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
278 inline Reservation& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; }
279 inline Reservation& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
280 inline Reservation& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
281 inline Reservation& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
283
285
288 inline double GetUsagePrice() const{ return m_usagePrice; }
289 inline bool UsagePriceHasBeenSet() const { return m_usagePriceHasBeenSet; }
290 inline void SetUsagePrice(double value) { m_usagePriceHasBeenSet = true; m_usagePrice = value; }
291 inline Reservation& WithUsagePrice(double value) { SetUsagePrice(value); return *this;}
293 private:
294
295 Aws::String m_arn;
296 bool m_arnHasBeenSet = false;
297
298 int m_count;
299 bool m_countHasBeenSet = false;
300
301 Aws::String m_currencyCode;
302 bool m_currencyCodeHasBeenSet = false;
303
304 int m_duration;
305 bool m_durationHasBeenSet = false;
306
307 OfferingDurationUnits m_durationUnits;
308 bool m_durationUnitsHasBeenSet = false;
309
310 Aws::String m_end;
311 bool m_endHasBeenSet = false;
312
313 double m_fixedPrice;
314 bool m_fixedPriceHasBeenSet = false;
315
316 Aws::String m_name;
317 bool m_nameHasBeenSet = false;
318
319 Aws::String m_offeringDescription;
320 bool m_offeringDescriptionHasBeenSet = false;
321
322 Aws::String m_offeringId;
323 bool m_offeringIdHasBeenSet = false;
324
325 OfferingType m_offeringType;
326 bool m_offeringTypeHasBeenSet = false;
327
328 Aws::String m_region;
329 bool m_regionHasBeenSet = false;
330
331 RenewalSettings m_renewalSettings;
332 bool m_renewalSettingsHasBeenSet = false;
333
334 Aws::String m_reservationId;
335 bool m_reservationIdHasBeenSet = false;
336
337 ReservationResourceSpecification m_resourceSpecification;
338 bool m_resourceSpecificationHasBeenSet = false;
339
340 Aws::String m_start;
341 bool m_startHasBeenSet = false;
342
343 ReservationState m_state;
344 bool m_stateHasBeenSet = false;
345
347 bool m_tagsHasBeenSet = false;
348
349 double m_usagePrice;
350 bool m_usagePriceHasBeenSet = false;
351 };
352
353} // namespace Model
354} // namespace MediaLive
355} // namespace Aws
Reservation & AddTags(const Aws::String &key, Aws::String &&value)
void SetOfferingId(Aws::String &&value)
void SetDurationUnits(OfferingDurationUnits &&value)
Reservation & WithState(const ReservationState &value)
Reservation & WithCurrencyCode(const char *value)
Definition Reservation.h:82
Reservation & WithArn(const char *value)
Definition Reservation.h:58
void SetRegion(const char *value)
void SetRenewalSettings(const RenewalSettings &value)
void SetTags(Aws::Map< Aws::String, Aws::String > &&value)
Reservation & WithOfferingDescription(const char *value)
Reservation & WithDurationUnits(OfferingDurationUnits &&value)
AWS_MEDIALIVE_API Reservation & operator=(Aws::Utils::Json::JsonView jsonValue)
Reservation & WithRenewalSettings(RenewalSettings &&value)
Reservation & WithName(Aws::String &&value)
Reservation & WithStart(const char *value)
void SetEnd(const char *value)
AWS_MEDIALIVE_API Aws::Utils::Json::JsonValue Jsonize() const
Reservation & WithName(const Aws::String &value)
Reservation & WithReservationId(const Aws::String &value)
void SetCurrencyCode(const Aws::String &value)
Definition Reservation.h:77
void SetArn(const Aws::String &value)
Definition Reservation.h:53
void SetOfferingId(const Aws::String &value)
Reservation & AddTags(Aws::String &&key, Aws::String &&value)
const Aws::String & GetName() const
Reservation & WithTags(const Aws::Map< Aws::String, Aws::String > &value)
Reservation & WithTags(Aws::Map< Aws::String, Aws::String > &&value)
Reservation & WithState(ReservationState &&value)
Reservation & WithCount(int value)
Definition Reservation.h:68
AWS_MEDIALIVE_API Reservation(Aws::Utils::Json::JsonView jsonValue)
void SetOfferingType(OfferingType &&value)
const ReservationState & GetState() const
Reservation & WithStart(const Aws::String &value)
Reservation & WithOfferingDescription(const Aws::String &value)
const Aws::String & GetCurrencyCode() const
Definition Reservation.h:75
Reservation & WithEnd(const Aws::String &value)
void SetStart(Aws::String &&value)
Reservation & WithReservationId(const char *value)
void SetOfferingDescription(const Aws::String &value)
Reservation & AddTags(const char *key, Aws::String &&value)
void SetResourceSpecification(ReservationResourceSpecification &&value)
Reservation & AddTags(const char *key, const char *value)
Reservation & WithName(const char *value)
const Aws::String & GetRegion() const
void SetOfferingDescription(const char *value)
const Aws::String & GetOfferingDescription() const
void SetReservationId(const char *value)
Reservation & WithOfferingType(OfferingType &&value)
void SetRenewalSettings(RenewalSettings &&value)
const OfferingDurationUnits & GetDurationUnits() const
Definition Reservation.h:99
void SetOfferingType(const OfferingType &value)
void SetCurrencyCode(const char *value)
Definition Reservation.h:79
void SetStart(const Aws::String &value)
Reservation & WithResourceSpecification(ReservationResourceSpecification &&value)
Reservation & WithRegion(const Aws::String &value)
const Aws::String & GetStart() const
Reservation & WithOfferingId(const Aws::String &value)
Reservation & WithReservationId(Aws::String &&value)
void SetResourceSpecification(const ReservationResourceSpecification &value)
void SetArn(Aws::String &&value)
Definition Reservation.h:54
Reservation & WithFixedPrice(double value)
Reservation & WithArn(const Aws::String &value)
Definition Reservation.h:56
void SetStart(const char *value)
Reservation & WithCurrencyCode(const Aws::String &value)
Definition Reservation.h:80
void SetOfferingId(const char *value)
const Aws::String & GetArn() const
Definition Reservation.h:51
void SetDurationUnits(const OfferingDurationUnits &value)
void SetReservationId(Aws::String &&value)
Reservation & WithDuration(int value)
Definition Reservation.h:92
const RenewalSettings & GetRenewalSettings() const
void SetRegion(const Aws::String &value)
Reservation & WithResourceSpecification(const ReservationResourceSpecification &value)
void SetState(ReservationState &&value)
Reservation & WithRegion(const char *value)
Reservation & AddTags(Aws::String &&key, const Aws::String &value)
Reservation & AddTags(const Aws::String &key, const Aws::String &value)
const Aws::String & GetEnd() const
Reservation & AddTags(Aws::String &&key, const char *value)
Reservation & WithOfferingId(Aws::String &&value)
Reservation & WithUsagePrice(double value)
void SetReservationId(const Aws::String &value)
void SetEnd(const Aws::String &value)
void SetName(const char *value)
void SetState(const ReservationState &value)
Reservation & WithStart(Aws::String &&value)
Reservation & WithCurrencyCode(Aws::String &&value)
Definition Reservation.h:81
const OfferingType & GetOfferingType() const
void SetOfferingDescription(Aws::String &&value)
Reservation & WithEnd(const char *value)
Reservation & WithOfferingId(const char *value)
Reservation & WithOfferingType(const OfferingType &value)
const Aws::String & GetReservationId() const
const Aws::Map< Aws::String, Aws::String > & GetTags() const
void SetEnd(Aws::String &&value)
void SetName(const Aws::String &value)
Reservation & WithOfferingDescription(Aws::String &&value)
Reservation & WithRenewalSettings(const RenewalSettings &value)
const ReservationResourceSpecification & GetResourceSpecification() const
Reservation & WithDurationUnits(const OfferingDurationUnits &value)
void SetArn(const char *value)
Definition Reservation.h:55
Reservation & WithEnd(Aws::String &&value)
Reservation & WithRegion(Aws::String &&value)
void SetTags(const Aws::Map< Aws::String, Aws::String > &value)
void SetRegion(Aws::String &&value)
Reservation & WithArn(Aws::String &&value)
Definition Reservation.h:57
const Aws::String & GetOfferingId() const
void SetName(Aws::String &&value)
void SetCurrencyCode(Aws::String &&value)
Definition Reservation.h:78
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue