AWS SDK for C++

AWS SDK for C++ Version 1.11.941

Loading...
Searching...
No Matches
AppQuota.h
1
6#pragma once
7#include <aws/appmonetization/AppMonetization_EXPORTS.h>
8#include <aws/appmonetization/model/OveragePolicy.h>
9#include <aws/appmonetization/model/Price.h>
10#include <aws/appmonetization/model/TieredOverage.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace AppMonetization {
22namespace Model {
23
31class AppQuota {
32 public:
33 AWS_APPMONETIZATION_API AppQuota() = default;
34 AWS_APPMONETIZATION_API AppQuota(Aws::Utils::Json::JsonView jsonValue);
35 AWS_APPMONETIZATION_API AppQuota& operator=(Aws::Utils::Json::JsonView jsonValue);
36 AWS_APPMONETIZATION_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
42 inline long long GetIncludedQuantity() const { return m_includedQuantity; }
43 inline bool IncludedQuantityHasBeenSet() const { return m_includedQuantityHasBeenSet; }
44 inline void SetIncludedQuantity(long long value) {
45 m_includedQuantityHasBeenSet = true;
46 m_includedQuantity = value;
47 }
48 inline AppQuota& WithIncludedQuantity(long long value) {
50 return *this;
51 }
53
55
58 inline OveragePolicy GetOveragePolicy() const { return m_overagePolicy; }
59 inline bool OveragePolicyHasBeenSet() const { return m_overagePolicyHasBeenSet; }
60 inline void SetOveragePolicy(OveragePolicy value) {
61 m_overagePolicyHasBeenSet = true;
62 m_overagePolicy = value;
63 }
65 SetOveragePolicy(value);
66 return *this;
67 }
69
71
75 inline const Price& GetOveragePrice() const { return m_overagePrice; }
76 inline bool OveragePriceHasBeenSet() const { return m_overagePriceHasBeenSet; }
77 template <typename OveragePriceT = Price>
78 void SetOveragePrice(OveragePriceT&& value) {
79 m_overagePriceHasBeenSet = true;
80 m_overagePrice = std::forward<OveragePriceT>(value);
81 }
82 template <typename OveragePriceT = Price>
83 AppQuota& WithOveragePrice(OveragePriceT&& value) {
84 SetOveragePrice(std::forward<OveragePriceT>(value));
85 return *this;
86 }
88
90
94 inline const TieredOverage& GetTieredOverage() const { return m_tieredOverage; }
95 inline bool TieredOverageHasBeenSet() const { return m_tieredOverageHasBeenSet; }
96 template <typename TieredOverageT = TieredOverage>
97 void SetTieredOverage(TieredOverageT&& value) {
98 m_tieredOverageHasBeenSet = true;
99 m_tieredOverage = std::forward<TieredOverageT>(value);
100 }
101 template <typename TieredOverageT = TieredOverage>
102 AppQuota& WithTieredOverage(TieredOverageT&& value) {
103 SetTieredOverage(std::forward<TieredOverageT>(value));
104 return *this;
105 }
107
109
118 inline long long GetMaxQuantity() const { return m_maxQuantity; }
119 inline bool MaxQuantityHasBeenSet() const { return m_maxQuantityHasBeenSet; }
120 inline void SetMaxQuantity(long long value) {
121 m_maxQuantityHasBeenSet = true;
122 m_maxQuantity = value;
123 }
124 inline AppQuota& WithMaxQuantity(long long value) {
125 SetMaxQuantity(value);
126 return *this;
127 }
129 private:
130 long long m_includedQuantity{0};
131
132 OveragePolicy m_overagePolicy{OveragePolicy::NOT_SET};
133
134 Price m_overagePrice;
135
136 TieredOverage m_tieredOverage;
137
138 long long m_maxQuantity{0};
139 bool m_includedQuantityHasBeenSet = false;
140 bool m_overagePolicyHasBeenSet = false;
141 bool m_overagePriceHasBeenSet = false;
142 bool m_tieredOverageHasBeenSet = false;
143 bool m_maxQuantityHasBeenSet = false;
144};
145
146} // namespace Model
147} // namespace AppMonetization
148} // namespace Aws
AppQuota & WithMaxQuantity(long long value)
Definition AppQuota.h:124
void SetTieredOverage(TieredOverageT &&value)
Definition AppQuota.h:97
AWS_APPMONETIZATION_API AppQuota & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_APPMONETIZATION_API AppQuota(Aws::Utils::Json::JsonView jsonValue)
void SetOveragePrice(OveragePriceT &&value)
Definition AppQuota.h:78
AppQuota & WithTieredOverage(TieredOverageT &&value)
Definition AppQuota.h:102
const TieredOverage & GetTieredOverage() const
Definition AppQuota.h:94
AppQuota & WithOveragePolicy(OveragePolicy value)
Definition AppQuota.h:64
const Price & GetOveragePrice() const
Definition AppQuota.h:75
long long GetIncludedQuantity() const
Definition AppQuota.h:42
AppQuota & WithOveragePrice(OveragePriceT &&value)
Definition AppQuota.h:83
void SetMaxQuantity(long long value)
Definition AppQuota.h:120
AppQuota & WithIncludedQuantity(long long value)
Definition AppQuota.h:48
AWS_APPMONETIZATION_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_APPMONETIZATION_API AppQuota()=default
void SetIncludedQuantity(long long value)
Definition AppQuota.h:44
void SetOveragePolicy(OveragePolicy value)
Definition AppQuota.h:60
OveragePolicy GetOveragePolicy() const
Definition AppQuota.h:58
Aws::Utils::Json::JsonValue JsonValue