AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
DeleteReservationResult.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 DeleteReservationResult();
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 DeleteReservationResult& WithArn(const Aws::String& value) { SetArn(value); return *this;}
57 inline DeleteReservationResult& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;}
58 inline DeleteReservationResult& 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 DeleteReservationResult& 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 DeleteReservationResult& WithCurrencyCode(const Aws::String& value) { SetCurrencyCode(value); return *this;}
79 inline DeleteReservationResult& WithCurrencyCode(Aws::String&& value) { SetCurrencyCode(std::move(value)); return *this;}
80 inline DeleteReservationResult& 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 DeleteReservationResult& 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 DeleteReservationResult& 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 DeleteReservationResult& WithEnd(const Aws::String& value) { SetEnd(value); return *this;}
112 inline DeleteReservationResult& WithEnd(Aws::String&& value) { SetEnd(std::move(value)); return *this;}
113 inline DeleteReservationResult& 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 DeleteReservationResult& 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 DeleteReservationResult& WithName(const Aws::String& value) { SetName(value); return *this;}
134 inline DeleteReservationResult& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
135 inline DeleteReservationResult& 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 DeleteReservationResult& WithOfferingDescription(Aws::String&& value) { SetOfferingDescription(std::move(value)); return *this;}
149 inline DeleteReservationResult& 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 DeleteReservationResult& WithOfferingId(const Aws::String& value) { SetOfferingId(value); return *this;}
161 inline DeleteReservationResult& WithOfferingId(Aws::String&& value) { SetOfferingId(std::move(value)); return *this;}
162 inline DeleteReservationResult& 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 DeleteReservationResult& WithOfferingType(const OfferingType& value) { SetOfferingType(value); return *this;}
173 inline DeleteReservationResult& 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 DeleteReservationResult& WithRegion(const Aws::String& value) { SetRegion(value); return *this;}
185 inline DeleteReservationResult& WithRegion(Aws::String&& value) { SetRegion(std::move(value)); return *this;}
186 inline DeleteReservationResult& 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 DeleteReservationResult& 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 DeleteReservationResult& WithReservationId(const Aws::String& value) { SetReservationId(value); return *this;}
209 inline DeleteReservationResult& WithReservationId(Aws::String&& value) { SetReservationId(std::move(value)); return *this;}
210 inline DeleteReservationResult& 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 DeleteReservationResult& WithStart(const Aws::String& value) { SetStart(value); return *this;}
234 inline DeleteReservationResult& WithStart(Aws::String&& value) { SetStart(std::move(value)); return *this;}
235 inline DeleteReservationResult& 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 DeleteReservationResult& WithState(const ReservationState& value) { SetState(value); return *this;}
246 inline DeleteReservationResult& 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); }
256 inline DeleteReservationResult& WithTags(const Aws::Map<Aws::String, Aws::String>& value) { SetTags(value); return *this;}
257 inline DeleteReservationResult& WithTags(Aws::Map<Aws::String, Aws::String>&& value) { SetTags(std::move(value)); return *this;}
258 inline DeleteReservationResult& AddTags(const Aws::String& key, const Aws::String& value) { m_tags.emplace(key, value); return *this; }
259 inline DeleteReservationResult& AddTags(Aws::String&& key, const Aws::String& value) { m_tags.emplace(std::move(key), value); return *this; }
260 inline DeleteReservationResult& AddTags(const Aws::String& key, Aws::String&& value) { m_tags.emplace(key, std::move(value)); return *this; }
261 inline DeleteReservationResult& AddTags(Aws::String&& key, Aws::String&& value) { m_tags.emplace(std::move(key), std::move(value)); return *this; }
262 inline DeleteReservationResult& AddTags(const char* key, Aws::String&& value) { m_tags.emplace(key, std::move(value)); return *this; }
263 inline DeleteReservationResult& AddTags(Aws::String&& key, const char* value) { m_tags.emplace(std::move(key), value); return *this; }
264 inline DeleteReservationResult& 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 DeleteReservationResult& 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 DeleteReservationResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;}
283 inline DeleteReservationResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;}
284 inline DeleteReservationResult& 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
DeleteReservationResult & WithStart(const char *value)
DeleteReservationResult & WithName(Aws::String &&value)
DeleteReservationResult & WithOfferingType(const OfferingType &value)
DeleteReservationResult & WithResourceSpecification(const ReservationResourceSpecification &value)
void SetResourceSpecification(const ReservationResourceSpecification &value)
DeleteReservationResult & WithStart(const Aws::String &value)
DeleteReservationResult & WithRequestId(Aws::String &&value)
AWS_MEDIALIVE_API DeleteReservationResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
DeleteReservationResult & WithArn(const char *value)
DeleteReservationResult & WithRegion(const char *value)
DeleteReservationResult & WithState(const ReservationState &value)
void SetDurationUnits(OfferingDurationUnits &&value)
DeleteReservationResult & WithDuration(int value)
DeleteReservationResult & WithRequestId(const Aws::String &value)
DeleteReservationResult & WithOfferingDescription(Aws::String &&value)
void SetTags(Aws::Map< Aws::String, Aws::String > &&value)
DeleteReservationResult & WithRegion(const Aws::String &value)
DeleteReservationResult & WithOfferingDescription(const Aws::String &value)
DeleteReservationResult & WithCurrencyCode(const Aws::String &value)
void SetResourceSpecification(ReservationResourceSpecification &&value)
DeleteReservationResult & AddTags(Aws::String &&key, Aws::String &&value)
DeleteReservationResult & WithRenewalSettings(RenewalSettings &&value)
DeleteReservationResult & WithFixedPrice(double value)
DeleteReservationResult & WithOfferingId(const Aws::String &value)
DeleteReservationResult & WithName(const char *value)
AWS_MEDIALIVE_API DeleteReservationResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
DeleteReservationResult & WithRenewalSettings(const RenewalSettings &value)
void SetTags(const Aws::Map< Aws::String, Aws::String > &value)
DeleteReservationResult & AddTags(const Aws::String &key, const Aws::String &value)
void SetDurationUnits(const OfferingDurationUnits &value)
DeleteReservationResult & WithDurationUnits(OfferingDurationUnits &&value)
DeleteReservationResult & WithReservationId(const char *value)
DeleteReservationResult & WithEnd(Aws::String &&value)
DeleteReservationResult & AddTags(Aws::String &&key, const Aws::String &value)
DeleteReservationResult & AddTags(const char *key, Aws::String &&value)
DeleteReservationResult & WithEnd(const Aws::String &value)
DeleteReservationResult & WithTags(Aws::Map< Aws::String, Aws::String > &&value)
DeleteReservationResult & WithState(ReservationState &&value)
DeleteReservationResult & AddTags(Aws::String &&key, const char *value)
DeleteReservationResult & WithOfferingId(const char *value)
DeleteReservationResult & WithOfferingType(OfferingType &&value)
DeleteReservationResult & WithReservationId(const Aws::String &value)
const ReservationResourceSpecification & GetResourceSpecification() const
DeleteReservationResult & WithUsagePrice(double value)
DeleteReservationResult & WithEnd(const char *value)
DeleteReservationResult & WithRegion(Aws::String &&value)
DeleteReservationResult & WithArn(Aws::String &&value)
void SetRenewalSettings(const RenewalSettings &value)
DeleteReservationResult & WithResourceSpecification(ReservationResourceSpecification &&value)
const OfferingDurationUnits & GetDurationUnits() const
DeleteReservationResult & AddTags(const char *key, const char *value)
DeleteReservationResult & WithReservationId(Aws::String &&value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
DeleteReservationResult & WithDurationUnits(const OfferingDurationUnits &value)
DeleteReservationResult & WithName(const Aws::String &value)
DeleteReservationResult & WithRequestId(const char *value)
DeleteReservationResult & WithTags(const Aws::Map< Aws::String, Aws::String > &value)
DeleteReservationResult & WithArn(const Aws::String &value)
DeleteReservationResult & WithStart(Aws::String &&value)
DeleteReservationResult & WithCurrencyCode(const char *value)
DeleteReservationResult & WithCurrencyCode(Aws::String &&value)
DeleteReservationResult & AddTags(const Aws::String &key, Aws::String &&value)
DeleteReservationResult & WithOfferingDescription(const char *value)
DeleteReservationResult & WithOfferingId(Aws::String &&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