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/mediaconnect/MediaConnect_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/mediaconnect/model/DurationUnits.h>
10#include <aws/mediaconnect/model/PriceUnits.h>
11#include <aws/mediaconnect/model/ResourceSpecification.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 MediaConnect
25{
26namespace Model
27{
28
36 {
37 public:
38 AWS_MEDIACONNECT_API Offering();
39 AWS_MEDIACONNECT_API Offering(Aws::Utils::Json::JsonView jsonValue);
40 AWS_MEDIACONNECT_API Offering& operator=(Aws::Utils::Json::JsonView jsonValue);
41 AWS_MEDIACONNECT_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
49 inline const Aws::String& GetCurrencyCode() const{ return m_currencyCode; }
50 inline bool CurrencyCodeHasBeenSet() const { return m_currencyCodeHasBeenSet; }
51 inline void SetCurrencyCode(const Aws::String& value) { m_currencyCodeHasBeenSet = true; m_currencyCode = value; }
52 inline void SetCurrencyCode(Aws::String&& value) { m_currencyCodeHasBeenSet = true; m_currencyCode = std::move(value); }
53 inline void SetCurrencyCode(const char* value) { m_currencyCodeHasBeenSet = true; m_currencyCode.assign(value); }
54 inline Offering& WithCurrencyCode(const Aws::String& value) { SetCurrencyCode(value); return *this;}
55 inline Offering& WithCurrencyCode(Aws::String&& value) { SetCurrencyCode(std::move(value)); return *this;}
56 inline Offering& WithCurrencyCode(const char* value) { SetCurrencyCode(value); return *this;}
58
60
63 inline int GetDuration() const{ return m_duration; }
64 inline bool DurationHasBeenSet() const { return m_durationHasBeenSet; }
65 inline void SetDuration(int value) { m_durationHasBeenSet = true; m_duration = value; }
66 inline Offering& WithDuration(int value) { SetDuration(value); return *this;}
68
70
73 inline const DurationUnits& GetDurationUnits() const{ return m_durationUnits; }
74 inline bool DurationUnitsHasBeenSet() const { return m_durationUnitsHasBeenSet; }
75 inline void SetDurationUnits(const DurationUnits& value) { m_durationUnitsHasBeenSet = true; m_durationUnits = value; }
76 inline void SetDurationUnits(DurationUnits&& value) { m_durationUnitsHasBeenSet = true; m_durationUnits = std::move(value); }
77 inline Offering& WithDurationUnits(const DurationUnits& value) { SetDurationUnits(value); return *this;}
78 inline Offering& WithDurationUnits(DurationUnits&& value) { SetDurationUnits(std::move(value)); return *this;}
80
82
85 inline const Aws::String& GetOfferingArn() const{ return m_offeringArn; }
86 inline bool OfferingArnHasBeenSet() const { return m_offeringArnHasBeenSet; }
87 inline void SetOfferingArn(const Aws::String& value) { m_offeringArnHasBeenSet = true; m_offeringArn = value; }
88 inline void SetOfferingArn(Aws::String&& value) { m_offeringArnHasBeenSet = true; m_offeringArn = std::move(value); }
89 inline void SetOfferingArn(const char* value) { m_offeringArnHasBeenSet = true; m_offeringArn.assign(value); }
90 inline Offering& WithOfferingArn(const Aws::String& value) { SetOfferingArn(value); return *this;}
91 inline Offering& WithOfferingArn(Aws::String&& value) { SetOfferingArn(std::move(value)); return *this;}
92 inline Offering& WithOfferingArn(const char* value) { SetOfferingArn(value); return *this;}
94
96
99 inline const Aws::String& GetOfferingDescription() const{ return m_offeringDescription; }
100 inline bool OfferingDescriptionHasBeenSet() const { return m_offeringDescriptionHasBeenSet; }
101 inline void SetOfferingDescription(const Aws::String& value) { m_offeringDescriptionHasBeenSet = true; m_offeringDescription = value; }
102 inline void SetOfferingDescription(Aws::String&& value) { m_offeringDescriptionHasBeenSet = true; m_offeringDescription = std::move(value); }
103 inline void SetOfferingDescription(const char* value) { m_offeringDescriptionHasBeenSet = true; m_offeringDescription.assign(value); }
104 inline Offering& WithOfferingDescription(const Aws::String& value) { SetOfferingDescription(value); return *this;}
105 inline Offering& WithOfferingDescription(Aws::String&& value) { SetOfferingDescription(std::move(value)); return *this;}
106 inline Offering& WithOfferingDescription(const char* value) { SetOfferingDescription(value); return *this;}
108
110
114 inline const Aws::String& GetPricePerUnit() const{ return m_pricePerUnit; }
115 inline bool PricePerUnitHasBeenSet() const { return m_pricePerUnitHasBeenSet; }
116 inline void SetPricePerUnit(const Aws::String& value) { m_pricePerUnitHasBeenSet = true; m_pricePerUnit = value; }
117 inline void SetPricePerUnit(Aws::String&& value) { m_pricePerUnitHasBeenSet = true; m_pricePerUnit = std::move(value); }
118 inline void SetPricePerUnit(const char* value) { m_pricePerUnitHasBeenSet = true; m_pricePerUnit.assign(value); }
119 inline Offering& WithPricePerUnit(const Aws::String& value) { SetPricePerUnit(value); return *this;}
120 inline Offering& WithPricePerUnit(Aws::String&& value) { SetPricePerUnit(std::move(value)); return *this;}
121 inline Offering& WithPricePerUnit(const char* value) { SetPricePerUnit(value); return *this;}
123
125
129 inline const PriceUnits& GetPriceUnits() const{ return m_priceUnits; }
130 inline bool PriceUnitsHasBeenSet() const { return m_priceUnitsHasBeenSet; }
131 inline void SetPriceUnits(const PriceUnits& value) { m_priceUnitsHasBeenSet = true; m_priceUnits = value; }
132 inline void SetPriceUnits(PriceUnits&& value) { m_priceUnitsHasBeenSet = true; m_priceUnits = std::move(value); }
133 inline Offering& WithPriceUnits(const PriceUnits& value) { SetPriceUnits(value); return *this;}
134 inline Offering& WithPriceUnits(PriceUnits&& value) { SetPriceUnits(std::move(value)); return *this;}
136
138
142 inline const ResourceSpecification& GetResourceSpecification() const{ return m_resourceSpecification; }
143 inline bool ResourceSpecificationHasBeenSet() const { return m_resourceSpecificationHasBeenSet; }
144 inline void SetResourceSpecification(const ResourceSpecification& value) { m_resourceSpecificationHasBeenSet = true; m_resourceSpecification = value; }
145 inline void SetResourceSpecification(ResourceSpecification&& value) { m_resourceSpecificationHasBeenSet = true; m_resourceSpecification = std::move(value); }
147 inline Offering& WithResourceSpecification(ResourceSpecification&& value) { SetResourceSpecification(std::move(value)); return *this;}
149 private:
150
151 Aws::String m_currencyCode;
152 bool m_currencyCodeHasBeenSet = false;
153
154 int m_duration;
155 bool m_durationHasBeenSet = false;
156
157 DurationUnits m_durationUnits;
158 bool m_durationUnitsHasBeenSet = false;
159
160 Aws::String m_offeringArn;
161 bool m_offeringArnHasBeenSet = false;
162
163 Aws::String m_offeringDescription;
164 bool m_offeringDescriptionHasBeenSet = false;
165
166 Aws::String m_pricePerUnit;
167 bool m_pricePerUnitHasBeenSet = false;
168
169 PriceUnits m_priceUnits;
170 bool m_priceUnitsHasBeenSet = false;
171
172 ResourceSpecification m_resourceSpecification;
173 bool m_resourceSpecificationHasBeenSet = false;
174 };
175
176} // namespace Model
177} // namespace MediaConnect
178} // namespace Aws
void SetCurrencyCode(const char *value)
Definition Offering.h:53
void SetDurationUnits(const DurationUnits &value)
Definition Offering.h:75
Offering & WithResourceSpecification(const ResourceSpecification &value)
Definition Offering.h:146
void SetOfferingArn(const Aws::String &value)
Definition Offering.h:87
Offering & WithPriceUnits(PriceUnits &&value)
Definition Offering.h:134
void SetPricePerUnit(const Aws::String &value)
Definition Offering.h:116
Offering & WithCurrencyCode(const char *value)
Definition Offering.h:56
Offering & WithPriceUnits(const PriceUnits &value)
Definition Offering.h:133
bool ResourceSpecificationHasBeenSet() const
Definition Offering.h:143
AWS_MEDIACONNECT_API Offering & operator=(Aws::Utils::Json::JsonView jsonValue)
bool OfferingDescriptionHasBeenSet() const
Definition Offering.h:100
void SetPriceUnits(PriceUnits &&value)
Definition Offering.h:132
Offering & WithPricePerUnit(const Aws::String &value)
Definition Offering.h:119
const Aws::String & GetCurrencyCode() const
Definition Offering.h:49
void SetResourceSpecification(const ResourceSpecification &value)
Definition Offering.h:144
Offering & WithPricePerUnit(const char *value)
Definition Offering.h:121
Offering & WithOfferingDescription(Aws::String &&value)
Definition Offering.h:105
AWS_MEDIACONNECT_API Offering(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetPricePerUnit() const
Definition Offering.h:114
Offering & WithOfferingArn(const Aws::String &value)
Definition Offering.h:90
Offering & WithCurrencyCode(const Aws::String &value)
Definition Offering.h:54
void SetPriceUnits(const PriceUnits &value)
Definition Offering.h:131
void SetPricePerUnit(const char *value)
Definition Offering.h:118
const Aws::String & GetOfferingArn() const
Definition Offering.h:85
Offering & WithPricePerUnit(Aws::String &&value)
Definition Offering.h:120
Offering & WithOfferingDescription(const Aws::String &value)
Definition Offering.h:104
void SetCurrencyCode(Aws::String &&value)
Definition Offering.h:52
Offering & WithDurationUnits(DurationUnits &&value)
Definition Offering.h:78
AWS_MEDIACONNECT_API Aws::Utils::Json::JsonValue Jsonize() const
const DurationUnits & GetDurationUnits() const
Definition Offering.h:73
const PriceUnits & GetPriceUnits() const
Definition Offering.h:129
Offering & WithOfferingArn(Aws::String &&value)
Definition Offering.h:91
AWS_MEDIACONNECT_API Offering()
void SetPricePerUnit(Aws::String &&value)
Definition Offering.h:117
Offering & WithOfferingArn(const char *value)
Definition Offering.h:92
Offering & WithOfferingDescription(const char *value)
Definition Offering.h:106
void SetDurationUnits(DurationUnits &&value)
Definition Offering.h:76
void SetOfferingDescription(const Aws::String &value)
Definition Offering.h:101
Offering & WithDuration(int value)
Definition Offering.h:66
void SetOfferingArn(const char *value)
Definition Offering.h:89
void SetResourceSpecification(ResourceSpecification &&value)
Definition Offering.h:145
void SetOfferingArn(Aws::String &&value)
Definition Offering.h:88
Offering & WithCurrencyCode(Aws::String &&value)
Definition Offering.h:55
Offering & WithResourceSpecification(ResourceSpecification &&value)
Definition Offering.h:147
void SetOfferingDescription(const char *value)
Definition Offering.h:103
Offering & WithDurationUnits(const DurationUnits &value)
Definition Offering.h:77
const ResourceSpecification & GetResourceSpecification() const
Definition Offering.h:142
void SetOfferingDescription(Aws::String &&value)
Definition Offering.h:102
const Aws::String & GetOfferingDescription() const
Definition Offering.h:99
void SetCurrencyCode(const Aws::String &value)
Definition Offering.h:51
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue