AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
DeleteReservationResult.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSMap.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/medialive/MediaLive_EXPORTS.h>
10#include <aws/medialive/model/OfferingDurationUnits.h>
11#include <aws/medialive/model/OfferingType.h>
12#include <aws/medialive/model/RenewalSettings.h>
13#include <aws/medialive/model/ReservationResourceSpecification.h>
14#include <aws/medialive/model/ReservationState.h>
15
16#include <utility>
17
18namespace Aws {
19template <typename RESULT_TYPE>
20class AmazonWebServiceResult;
21
22namespace Utils {
23namespace Json {
24class JsonValue;
25} // namespace Json
26} // namespace Utils
27namespace MediaLive {
28namespace Model {
36 public:
37 AWS_MEDIALIVE_API DeleteReservationResult() = default;
40
42
46 inline const Aws::String& GetArn() const { return m_arn; }
47 template <typename ArnT = Aws::String>
48 void SetArn(ArnT&& value) {
49 m_arnHasBeenSet = true;
50 m_arn = std::forward<ArnT>(value);
51 }
52 template <typename ArnT = Aws::String>
54 SetArn(std::forward<ArnT>(value));
55 return *this;
56 }
58
60
63 inline int GetCount() const { return m_count; }
64 inline void SetCount(int value) {
65 m_countHasBeenSet = true;
66 m_count = value;
67 }
69 SetCount(value);
70 return *this;
71 }
73
75
78 inline const Aws::String& GetCurrencyCode() const { return m_currencyCode; }
79 template <typename CurrencyCodeT = Aws::String>
80 void SetCurrencyCode(CurrencyCodeT&& value) {
81 m_currencyCodeHasBeenSet = true;
82 m_currencyCode = std::forward<CurrencyCodeT>(value);
83 }
84 template <typename CurrencyCodeT = Aws::String>
85 DeleteReservationResult& WithCurrencyCode(CurrencyCodeT&& value) {
86 SetCurrencyCode(std::forward<CurrencyCodeT>(value));
87 return *this;
88 }
90
92
95 inline int GetDuration() const { return m_duration; }
96 inline void SetDuration(int value) {
97 m_durationHasBeenSet = true;
98 m_duration = value;
99 }
101 SetDuration(value);
102 return *this;
103 }
105
107
110 inline OfferingDurationUnits GetDurationUnits() const { return m_durationUnits; }
112 m_durationUnitsHasBeenSet = true;
113 m_durationUnits = value;
114 }
116 SetDurationUnits(value);
117 return *this;
118 }
120
122
125 inline const Aws::String& GetEnd() const { return m_end; }
126 template <typename EndT = Aws::String>
127 void SetEnd(EndT&& value) {
128 m_endHasBeenSet = true;
129 m_end = std::forward<EndT>(value);
130 }
131 template <typename EndT = Aws::String>
133 SetEnd(std::forward<EndT>(value));
134 return *this;
135 }
137
139
142 inline double GetFixedPrice() const { return m_fixedPrice; }
143 inline void SetFixedPrice(double value) {
144 m_fixedPriceHasBeenSet = true;
145 m_fixedPrice = value;
146 }
148 SetFixedPrice(value);
149 return *this;
150 }
152
154
157 inline const Aws::String& GetName() const { return m_name; }
158 template <typename NameT = Aws::String>
159 void SetName(NameT&& value) {
160 m_nameHasBeenSet = true;
161 m_name = std::forward<NameT>(value);
162 }
163 template <typename NameT = Aws::String>
165 SetName(std::forward<NameT>(value));
166 return *this;
167 }
169
171
175 inline const Aws::String& GetOfferingDescription() const { return m_offeringDescription; }
176 template <typename OfferingDescriptionT = Aws::String>
177 void SetOfferingDescription(OfferingDescriptionT&& value) {
178 m_offeringDescriptionHasBeenSet = true;
179 m_offeringDescription = std::forward<OfferingDescriptionT>(value);
180 }
181 template <typename OfferingDescriptionT = Aws::String>
182 DeleteReservationResult& WithOfferingDescription(OfferingDescriptionT&& value) {
183 SetOfferingDescription(std::forward<OfferingDescriptionT>(value));
184 return *this;
185 }
187
189
192 inline const Aws::String& GetOfferingId() const { return m_offeringId; }
193 template <typename OfferingIdT = Aws::String>
194 void SetOfferingId(OfferingIdT&& value) {
195 m_offeringIdHasBeenSet = true;
196 m_offeringId = std::forward<OfferingIdT>(value);
197 }
198 template <typename OfferingIdT = Aws::String>
200 SetOfferingId(std::forward<OfferingIdT>(value));
201 return *this;
202 }
204
206
209 inline OfferingType GetOfferingType() const { return m_offeringType; }
210 inline void SetOfferingType(OfferingType value) {
211 m_offeringTypeHasBeenSet = true;
212 m_offeringType = value;
213 }
215 SetOfferingType(value);
216 return *this;
217 }
219
221
224 inline const Aws::String& GetRegion() const { return m_region; }
225 template <typename RegionT = Aws::String>
226 void SetRegion(RegionT&& value) {
227 m_regionHasBeenSet = true;
228 m_region = std::forward<RegionT>(value);
229 }
230 template <typename RegionT = Aws::String>
232 SetRegion(std::forward<RegionT>(value));
233 return *this;
234 }
236
238
241 inline const RenewalSettings& GetRenewalSettings() const { return m_renewalSettings; }
242 template <typename RenewalSettingsT = RenewalSettings>
243 void SetRenewalSettings(RenewalSettingsT&& value) {
244 m_renewalSettingsHasBeenSet = true;
245 m_renewalSettings = std::forward<RenewalSettingsT>(value);
246 }
247 template <typename RenewalSettingsT = RenewalSettings>
248 DeleteReservationResult& WithRenewalSettings(RenewalSettingsT&& value) {
249 SetRenewalSettings(std::forward<RenewalSettingsT>(value));
250 return *this;
251 }
253
255
258 inline const Aws::String& GetReservationId() const { return m_reservationId; }
259 template <typename ReservationIdT = Aws::String>
260 void SetReservationId(ReservationIdT&& value) {
261 m_reservationIdHasBeenSet = true;
262 m_reservationId = std::forward<ReservationIdT>(value);
263 }
264 template <typename ReservationIdT = Aws::String>
266 SetReservationId(std::forward<ReservationIdT>(value));
267 return *this;
268 }
270
272
275 inline const ReservationResourceSpecification& GetResourceSpecification() const { return m_resourceSpecification; }
276 template <typename ResourceSpecificationT = ReservationResourceSpecification>
277 void SetResourceSpecification(ResourceSpecificationT&& value) {
278 m_resourceSpecificationHasBeenSet = true;
279 m_resourceSpecification = std::forward<ResourceSpecificationT>(value);
280 }
281 template <typename ResourceSpecificationT = ReservationResourceSpecification>
282 DeleteReservationResult& WithResourceSpecification(ResourceSpecificationT&& value) {
283 SetResourceSpecification(std::forward<ResourceSpecificationT>(value));
284 return *this;
285 }
287
289
293 inline const Aws::String& GetStart() const { return m_start; }
294 template <typename StartT = Aws::String>
295 void SetStart(StartT&& value) {
296 m_startHasBeenSet = true;
297 m_start = std::forward<StartT>(value);
298 }
299 template <typename StartT = Aws::String>
301 SetStart(std::forward<StartT>(value));
302 return *this;
303 }
305
307
310 inline ReservationState GetState() const { return m_state; }
311 inline void SetState(ReservationState value) {
312 m_stateHasBeenSet = true;
313 m_state = value;
314 }
316 SetState(value);
317 return *this;
318 }
320
322
325 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
326 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
327 void SetTags(TagsT&& value) {
328 m_tagsHasBeenSet = true;
329 m_tags = std::forward<TagsT>(value);
330 }
331 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
333 SetTags(std::forward<TagsT>(value));
334 return *this;
335 }
336 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
337 DeleteReservationResult& AddTags(TagsKeyT&& key, TagsValueT&& value) {
338 m_tagsHasBeenSet = true;
339 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
340 return *this;
341 }
343
345
348 inline double GetUsagePrice() const { return m_usagePrice; }
349 inline void SetUsagePrice(double value) {
350 m_usagePriceHasBeenSet = true;
351 m_usagePrice = value;
352 }
354 SetUsagePrice(value);
355 return *this;
356 }
358
360
361 inline const Aws::String& GetRequestId() const { return m_requestId; }
362 template <typename RequestIdT = Aws::String>
363 void SetRequestId(RequestIdT&& value) {
364 m_requestIdHasBeenSet = true;
365 m_requestId = std::forward<RequestIdT>(value);
366 }
367 template <typename RequestIdT = Aws::String>
369 SetRequestId(std::forward<RequestIdT>(value));
370 return *this;
371 }
373 private:
374 Aws::String m_arn;
375
376 int m_count{0};
377
378 Aws::String m_currencyCode;
379
380 int m_duration{0};
381
383
384 Aws::String m_end;
385
386 double m_fixedPrice{0.0};
387
388 Aws::String m_name;
389
390 Aws::String m_offeringDescription;
391
392 Aws::String m_offeringId;
393
394 OfferingType m_offeringType{OfferingType::NOT_SET};
395
396 Aws::String m_region;
397
398 RenewalSettings m_renewalSettings;
399
400 Aws::String m_reservationId;
401
402 ReservationResourceSpecification m_resourceSpecification;
403
404 Aws::String m_start;
405
407
409
410 double m_usagePrice{0.0};
411
412 Aws::String m_requestId;
413 bool m_arnHasBeenSet = false;
414 bool m_countHasBeenSet = false;
415 bool m_currencyCodeHasBeenSet = false;
416 bool m_durationHasBeenSet = false;
417 bool m_durationUnitsHasBeenSet = false;
418 bool m_endHasBeenSet = false;
419 bool m_fixedPriceHasBeenSet = false;
420 bool m_nameHasBeenSet = false;
421 bool m_offeringDescriptionHasBeenSet = false;
422 bool m_offeringIdHasBeenSet = false;
423 bool m_offeringTypeHasBeenSet = false;
424 bool m_regionHasBeenSet = false;
425 bool m_renewalSettingsHasBeenSet = false;
426 bool m_reservationIdHasBeenSet = false;
427 bool m_resourceSpecificationHasBeenSet = false;
428 bool m_startHasBeenSet = false;
429 bool m_stateHasBeenSet = false;
430 bool m_tagsHasBeenSet = false;
431 bool m_usagePriceHasBeenSet = false;
432 bool m_requestIdHasBeenSet = false;
433};
434
435} // namespace Model
436} // namespace MediaLive
437} // namespace Aws
DeleteReservationResult & WithCurrencyCode(CurrencyCodeT &&value)
DeleteReservationResult & WithReservationId(ReservationIdT &&value)
DeleteReservationResult & WithOfferingId(OfferingIdT &&value)
DeleteReservationResult & AddTags(TagsKeyT &&key, TagsValueT &&value)
AWS_MEDIALIVE_API DeleteReservationResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
DeleteReservationResult & WithDuration(int value)
DeleteReservationResult & WithStart(StartT &&value)
DeleteReservationResult & WithName(NameT &&value)
DeleteReservationResult & WithDurationUnits(OfferingDurationUnits value)
DeleteReservationResult & WithFixedPrice(double value)
DeleteReservationResult & WithOfferingDescription(OfferingDescriptionT &&value)
AWS_MEDIALIVE_API DeleteReservationResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
DeleteReservationResult & WithResourceSpecification(ResourceSpecificationT &&value)
DeleteReservationResult & WithRenewalSettings(RenewalSettingsT &&value)
DeleteReservationResult & WithRegion(RegionT &&value)
AWS_MEDIALIVE_API DeleteReservationResult()=default
const ReservationResourceSpecification & GetResourceSpecification() const
DeleteReservationResult & WithRequestId(RequestIdT &&value)
DeleteReservationResult & WithOfferingType(OfferingType value)
DeleteReservationResult & WithArn(ArnT &&value)
DeleteReservationResult & WithUsagePrice(double value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
DeleteReservationResult & WithTags(TagsT &&value)
void SetOfferingDescription(OfferingDescriptionT &&value)
void SetResourceSpecification(ResourceSpecificationT &&value)
DeleteReservationResult & WithEnd(EndT &&value)
DeleteReservationResult & WithState(ReservationState value)
DeleteReservationResult & WithCount(int 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