7#include <aws/appmonetization/AppMonetization_EXPORTS.h>
8#include <aws/appmonetization/model/ComparableMechanism.h>
9#include <aws/appmonetization/model/Price.h>
10#include <aws/core/utils/memory/stl/AWSMap.h>
11#include <aws/core/utils/memory/stl/AWSString.h>
22namespace AppMonetization {
47 template <
typename NameT = Aws::String>
49 m_nameHasBeenSet =
true;
50 m_name = std::forward<NameT>(value);
52 template <
typename NameT = Aws::String>
54 SetName(std::forward<NameT>(value));
65 template <
typename UrlT = Aws::String>
67 m_urlHasBeenSet =
true;
68 m_url = std::forward<UrlT>(value);
70 template <
typename UrlT = Aws::String>
72 SetUrl(std::forward<UrlT>(value));
84 m_mechanismHasBeenSet =
true;
101 template <
typename PriceT = Price>
103 m_priceHasBeenSet =
true;
104 m_price = std::forward<PriceT>(value);
106 template <
typename PriceT = Price>
108 SetPrice(std::forward<PriceT>(value));
118 inline double GetCap()
const {
return m_cap; }
121 m_capHasBeenSet =
true;
140 m_includedUnitsHasBeenSet =
true;
141 m_includedUnits = value;
158 m_overageRateHasBeenSet =
true;
159 m_overageRate = value;
174 m_qualityHasBeenSet =
true;
190 template <
typename FeaturesT = Aws::Map<Aws::String,
double>>
192 m_featuresHasBeenSet =
true;
193 m_features = std::forward<FeaturesT>(value);
195 template <
typename FeaturesT = Aws::Map<Aws::String,
double>>
201 m_featuresHasBeenSet =
true;
202 m_features.emplace(key, value);
217 double m_includedUnits{0.0};
219 double m_overageRate{0.0};
221 double m_quality{0.0};
224 bool m_nameHasBeenSet =
false;
225 bool m_urlHasBeenSet =
false;
226 bool m_mechanismHasBeenSet =
false;
227 bool m_priceHasBeenSet =
false;
228 bool m_capHasBeenSet =
false;
229 bool m_includedUnitsHasBeenSet =
false;
230 bool m_overageRateHasBeenSet =
false;
231 bool m_qualityHasBeenSet =
false;
232 bool m_featuresHasBeenSet =
false;
void SetIncludedUnits(double value)
bool QualityHasBeenSet() const
AWS_APPMONETIZATION_API Aws::Utils::Json::JsonValue Jsonize() const
bool UrlHasBeenSet() const
void SetOverageRate(double value)
void SetUrl(UrlT &&value)
Comparable & WithCap(double value)
Comparable & WithQuality(double value)
const Price & GetPrice() const
bool MechanismHasBeenSet() const
AWS_APPMONETIZATION_API Comparable(Aws::Utils::Json::JsonView jsonValue)
bool CapHasBeenSet() const
bool IncludedUnitsHasBeenSet() const
void SetQuality(double value)
double GetOverageRate() const
const Aws::String & GetName() const
Comparable & AddFeatures(Aws::String key, double value)
void SetMechanism(ComparableMechanism value)
void SetPrice(PriceT &&value)
bool NameHasBeenSet() const
ComparableMechanism GetMechanism() const
Comparable & WithMechanism(ComparableMechanism value)
bool FeaturesHasBeenSet() const
bool PriceHasBeenSet() const
Comparable & WithOverageRate(double value)
double GetQuality() const
const Aws::String & GetUrl() const
Comparable & WithName(NameT &&value)
bool OverageRateHasBeenSet() const
const Aws::Map< Aws::String, double > & GetFeatures() const
AWS_APPMONETIZATION_API Comparable & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetCap(double value)
double GetIncludedUnits() const
Comparable & WithUrl(UrlT &&value)
void SetFeatures(FeaturesT &&value)
void SetName(NameT &&value)
Comparable & WithIncludedUnits(double value)
Comparable & WithPrice(PriceT &&value)
Comparable & WithFeatures(FeaturesT &&value)
AWS_APPMONETIZATION_API Comparable()=default
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