7#include <aws/appmonetization/AppMonetization_EXPORTS.h>
8#include <aws/appmonetization/model/Price.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
20namespace AppMonetization {
42 template <
typename NameT = Aws::String>
44 m_nameHasBeenSet =
true;
45 m_name = std::forward<NameT>(value);
47 template <
typename NameT = Aws::String>
49 SetName(std::forward<NameT>(value));
60 template <
typename PriceT = Price>
62 m_priceHasBeenSet =
true;
63 m_price = std::forward<PriceT>(value);
65 template <
typename PriceT = Price>
67 SetPrice(std::forward<PriceT>(value));
78 template <
typename MetricIdT = Aws::String>
80 m_metricIdHasBeenSet =
true;
81 m_metricId = std::forward<MetricIdT>(value);
83 template <
typename MetricIdT = Aws::String>
97 m_capacityHasBeenSet =
true;
112 long long m_capacity{0};
113 bool m_nameHasBeenSet =
false;
114 bool m_priceHasBeenSet =
false;
115 bool m_metricIdHasBeenSet =
false;
116 bool m_capacityHasBeenSet =
false;
AWS_APPMONETIZATION_API Aws::Utils::Json::JsonValue Jsonize() const
void SetPrice(PriceT &&value)
const Aws::String & GetMetricId() const
bool CapacityHasBeenSet() const
OneTimePriceDefinition & WithMetricId(MetricIdT &&value)
OneTimePriceDefinition & WithCapacity(long long value)
void SetCapacity(long long value)
void SetMetricId(MetricIdT &&value)
OneTimePriceDefinition & WithName(NameT &&value)
AWS_APPMONETIZATION_API OneTimePriceDefinition()=default
const Aws::String & GetName() const
OneTimePriceDefinition & WithPrice(PriceT &&value)
long long GetCapacity() const
bool NameHasBeenSet() const
bool MetricIdHasBeenSet() const
AWS_APPMONETIZATION_API OneTimePriceDefinition(Aws::Utils::Json::JsonView jsonValue)
AWS_APPMONETIZATION_API OneTimePriceDefinition & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetName(NameT &&value)
const Price & GetPrice() const
bool PriceHasBeenSet() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue