AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
DescribeReservationResult.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{
19template<typename RESULT_TYPE>
20class AmazonWebServiceResult;
21
22namespace Utils
23{
24namespace Json
25{
26 class JsonValue;
27} // namespace Json
28} // namespace Utils
29namespace MediaLive
30{
31namespace Model
32{
40 {
41 public:
42 AWS_MEDIALIVE_API DescribeReservationResult();
45
46
48
52 inline const Aws::String& GetArn() const{ return m_arn; }
53 inline void SetArn(const Aws::String& value) { m_arn = value; }
54 inline void SetArn(Aws::String&& value) { m_arn = std::move(value); }
55 inline void SetArn(const char* value) { m_arn.assign(value); }
56 inline DescribeReservationResult& WithArn(const Aws::String& value) { SetArn(value); return *this;}
57 inline DescribeReservationResult& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;}
58 inline DescribeReservationResult& WithArn(const char* value) { SetArn(value); return *this;}
60
62
65 inline int GetCount() const{ return m_count; }
66 inline void SetCount(int value) { m_count = value; }
67 inline DescribeReservationResult& WithCount(int value) { SetCount(value); return *this;}
69
71
74 inline const Aws::String& GetCurrencyCode() const{ return m_currencyCode; }
75 inline void SetCurrencyCode(const Aws::String& value) { m_currencyCode = value; }
76 inline void SetCurrencyCode(Aws::String&& value) { m_currencyCode = std::move(value); }
77 inline void SetCurrencyCode(const char* value) { m_currencyCode.assign(value); }
78 inline DescribeReservationResult& WithCurrencyCode(const Aws::String& value) { SetCurrencyCode(value); return *this;}
79 inline DescribeReservationResult& WithCurrencyCode(Aws::String&& value) { SetCurrencyCode(std::move(value)); return *this;}
80 inline DescribeReservationResult& WithCurrencyCode(const char* value) { SetCurrencyCode(value); return *this;}
82
84
87 inline int GetDuration() const{ return m_duration; }
88 inline void SetDuration(int value) { m_duration = value; }
89 inline DescribeReservationResult& WithDuration(int value) { SetDuration(value); return *this;}
91
93
96 inline const OfferingDurationUnits& GetDurationUnits() const{ return m_durationUnits; }
97 inline void SetDurationUnits(const OfferingDurationUnits& value) { m_durationUnits = value; }
98 inline void SetDurationUnits(OfferingDurationUnits&& value) { m_durationUnits = std::move(value); }
100 inline DescribeReservationResult& WithDurationUnits(OfferingDurationUnits&& value) { SetDurationUnits(std::move(value)); return *this;}
102
104
107 inline const Aws::String& GetEnd() const{ return m_end; }
108 inline void SetEnd(const Aws::String& value) { m_end = value; }
109 inline void SetEnd(Aws::String&& value) { m_end = std::move(value); }
110 inline void SetEnd(const char* value) { m_end.assign(value); }
111 inline DescribeReservationResult& WithEnd(const Aws::String& value) { SetEnd(value); return *this;}
112 inline DescribeReservationResult& WithEnd(Aws::String&& value) { SetEnd(std::move(value)); return *this;}
113 inline DescribeReservationResult& WithEnd(const char* value) { SetEnd(value); return *this;}
115
117
120 inline double GetFixedPrice() const{ return m_fixedPrice; }
121 inline void SetFixedPrice(double value) { m_fixedPrice = value; }
122 inline DescribeReservationResult& WithFixedPrice(double value) { SetFixedPrice(value); return *this;}
124
126
129 inline const Aws::String& GetName() const{ return m_name; }
130 inline void SetName(const Aws::String& value) { m_name = value; }
131 inline void SetName(Aws::String&& value) { m_name = std::move(value); }
132 inline void SetName(const char* value) { m_name.assign(value); }
133 inline DescribeReservationResult& WithName(const Aws::String& value) { SetName(value); return *this;}
134 inline DescribeReservationResult& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
135 inline DescribeReservationResult& WithName(const char* value) { SetName(value); return *this;}
137
139
143 inline const Aws::String& GetOfferingDescription() const{ return m_offeringDescription; }
144 inline void SetOfferingDescription(const Aws::String& value) { m_offeringDescription = value; }
145 inline void SetOfferingDescription(Aws::String&& value) { m_offeringDescription = std::move(value); }
146 inline void SetOfferingDescription(const char* value) { m_offeringDescription.assign(value); }
148 inline DescribeReservationResult& WithOfferingDescription(Aws::String&& value) { SetOfferingDescription(std::move(value)); return *this;}
149 inline DescribeReservationResult& WithOfferingDescription(const char* value) { SetOfferingDescription(value); return *this;}
151
153
156 inline const Aws::String& GetOfferingId() const{ return m_offeringId; }
157 inline void SetOfferingId(const Aws::String& value) { m_offeringId = value; }
158 inline void SetOfferingId(Aws::String&& value) { m_offeringId = std::move(value); }
159 inline void SetOfferingId(const char* value) { m_offeringId.assign(value); }
160 inline DescribeReservationResult& WithOfferingId(const Aws::String& value) { SetOfferingId(value); return *this;}
161 inline DescribeReservationResult& WithOfferingId(Aws::String&& value) { SetOfferingId(std::move(value)); return *this;}
162 inline DescribeReservationResult& WithOfferingId(const char* value) { SetOfferingId(value); return *this;}
164
166
169 inline const OfferingType& GetOfferingType() const{ return m_offeringType; }
170 inline void SetOfferingType(const OfferingType& value) { m_offeringType = value; }
171 inline void SetOfferingType(OfferingType&& value) { m_offeringType = std::move(value); }
172 inline DescribeReservationResult& WithOfferingType(const OfferingType& value) { SetOfferingType(value); return *this;}
173 inline DescribeReservationResult& WithOfferingType(OfferingType&& value) { SetOfferingType(std::move(value)); return *this;}
175
177
180 inline const Aws::String& GetRegion() const{ return m_region; }
181 inline void SetRegion(const Aws::String& value) { m_region = value; }
182 inline void SetRegion(Aws::String&& value) { m_region = std::move(value); }
183 inline void SetRegion(const char* value) { m_region.assign(value); }
184 inline DescribeReservationResult& WithRegion(const Aws::String& value) { SetRegion(value); return *this;}
185 inline DescribeReservationResult& WithRegion(Aws::String&& value) { SetRegion(std::move(value)); return *this;}
186 inline DescribeReservationResult& WithRegion(const char* value) { SetRegion(value); return *this;}
188
190
193 inline const RenewalSettings& GetRenewalSettings() const{ return m_renewalSettings; }
194 inline void SetRenewalSettings(const RenewalSettings& value) { m_renewalSettings = value; }
195 inline void SetRenewalSettings(RenewalSettings&& value) { m_renewalSettings = std::move(value); }
197 inline DescribeReservationResult& WithRenewalSettings(RenewalSettings&& value) { SetRenewalSettings(std::move(value)); return *this;}
199
201
204 inline const Aws::String& GetReservationId() const{ return m_reservationId; }
205 inline void SetReservationId(const Aws::String& value) { m_reservationId = value; }
206 inline void SetReservationId(Aws::String&& value) { m_reservationId = std::move(value); }
207 inline void SetReservationId(const char* value) { m_reservationId.assign(value); }
208 inline DescribeReservationResult& WithReservationId(const Aws::String& value) { SetReservationId(value); return *this;}
209 inline DescribeReservationResult& WithReservationId(Aws::String&& value) { SetReservationId(std::move(value)); return *this;}
210 inline DescribeReservationResult& WithReservationId(const char* value) { SetReservationId(value); return *this;}
212
214
217 inline const ReservationResourceSpecification& GetResourceSpecification() const{ return m_resourceSpecification; }
218 inline void SetResourceSpecification(const ReservationResourceSpecification& value) { m_resourceSpecification = value; }
219 inline void SetResourceSpecification(ReservationResourceSpecification&& value) { m_resourceSpecification = std::move(value); }
223
225
229 inline const Aws::String& GetStart() const{ return m_start; }
230 inline void SetStart(const Aws::String& value) { m_start = value; }
231 inline void SetStart(Aws::String&& value) { m_start = std::move(value); }
232 inline void SetStart(const char* value) { m_start.assign(value); }
233 inline DescribeReservationResult& WithStart(const Aws::String& value) { SetStart(value); return *this;}
234 inline DescribeReservationResult& WithStart(Aws::String&& value) { SetStart(std::move(value)); return *this;}
235 inline DescribeReservationResult& WithStart(const char* value) { SetStart(value); return *this;}
237
239
242 inline const ReservationState& GetState() const{ return m_state; }
243 inline void SetState(const ReservationState& value) { m_state = value; }
244 inline void SetState(ReservationState&& value) { m_state = std::move(value); }
245 inline DescribeReservationResult& WithState(const ReservationState& value) { SetState(value); return *this;}
246 inline DescribeReservationResult& WithState(ReservationState&& value) { SetState(std::move(value)); return *this;}
248
250
253 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const{ return m_tags; }
254 inline void SetTags(const Aws::Map<Aws::String, Aws::String>& value) { m_tags = value; }
255 inline void SetTags(Aws::Map<Aws::String, Aws::String>&& value) { m_tags = std::move(value); }
257 inline DescribeReservationResult& WithTags(Aws::Map<Aws::String, Aws::String>&& value) { SetTags(std::move(value)); return *this;}
258 inline DescribeReservationResult& AddTags(const Aws::String& key, const Aws::String& value) { m_tags.emplace(key, value); return *this; }
259 inline DescribeReservationResult& AddTags(Aws::String&& key, const Aws::String& value) { m_tags.emplace(std::move(key), value); return *this; }
260 inline DescribeReservationResult& AddTags(const Aws::String& key, Aws::String&& value) { m_tags.emplace(key, std::move(value)); return *this; }
261 inline DescribeReservationResult& AddTags(Aws::String&& key, Aws::String&& value) { m_tags.emplace(std::move(key), std::move(value)); return *this; }
262 inline DescribeReservationResult& AddTags(const char* key, Aws::String&& value) { m_tags.emplace(key, std::move(value)); return *this; }
263 inline DescribeReservationResult& AddTags(Aws::String&& key, const char* value) { m_tags.emplace(std::move(key), value); return *this; }
264 inline DescribeReservationResult& AddTags(const char* key, const char* value) { m_tags.emplace(key, value); return *this; }
266
268
271 inline double GetUsagePrice() const{ return m_usagePrice; }
272 inline void SetUsagePrice(double value) { m_usagePrice = value; }
273 inline DescribeReservationResult& WithUsagePrice(double value) { SetUsagePrice(value); return *this;}
275
277
278 inline const Aws::String& GetRequestId() const{ return m_requestId; }
279 inline void SetRequestId(const Aws::String& value) { m_requestId = value; }
280 inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); }
281 inline void SetRequestId(const char* value) { m_requestId.assign(value); }
282 inline DescribeReservationResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;}
283 inline DescribeReservationResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;}
284 inline DescribeReservationResult& WithRequestId(const char* value) { SetRequestId(value); return *this;}
286 private:
287
288 Aws::String m_arn;
289
290 int m_count;
291
292 Aws::String m_currencyCode;
293
294 int m_duration;
295
296 OfferingDurationUnits m_durationUnits;
297
298 Aws::String m_end;
299
300 double m_fixedPrice;
301
302 Aws::String m_name;
303
304 Aws::String m_offeringDescription;
305
306 Aws::String m_offeringId;
307
308 OfferingType m_offeringType;
309
310 Aws::String m_region;
311
312 RenewalSettings m_renewalSettings;
313
314 Aws::String m_reservationId;
315
316 ReservationResourceSpecification m_resourceSpecification;
317
318 Aws::String m_start;
319
320 ReservationState m_state;
321
323
324 double m_usagePrice;
325
326 Aws::String m_requestId;
327 };
328
329} // namespace Model
330} // namespace MediaLive
331} // namespace Aws
DescribeReservationResult & WithRequestId(const char *value)
DescribeReservationResult & WithStart(Aws::String &&value)
DescribeReservationResult & AddTags(const char *key, const char *value)
DescribeReservationResult & AddTags(const Aws::String &key, const Aws::String &value)
DescribeReservationResult & WithOfferingId(Aws::String &&value)
DescribeReservationResult & WithDurationUnits(OfferingDurationUnits &&value)
DescribeReservationResult & WithResourceSpecification(ReservationResourceSpecification &&value)
DescribeReservationResult & WithTags(const Aws::Map< Aws::String, Aws::String > &value)
void SetTags(const Aws::Map< Aws::String, Aws::String > &value)
DescribeReservationResult & WithEnd(const Aws::String &value)
DescribeReservationResult & WithRenewalSettings(const RenewalSettings &value)
DescribeReservationResult & WithRequestId(const Aws::String &value)
DescribeReservationResult & AddTags(Aws::String &&key, Aws::String &&value)
DescribeReservationResult & WithReservationId(const Aws::String &value)
DescribeReservationResult & WithOfferingDescription(const char *value)
DescribeReservationResult & WithUsagePrice(double value)
DescribeReservationResult & WithRequestId(Aws::String &&value)
DescribeReservationResult & AddTags(Aws::String &&key, const Aws::String &value)
DescribeReservationResult & AddTags(const Aws::String &key, Aws::String &&value)
DescribeReservationResult & WithReservationId(Aws::String &&value)
DescribeReservationResult & WithStart(const char *value)
DescribeReservationResult & WithRegion(const char *value)
DescribeReservationResult & WithCurrencyCode(const char *value)
void SetResourceSpecification(ReservationResourceSpecification &&value)
DescribeReservationResult & WithName(Aws::String &&value)
const ReservationResourceSpecification & GetResourceSpecification() const
DescribeReservationResult & WithName(const Aws::String &value)
DescribeReservationResult & AddTags(const char *key, Aws::String &&value)
DescribeReservationResult & WithOfferingId(const char *value)
DescribeReservationResult & WithDurationUnits(const OfferingDurationUnits &value)
void SetResourceSpecification(const ReservationResourceSpecification &value)
DescribeReservationResult & WithRenewalSettings(RenewalSettings &&value)
DescribeReservationResult & WithStart(const Aws::String &value)
DescribeReservationResult & WithEnd(Aws::String &&value)
DescribeReservationResult & WithEnd(const char *value)
DescribeReservationResult & WithRegion(Aws::String &&value)
void SetTags(Aws::Map< Aws::String, Aws::String > &&value)
DescribeReservationResult & WithCurrencyCode(Aws::String &&value)
DescribeReservationResult & WithState(ReservationState &&value)
DescribeReservationResult & WithOfferingType(const OfferingType &value)
DescribeReservationResult & WithResourceSpecification(const ReservationResourceSpecification &value)
DescribeReservationResult & WithDuration(int value)
DescribeReservationResult & WithOfferingId(const Aws::String &value)
DescribeReservationResult & WithOfferingType(OfferingType &&value)
DescribeReservationResult & WithCurrencyCode(const Aws::String &value)
DescribeReservationResult & WithRegion(const Aws::String &value)
DescribeReservationResult & WithReservationId(const char *value)
DescribeReservationResult & WithOfferingDescription(Aws::String &&value)
DescribeReservationResult & WithState(const ReservationState &value)
DescribeReservationResult & WithOfferingDescription(const Aws::String &value)
DescribeReservationResult & WithArn(const char *value)
void SetDurationUnits(const OfferingDurationUnits &value)
DescribeReservationResult & WithArn(const Aws::String &value)
DescribeReservationResult & WithArn(Aws::String &&value)
DescribeReservationResult & WithName(const char *value)
DescribeReservationResult & WithTags(Aws::Map< Aws::String, Aws::String > &&value)
DescribeReservationResult & AddTags(Aws::String &&key, const char *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)
const OfferingDurationUnits & GetDurationUnits() const
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