AWS SDK for C++

AWS SDK for C++ Version 1.11.941

Loading...
Searching...
No Matches
RecommendedQuota.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/core/utils/memory/stl/AWSString.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
30 public:
31 AWS_APPMONETIZATION_API RecommendedQuota() = default;
32 AWS_APPMONETIZATION_API RecommendedQuota(Aws::Utils::Json::JsonView jsonValue);
33 AWS_APPMONETIZATION_API RecommendedQuota& operator=(Aws::Utils::Json::JsonView jsonValue);
34 AWS_APPMONETIZATION_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
38 inline const Aws::String& GetActionName() const { return m_actionName; }
39 inline bool ActionNameHasBeenSet() const { return m_actionNameHasBeenSet; }
40 template <typename ActionNameT = Aws::String>
41 void SetActionName(ActionNameT&& value) {
42 m_actionNameHasBeenSet = true;
43 m_actionName = std::forward<ActionNameT>(value);
44 }
45 template <typename ActionNameT = Aws::String>
46 RecommendedQuota& WithActionName(ActionNameT&& value) {
47 SetActionName(std::forward<ActionNameT>(value));
48 return *this;
49 }
51
53
56 inline long long GetIncludedQuantity() const { return m_includedQuantity; }
57 inline bool IncludedQuantityHasBeenSet() const { return m_includedQuantityHasBeenSet; }
58 inline void SetIncludedQuantity(long long value) {
59 m_includedQuantityHasBeenSet = true;
60 m_includedQuantity = value;
61 }
62 inline RecommendedQuota& WithIncludedQuantity(long long value) {
64 return *this;
65 }
67
69
72 inline OveragePolicy GetOveragePolicy() const { return m_overagePolicy; }
73 inline bool OveragePolicyHasBeenSet() const { return m_overagePolicyHasBeenSet; }
74 inline void SetOveragePolicy(OveragePolicy value) {
75 m_overagePolicyHasBeenSet = true;
76 m_overagePolicy = value;
77 }
79 SetOveragePolicy(value);
80 return *this;
81 }
83
85
89 inline const Price& GetOveragePrice() const { return m_overagePrice; }
90 inline bool OveragePriceHasBeenSet() const { return m_overagePriceHasBeenSet; }
91 template <typename OveragePriceT = Price>
92 void SetOveragePrice(OveragePriceT&& value) {
93 m_overagePriceHasBeenSet = true;
94 m_overagePrice = std::forward<OveragePriceT>(value);
95 }
96 template <typename OveragePriceT = Price>
97 RecommendedQuota& WithOveragePrice(OveragePriceT&& value) {
98 SetOveragePrice(std::forward<OveragePriceT>(value));
99 return *this;
100 }
102 private:
103 Aws::String m_actionName;
104
105 long long m_includedQuantity{0};
106
107 OveragePolicy m_overagePolicy{OveragePolicy::NOT_SET};
108
109 Price m_overagePrice;
110 bool m_actionNameHasBeenSet = false;
111 bool m_includedQuantityHasBeenSet = false;
112 bool m_overagePolicyHasBeenSet = false;
113 bool m_overagePriceHasBeenSet = false;
114};
115
116} // namespace Model
117} // namespace AppMonetization
118} // namespace Aws
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue