AWS SDK for C++

AWS SDK for C++ Version 1.11.762

Loading...
Searching...
No Matches
DescribeReservationResult.h
1
6#pragma once
7#include <aws/core/http/HttpResponse.h>
8#include <aws/core/utils/memory/stl/AWSMap.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/medialive/MediaLive_EXPORTS.h>
11#include <aws/medialive/model/OfferingDurationUnits.h>
12#include <aws/medialive/model/OfferingType.h>
13#include <aws/medialive/model/RenewalSettings.h>
14#include <aws/medialive/model/ReservationResourceSpecification.h>
15#include <aws/medialive/model/ReservationState.h>
16
17#include <utility>
18
19namespace Aws {
20template <typename RESULT_TYPE>
21class AmazonWebServiceResult;
22
23namespace Utils {
24namespace Json {
25class JsonValue;
26} // namespace Json
27} // namespace Utils
28namespace MediaLive {
29namespace Model {
37 public:
38 AWS_MEDIALIVE_API DescribeReservationResult() = default;
41
43
47 inline const Aws::String& GetArn() const { return m_arn; }
48 template <typename ArnT = Aws::String>
49 void SetArn(ArnT&& value) {
50 m_arnHasBeenSet = true;
51 m_arn = std::forward<ArnT>(value);
52 }
53 template <typename ArnT = Aws::String>
55 SetArn(std::forward<ArnT>(value));
56 return *this;
57 }
59
61
64 inline int GetCount() const { return m_count; }
65 inline void SetCount(int value) {
66 m_countHasBeenSet = true;
67 m_count = value;
68 }
70 SetCount(value);
71 return *this;
72 }
74
76
79 inline const Aws::String& GetCurrencyCode() const { return m_currencyCode; }
80 template <typename CurrencyCodeT = Aws::String>
81 void SetCurrencyCode(CurrencyCodeT&& value) {
82 m_currencyCodeHasBeenSet = true;
83 m_currencyCode = std::forward<CurrencyCodeT>(value);
84 }
85 template <typename CurrencyCodeT = Aws::String>
87 SetCurrencyCode(std::forward<CurrencyCodeT>(value));
88 return *this;
89 }
91
93
96 inline int GetDuration() const { return m_duration; }
97 inline void SetDuration(int value) {
98 m_durationHasBeenSet = true;
99 m_duration = value;
100 }
102 SetDuration(value);
103 return *this;
104 }
106
108
111 inline OfferingDurationUnits GetDurationUnits() const { return m_durationUnits; }
113 m_durationUnitsHasBeenSet = true;
114 m_durationUnits = value;
115 }
117 SetDurationUnits(value);
118 return *this;
119 }
121
123
126 inline const Aws::String& GetEnd() const { return m_end; }
127 template <typename EndT = Aws::String>
128 void SetEnd(EndT&& value) {
129 m_endHasBeenSet = true;
130 m_end = std::forward<EndT>(value);
131 }
132 template <typename EndT = Aws::String>
134 SetEnd(std::forward<EndT>(value));
135 return *this;
136 }
138
140
143 inline double GetFixedPrice() const { return m_fixedPrice; }
144 inline void SetFixedPrice(double value) {
145 m_fixedPriceHasBeenSet = true;
146 m_fixedPrice = value;
147 }
149 SetFixedPrice(value);
150 return *this;
151 }
153
155
158 inline const Aws::String& GetName() const { return m_name; }
159 template <typename NameT = Aws::String>
160 void SetName(NameT&& value) {
161 m_nameHasBeenSet = true;
162 m_name = std::forward<NameT>(value);
163 }
164 template <typename NameT = Aws::String>
166 SetName(std::forward<NameT>(value));
167 return *this;
168 }
170
172
176 inline const Aws::String& GetOfferingDescription() const { return m_offeringDescription; }
177 template <typename OfferingDescriptionT = Aws::String>
178 void SetOfferingDescription(OfferingDescriptionT&& value) {
179 m_offeringDescriptionHasBeenSet = true;
180 m_offeringDescription = std::forward<OfferingDescriptionT>(value);
181 }
182 template <typename OfferingDescriptionT = Aws::String>
183 DescribeReservationResult& WithOfferingDescription(OfferingDescriptionT&& value) {
184 SetOfferingDescription(std::forward<OfferingDescriptionT>(value));
185 return *this;
186 }
188
190
193 inline const Aws::String& GetOfferingId() const { return m_offeringId; }
194 template <typename OfferingIdT = Aws::String>
195 void SetOfferingId(OfferingIdT&& value) {
196 m_offeringIdHasBeenSet = true;
197 m_offeringId = std::forward<OfferingIdT>(value);
198 }
199 template <typename OfferingIdT = Aws::String>
201 SetOfferingId(std::forward<OfferingIdT>(value));
202 return *this;
203 }
205
207
210 inline OfferingType GetOfferingType() const { return m_offeringType; }
211 inline void SetOfferingType(OfferingType value) {
212 m_offeringTypeHasBeenSet = true;
213 m_offeringType = value;
214 }
216 SetOfferingType(value);
217 return *this;
218 }
220
222
225 inline const Aws::String& GetRegion() const { return m_region; }
226 template <typename RegionT = Aws::String>
227 void SetRegion(RegionT&& value) {
228 m_regionHasBeenSet = true;
229 m_region = std::forward<RegionT>(value);
230 }
231 template <typename RegionT = Aws::String>
233 SetRegion(std::forward<RegionT>(value));
234 return *this;
235 }
237
239
242 inline const RenewalSettings& GetRenewalSettings() const { return m_renewalSettings; }
243 template <typename RenewalSettingsT = RenewalSettings>
244 void SetRenewalSettings(RenewalSettingsT&& value) {
245 m_renewalSettingsHasBeenSet = true;
246 m_renewalSettings = std::forward<RenewalSettingsT>(value);
247 }
248 template <typename RenewalSettingsT = RenewalSettings>
250 SetRenewalSettings(std::forward<RenewalSettingsT>(value));
251 return *this;
252 }
254
256
259 inline const Aws::String& GetReservationId() const { return m_reservationId; }
260 template <typename ReservationIdT = Aws::String>
261 void SetReservationId(ReservationIdT&& value) {
262 m_reservationIdHasBeenSet = true;
263 m_reservationId = std::forward<ReservationIdT>(value);
264 }
265 template <typename ReservationIdT = Aws::String>
267 SetReservationId(std::forward<ReservationIdT>(value));
268 return *this;
269 }
271
273
276 inline const ReservationResourceSpecification& GetResourceSpecification() const { return m_resourceSpecification; }
277 template <typename ResourceSpecificationT = ReservationResourceSpecification>
278 void SetResourceSpecification(ResourceSpecificationT&& value) {
279 m_resourceSpecificationHasBeenSet = true;
280 m_resourceSpecification = std::forward<ResourceSpecificationT>(value);
281 }
282 template <typename ResourceSpecificationT = ReservationResourceSpecification>
283 DescribeReservationResult& WithResourceSpecification(ResourceSpecificationT&& value) {
284 SetResourceSpecification(std::forward<ResourceSpecificationT>(value));
285 return *this;
286 }
288
290
294 inline const Aws::String& GetStart() const { return m_start; }
295 template <typename StartT = Aws::String>
296 void SetStart(StartT&& value) {
297 m_startHasBeenSet = true;
298 m_start = std::forward<StartT>(value);
299 }
300 template <typename StartT = Aws::String>
302 SetStart(std::forward<StartT>(value));
303 return *this;
304 }
306
308
311 inline ReservationState GetState() const { return m_state; }
312 inline void SetState(ReservationState value) {
313 m_stateHasBeenSet = true;
314 m_state = value;
315 }
317 SetState(value);
318 return *this;
319 }
321
323
326 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
327 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
328 void SetTags(TagsT&& value) {
329 m_tagsHasBeenSet = true;
330 m_tags = std::forward<TagsT>(value);
331 }
332 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
334 SetTags(std::forward<TagsT>(value));
335 return *this;
336 }
337 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
338 DescribeReservationResult& AddTags(TagsKeyT&& key, TagsValueT&& value) {
339 m_tagsHasBeenSet = true;
340 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
341 return *this;
342 }
344
346
349 inline double GetUsagePrice() const { return m_usagePrice; }
350 inline void SetUsagePrice(double value) {
351 m_usagePriceHasBeenSet = true;
352 m_usagePrice = value;
353 }
355 SetUsagePrice(value);
356 return *this;
357 }
359
361
362 inline const Aws::String& GetRequestId() const { return m_requestId; }
363 template <typename RequestIdT = Aws::String>
364 void SetRequestId(RequestIdT&& value) {
365 m_requestIdHasBeenSet = true;
366 m_requestId = std::forward<RequestIdT>(value);
367 }
368 template <typename RequestIdT = Aws::String>
370 SetRequestId(std::forward<RequestIdT>(value));
371 return *this;
372 }
374 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
375
376 private:
377 Aws::String m_arn;
378
379 int m_count{0};
380
381 Aws::String m_currencyCode;
382
383 int m_duration{0};
384
386
387 Aws::String m_end;
388
389 double m_fixedPrice{0.0};
390
391 Aws::String m_name;
392
393 Aws::String m_offeringDescription;
394
395 Aws::String m_offeringId;
396
397 OfferingType m_offeringType{OfferingType::NOT_SET};
398
399 Aws::String m_region;
400
401 RenewalSettings m_renewalSettings;
402
403 Aws::String m_reservationId;
404
405 ReservationResourceSpecification m_resourceSpecification;
406
407 Aws::String m_start;
408
410
412
413 double m_usagePrice{0.0};
414
415 Aws::String m_requestId;
416 Aws::Http::HttpResponseCode m_HttpResponseCode;
417 bool m_arnHasBeenSet = false;
418 bool m_countHasBeenSet = false;
419 bool m_currencyCodeHasBeenSet = false;
420 bool m_durationHasBeenSet = false;
421 bool m_durationUnitsHasBeenSet = false;
422 bool m_endHasBeenSet = false;
423 bool m_fixedPriceHasBeenSet = false;
424 bool m_nameHasBeenSet = false;
425 bool m_offeringDescriptionHasBeenSet = false;
426 bool m_offeringIdHasBeenSet = false;
427 bool m_offeringTypeHasBeenSet = false;
428 bool m_regionHasBeenSet = false;
429 bool m_renewalSettingsHasBeenSet = false;
430 bool m_reservationIdHasBeenSet = false;
431 bool m_resourceSpecificationHasBeenSet = false;
432 bool m_startHasBeenSet = false;
433 bool m_stateHasBeenSet = false;
434 bool m_tagsHasBeenSet = false;
435 bool m_usagePriceHasBeenSet = false;
436 bool m_requestIdHasBeenSet = false;
437};
438
439} // namespace Model
440} // namespace MediaLive
441} // namespace Aws
DescribeReservationResult & WithArn(ArnT &&value)
DescribeReservationResult & WithEnd(EndT &&value)
DescribeReservationResult & WithResourceSpecification(ResourceSpecificationT &&value)
DescribeReservationResult & AddTags(TagsKeyT &&key, TagsValueT &&value)
DescribeReservationResult & WithOfferingId(OfferingIdT &&value)
DescribeReservationResult & WithRegion(RegionT &&value)
DescribeReservationResult & WithName(NameT &&value)
DescribeReservationResult & WithUsagePrice(double value)
AWS_MEDIALIVE_API DescribeReservationResult()=default
DescribeReservationResult & WithRenewalSettings(RenewalSettingsT &&value)
const ReservationResourceSpecification & GetResourceSpecification() const
DescribeReservationResult & WithOfferingDescription(OfferingDescriptionT &&value)
void SetResourceSpecification(ResourceSpecificationT &&value)
DescribeReservationResult & WithReservationId(ReservationIdT &&value)
DescribeReservationResult & WithStart(StartT &&value)
DescribeReservationResult & WithDuration(int value)
DescribeReservationResult & WithDurationUnits(OfferingDurationUnits value)
DescribeReservationResult & WithCurrencyCode(CurrencyCodeT &&value)
DescribeReservationResult & WithRequestId(RequestIdT &&value)
DescribeReservationResult & WithState(ReservationState value)
DescribeReservationResult & WithTags(TagsT &&value)
DescribeReservationResult & WithOfferingType(OfferingType value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
AWS_MEDIALIVE_API DescribeReservationResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
AWS_MEDIALIVE_API DescribeReservationResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
DescribeReservationResult & WithFixedPrice(double value)
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