AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
Offering.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/ReservationResourceSpecification.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21 class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace MediaLive
25{
26namespace Model
27{
28
35 {
36 public:
37 AWS_MEDIALIVE_API Offering();
38 AWS_MEDIALIVE_API Offering(Aws::Utils::Json::JsonView jsonValue);
39 AWS_MEDIALIVE_API Offering& operator=(Aws::Utils::Json::JsonView jsonValue);
40 AWS_MEDIALIVE_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
48 inline const Aws::String& GetArn() const{ return m_arn; }
49 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
50 inline void SetArn(const Aws::String& value) { m_arnHasBeenSet = true; m_arn = value; }
51 inline void SetArn(Aws::String&& value) { m_arnHasBeenSet = true; m_arn = std::move(value); }
52 inline void SetArn(const char* value) { m_arnHasBeenSet = true; m_arn.assign(value); }
53 inline Offering& WithArn(const Aws::String& value) { SetArn(value); return *this;}
54 inline Offering& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;}
55 inline Offering& WithArn(const char* value) { SetArn(value); return *this;}
57
59
62 inline const Aws::String& GetCurrencyCode() const{ return m_currencyCode; }
63 inline bool CurrencyCodeHasBeenSet() const { return m_currencyCodeHasBeenSet; }
64 inline void SetCurrencyCode(const Aws::String& value) { m_currencyCodeHasBeenSet = true; m_currencyCode = value; }
65 inline void SetCurrencyCode(Aws::String&& value) { m_currencyCodeHasBeenSet = true; m_currencyCode = std::move(value); }
66 inline void SetCurrencyCode(const char* value) { m_currencyCodeHasBeenSet = true; m_currencyCode.assign(value); }
67 inline Offering& WithCurrencyCode(const Aws::String& value) { SetCurrencyCode(value); return *this;}
68 inline Offering& WithCurrencyCode(Aws::String&& value) { SetCurrencyCode(std::move(value)); return *this;}
69 inline Offering& WithCurrencyCode(const char* value) { SetCurrencyCode(value); return *this;}
71
73
76 inline int GetDuration() const{ return m_duration; }
77 inline bool DurationHasBeenSet() const { return m_durationHasBeenSet; }
78 inline void SetDuration(int value) { m_durationHasBeenSet = true; m_duration = value; }
79 inline Offering& WithDuration(int value) { SetDuration(value); return *this;}
81
83
86 inline const OfferingDurationUnits& GetDurationUnits() const{ return m_durationUnits; }
87 inline bool DurationUnitsHasBeenSet() const { return m_durationUnitsHasBeenSet; }
88 inline void SetDurationUnits(const OfferingDurationUnits& value) { m_durationUnitsHasBeenSet = true; m_durationUnits = value; }
89 inline void SetDurationUnits(OfferingDurationUnits&& value) { m_durationUnitsHasBeenSet = true; m_durationUnits = std::move(value); }
90 inline Offering& WithDurationUnits(const OfferingDurationUnits& value) { SetDurationUnits(value); return *this;}
91 inline Offering& WithDurationUnits(OfferingDurationUnits&& value) { SetDurationUnits(std::move(value)); return *this;}
93
95
98 inline double GetFixedPrice() const{ return m_fixedPrice; }
99 inline bool FixedPriceHasBeenSet() const { return m_fixedPriceHasBeenSet; }
100 inline void SetFixedPrice(double value) { m_fixedPriceHasBeenSet = true; m_fixedPrice = value; }
101 inline Offering& WithFixedPrice(double value) { SetFixedPrice(value); return *this;}
103
105
109 inline const Aws::String& GetOfferingDescription() const{ return m_offeringDescription; }
110 inline bool OfferingDescriptionHasBeenSet() const { return m_offeringDescriptionHasBeenSet; }
111 inline void SetOfferingDescription(const Aws::String& value) { m_offeringDescriptionHasBeenSet = true; m_offeringDescription = value; }
112 inline void SetOfferingDescription(Aws::String&& value) { m_offeringDescriptionHasBeenSet = true; m_offeringDescription = std::move(value); }
113 inline void SetOfferingDescription(const char* value) { m_offeringDescriptionHasBeenSet = true; m_offeringDescription.assign(value); }
114 inline Offering& WithOfferingDescription(const Aws::String& value) { SetOfferingDescription(value); return *this;}
115 inline Offering& WithOfferingDescription(Aws::String&& value) { SetOfferingDescription(std::move(value)); return *this;}
116 inline Offering& WithOfferingDescription(const char* value) { SetOfferingDescription(value); return *this;}
118
120
123 inline const Aws::String& GetOfferingId() const{ return m_offeringId; }
124 inline bool OfferingIdHasBeenSet() const { return m_offeringIdHasBeenSet; }
125 inline void SetOfferingId(const Aws::String& value) { m_offeringIdHasBeenSet = true; m_offeringId = value; }
126 inline void SetOfferingId(Aws::String&& value) { m_offeringIdHasBeenSet = true; m_offeringId = std::move(value); }
127 inline void SetOfferingId(const char* value) { m_offeringIdHasBeenSet = true; m_offeringId.assign(value); }
128 inline Offering& WithOfferingId(const Aws::String& value) { SetOfferingId(value); return *this;}
129 inline Offering& WithOfferingId(Aws::String&& value) { SetOfferingId(std::move(value)); return *this;}
130 inline Offering& WithOfferingId(const char* value) { SetOfferingId(value); return *this;}
132
134
137 inline const OfferingType& GetOfferingType() const{ return m_offeringType; }
138 inline bool OfferingTypeHasBeenSet() const { return m_offeringTypeHasBeenSet; }
139 inline void SetOfferingType(const OfferingType& value) { m_offeringTypeHasBeenSet = true; m_offeringType = value; }
140 inline void SetOfferingType(OfferingType&& value) { m_offeringTypeHasBeenSet = true; m_offeringType = std::move(value); }
141 inline Offering& WithOfferingType(const OfferingType& value) { SetOfferingType(value); return *this;}
142 inline Offering& WithOfferingType(OfferingType&& value) { SetOfferingType(std::move(value)); return *this;}
144
146
149 inline const Aws::String& GetRegion() const{ return m_region; }
150 inline bool RegionHasBeenSet() const { return m_regionHasBeenSet; }
151 inline void SetRegion(const Aws::String& value) { m_regionHasBeenSet = true; m_region = value; }
152 inline void SetRegion(Aws::String&& value) { m_regionHasBeenSet = true; m_region = std::move(value); }
153 inline void SetRegion(const char* value) { m_regionHasBeenSet = true; m_region.assign(value); }
154 inline Offering& WithRegion(const Aws::String& value) { SetRegion(value); return *this;}
155 inline Offering& WithRegion(Aws::String&& value) { SetRegion(std::move(value)); return *this;}
156 inline Offering& WithRegion(const char* value) { SetRegion(value); return *this;}
158
160
163 inline const ReservationResourceSpecification& GetResourceSpecification() const{ return m_resourceSpecification; }
164 inline bool ResourceSpecificationHasBeenSet() const { return m_resourceSpecificationHasBeenSet; }
165 inline void SetResourceSpecification(const ReservationResourceSpecification& value) { m_resourceSpecificationHasBeenSet = true; m_resourceSpecification = value; }
166 inline void SetResourceSpecification(ReservationResourceSpecification&& value) { m_resourceSpecificationHasBeenSet = true; m_resourceSpecification = std::move(value); }
170
172
175 inline double GetUsagePrice() const{ return m_usagePrice; }
176 inline bool UsagePriceHasBeenSet() const { return m_usagePriceHasBeenSet; }
177 inline void SetUsagePrice(double value) { m_usagePriceHasBeenSet = true; m_usagePrice = value; }
178 inline Offering& WithUsagePrice(double value) { SetUsagePrice(value); return *this;}
180 private:
181
182 Aws::String m_arn;
183 bool m_arnHasBeenSet = false;
184
185 Aws::String m_currencyCode;
186 bool m_currencyCodeHasBeenSet = false;
187
188 int m_duration;
189 bool m_durationHasBeenSet = false;
190
191 OfferingDurationUnits m_durationUnits;
192 bool m_durationUnitsHasBeenSet = false;
193
194 double m_fixedPrice;
195 bool m_fixedPriceHasBeenSet = false;
196
197 Aws::String m_offeringDescription;
198 bool m_offeringDescriptionHasBeenSet = false;
199
200 Aws::String m_offeringId;
201 bool m_offeringIdHasBeenSet = false;
202
203 OfferingType m_offeringType;
204 bool m_offeringTypeHasBeenSet = false;
205
206 Aws::String m_region;
207 bool m_regionHasBeenSet = false;
208
209 ReservationResourceSpecification m_resourceSpecification;
210 bool m_resourceSpecificationHasBeenSet = false;
211
212 double m_usagePrice;
213 bool m_usagePriceHasBeenSet = false;
214 };
215
216} // namespace Model
217} // namespace MediaLive
218} // namespace Aws
const Aws::String & GetOfferingId() const
Definition Offering.h:123
Offering & WithOfferingType(const OfferingType &value)
Definition Offering.h:141
void SetRegion(const char *value)
Definition Offering.h:153
bool FixedPriceHasBeenSet() const
Definition Offering.h:99
void SetCurrencyCode(Aws::String &&value)
Definition Offering.h:65
void SetDuration(int value)
Definition Offering.h:78
void SetOfferingId(Aws::String &&value)
Definition Offering.h:126
bool OfferingDescriptionHasBeenSet() const
Definition Offering.h:110
const Aws::String & GetOfferingDescription() const
Definition Offering.h:109
void SetRegion(const Aws::String &value)
Definition Offering.h:151
Offering & WithArn(const Aws::String &value)
Definition Offering.h:53
Offering & WithOfferingDescription(const Aws::String &value)
Definition Offering.h:114
Offering & WithOfferingId(Aws::String &&value)
Definition Offering.h:129
Offering & WithOfferingId(const Aws::String &value)
Definition Offering.h:128
bool CurrencyCodeHasBeenSet() const
Definition Offering.h:63
Offering & WithResourceSpecification(const ReservationResourceSpecification &value)
Definition Offering.h:167
void SetOfferingId(const Aws::String &value)
Definition Offering.h:125
void SetDurationUnits(OfferingDurationUnits &&value)
Definition Offering.h:89
Offering & WithOfferingDescription(Aws::String &&value)
Definition Offering.h:115
Offering & WithOfferingType(OfferingType &&value)
Definition Offering.h:142
AWS_MEDIALIVE_API Offering & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetCurrencyCode(const Aws::String &value)
Definition Offering.h:64
void SetUsagePrice(double value)
Definition Offering.h:177
Offering & WithArn(const char *value)
Definition Offering.h:55
const ReservationResourceSpecification & GetResourceSpecification() const
Definition Offering.h:163
void SetOfferingDescription(const Aws::String &value)
Definition Offering.h:111
void SetResourceSpecification(ReservationResourceSpecification &&value)
Definition Offering.h:166
Offering & WithRegion(Aws::String &&value)
Definition Offering.h:155
void SetCurrencyCode(const char *value)
Definition Offering.h:66
Offering & WithUsagePrice(double value)
Definition Offering.h:178
AWS_MEDIALIVE_API Offering(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetRegion() const
Definition Offering.h:149
Offering & WithDuration(int value)
Definition Offering.h:79
void SetOfferingType(OfferingType &&value)
Definition Offering.h:140
void SetArn(Aws::String &&value)
Definition Offering.h:51
Offering & WithRegion(const Aws::String &value)
Definition Offering.h:154
const Aws::String & GetArn() const
Definition Offering.h:48
bool ResourceSpecificationHasBeenSet() const
Definition Offering.h:164
const OfferingType & GetOfferingType() const
Definition Offering.h:137
bool OfferingTypeHasBeenSet() const
Definition Offering.h:138
Offering & WithArn(Aws::String &&value)
Definition Offering.h:54
AWS_MEDIALIVE_API Offering()
void SetFixedPrice(double value)
Definition Offering.h:100
void SetArn(const Aws::String &value)
Definition Offering.h:50
Offering & WithResourceSpecification(ReservationResourceSpecification &&value)
Definition Offering.h:168
Offering & WithOfferingDescription(const char *value)
Definition Offering.h:116
Offering & WithCurrencyCode(const Aws::String &value)
Definition Offering.h:67
void SetRegion(Aws::String &&value)
Definition Offering.h:152
void SetOfferingDescription(const char *value)
Definition Offering.h:113
Offering & WithRegion(const char *value)
Definition Offering.h:156
Offering & WithFixedPrice(double value)
Definition Offering.h:101
const OfferingDurationUnits & GetDurationUnits() const
Definition Offering.h:86
Offering & WithCurrencyCode(const char *value)
Definition Offering.h:69
void SetOfferingId(const char *value)
Definition Offering.h:127
void SetOfferingType(const OfferingType &value)
Definition Offering.h:139
void SetArn(const char *value)
Definition Offering.h:52
void SetDurationUnits(const OfferingDurationUnits &value)
Definition Offering.h:88
Offering & WithDurationUnits(OfferingDurationUnits &&value)
Definition Offering.h:91
Offering & WithOfferingId(const char *value)
Definition Offering.h:130
void SetResourceSpecification(const ReservationResourceSpecification &value)
Definition Offering.h:165
void SetOfferingDescription(Aws::String &&value)
Definition Offering.h:112
Offering & WithCurrencyCode(Aws::String &&value)
Definition Offering.h:68
bool DurationUnitsHasBeenSet() const
Definition Offering.h:87
AWS_MEDIALIVE_API Aws::Utils::Json::JsonValue Jsonize() const
Offering & WithDurationUnits(const OfferingDurationUnits &value)
Definition Offering.h:90
const Aws::String & GetCurrencyCode() const
Definition Offering.h:62
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue