AWS SDK for C++

AWS SDK for C++ Version 1.11.941

Loading...
Searching...
No Matches
AppTieredQuota.h
1
6#pragma once
7#include <aws/appmonetization/AppMonetization_EXPORTS.h>
8#include <aws/appmonetization/model/TieredPrice.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace AppMonetization {
20namespace Model {
21
33 public:
34 AWS_APPMONETIZATION_API AppTieredQuota() = default;
35 AWS_APPMONETIZATION_API AppTieredQuota(Aws::Utils::Json::JsonView jsonValue);
36 AWS_APPMONETIZATION_API AppTieredQuota& operator=(Aws::Utils::Json::JsonView jsonValue);
37 AWS_APPMONETIZATION_API Aws::Utils::Json::JsonValue Jsonize() const;
38
40
44 inline long long GetIncludedQuantity() const { return m_includedQuantity; }
45 inline bool IncludedQuantityHasBeenSet() const { return m_includedQuantityHasBeenSet; }
46 inline void SetIncludedQuantity(long long value) {
47 m_includedQuantityHasBeenSet = true;
48 m_includedQuantity = value;
49 }
50 inline AppTieredQuota& WithIncludedQuantity(long long value) {
52 return *this;
53 }
55
57
60 inline const TieredPrice& GetTieredPrice() const { return m_tieredPrice; }
61 inline bool TieredPriceHasBeenSet() const { return m_tieredPriceHasBeenSet; }
62 template <typename TieredPriceT = TieredPrice>
63 void SetTieredPrice(TieredPriceT&& value) {
64 m_tieredPriceHasBeenSet = true;
65 m_tieredPrice = std::forward<TieredPriceT>(value);
66 }
67 template <typename TieredPriceT = TieredPrice>
68 AppTieredQuota& WithTieredPrice(TieredPriceT&& value) {
69 SetTieredPrice(std::forward<TieredPriceT>(value));
70 return *this;
71 }
73
75
84 inline long long GetMaxQuantity() const { return m_maxQuantity; }
85 inline bool MaxQuantityHasBeenSet() const { return m_maxQuantityHasBeenSet; }
86 inline void SetMaxQuantity(long long value) {
87 m_maxQuantityHasBeenSet = true;
88 m_maxQuantity = value;
89 }
90 inline AppTieredQuota& WithMaxQuantity(long long value) {
91 SetMaxQuantity(value);
92 return *this;
93 }
95 private:
96 long long m_includedQuantity{0};
97
98 TieredPrice m_tieredPrice;
99
100 long long m_maxQuantity{0};
101 bool m_includedQuantityHasBeenSet = false;
102 bool m_tieredPriceHasBeenSet = false;
103 bool m_maxQuantityHasBeenSet = false;
104};
105
106} // namespace Model
107} // namespace AppMonetization
108} // namespace Aws
AppTieredQuota & WithTieredPrice(TieredPriceT &&value)
void SetTieredPrice(TieredPriceT &&value)
const TieredPrice & GetTieredPrice() const
AWS_APPMONETIZATION_API AppTieredQuota()=default
AWS_APPMONETIZATION_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_APPMONETIZATION_API AppTieredQuota(Aws::Utils::Json::JsonView jsonValue)
AWS_APPMONETIZATION_API AppTieredQuota & operator=(Aws::Utils::Json::JsonView jsonValue)
AppTieredQuota & WithMaxQuantity(long long value)
AppTieredQuota & WithIncludedQuantity(long long value)
Aws::Utils::Json::JsonValue JsonValue