AWS SDK for C++

AWS SDK for C++ Version 1.11.941

Loading...
Searching...
No Matches
CustomCharge.h
1
6#pragma once
7#include <aws/appmonetization/AppMonetization_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.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
28 public:
29 AWS_APPMONETIZATION_API CustomCharge() = default;
30 AWS_APPMONETIZATION_API CustomCharge(Aws::Utils::Json::JsonView jsonValue);
31 AWS_APPMONETIZATION_API CustomCharge& operator=(Aws::Utils::Json::JsonView jsonValue);
32 AWS_APPMONETIZATION_API Aws::Utils::Json::JsonValue Jsonize() const;
33
35
44 inline const Aws::String& GetChargeId() const { return m_chargeId; }
45 inline bool ChargeIdHasBeenSet() const { return m_chargeIdHasBeenSet; }
46 template <typename ChargeIdT = Aws::String>
47 void SetChargeId(ChargeIdT&& value) {
48 m_chargeIdHasBeenSet = true;
49 m_chargeId = std::forward<ChargeIdT>(value);
50 }
51 template <typename ChargeIdT = Aws::String>
52 CustomCharge& WithChargeId(ChargeIdT&& value) {
53 SetChargeId(std::forward<ChargeIdT>(value));
54 return *this;
55 }
57
59
62 inline const Aws::String& GetDescription() const { return m_description; }
63 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
64 template <typename DescriptionT = Aws::String>
65 void SetDescription(DescriptionT&& value) {
66 m_descriptionHasBeenSet = true;
67 m_description = std::forward<DescriptionT>(value);
68 }
69 template <typename DescriptionT = Aws::String>
70 CustomCharge& WithDescription(DescriptionT&& value) {
71 SetDescription(std::forward<DescriptionT>(value));
72 return *this;
73 }
75
77
81 inline const Aws::String& GetAmount() const { return m_amount; }
82 inline bool AmountHasBeenSet() const { return m_amountHasBeenSet; }
83 template <typename AmountT = Aws::String>
84 void SetAmount(AmountT&& value) {
85 m_amountHasBeenSet = true;
86 m_amount = std::forward<AmountT>(value);
87 }
88 template <typename AmountT = Aws::String>
89 CustomCharge& WithAmount(AmountT&& value) {
90 SetAmount(std::forward<AmountT>(value));
91 return *this;
92 }
94
96
100 inline const Aws::String& GetCurrency() const { return m_currency; }
101 inline bool CurrencyHasBeenSet() const { return m_currencyHasBeenSet; }
102 template <typename CurrencyT = Aws::String>
103 void SetCurrency(CurrencyT&& value) {
104 m_currencyHasBeenSet = true;
105 m_currency = std::forward<CurrencyT>(value);
106 }
107 template <typename CurrencyT = Aws::String>
108 CustomCharge& WithCurrency(CurrencyT&& value) {
109 SetCurrency(std::forward<CurrencyT>(value));
110 return *this;
111 }
113
115
119 inline const Aws::String& GetMetricId() const { return m_metricId; }
120 inline bool MetricIdHasBeenSet() const { return m_metricIdHasBeenSet; }
121 template <typename MetricIdT = Aws::String>
122 void SetMetricId(MetricIdT&& value) {
123 m_metricIdHasBeenSet = true;
124 m_metricId = std::forward<MetricIdT>(value);
125 }
126 template <typename MetricIdT = Aws::String>
127 CustomCharge& WithMetricId(MetricIdT&& value) {
128 SetMetricId(std::forward<MetricIdT>(value));
129 return *this;
130 }
132
134
137 inline const Aws::String& GetTaxCode() const { return m_taxCode; }
138 inline bool TaxCodeHasBeenSet() const { return m_taxCodeHasBeenSet; }
139 template <typename TaxCodeT = Aws::String>
140 void SetTaxCode(TaxCodeT&& value) {
141 m_taxCodeHasBeenSet = true;
142 m_taxCode = std::forward<TaxCodeT>(value);
143 }
144 template <typename TaxCodeT = Aws::String>
145 CustomCharge& WithTaxCode(TaxCodeT&& value) {
146 SetTaxCode(std::forward<TaxCodeT>(value));
147 return *this;
148 }
150 private:
151 Aws::String m_chargeId;
152
153 Aws::String m_description;
154
155 Aws::String m_amount;
156
157 Aws::String m_currency;
158
159 Aws::String m_metricId;
160
161 Aws::String m_taxCode;
162 bool m_chargeIdHasBeenSet = false;
163 bool m_descriptionHasBeenSet = false;
164 bool m_amountHasBeenSet = false;
165 bool m_currencyHasBeenSet = false;
166 bool m_metricIdHasBeenSet = false;
167 bool m_taxCodeHasBeenSet = false;
168};
169
170} // namespace Model
171} // namespace AppMonetization
172} // namespace Aws
CustomCharge & WithChargeId(ChargeIdT &&value)
CustomCharge & WithTaxCode(TaxCodeT &&value)
const Aws::String & GetAmount() const
const Aws::String & GetMetricId() const
CustomCharge & WithMetricId(MetricIdT &&value)
const Aws::String & GetDescription() const
AWS_APPMONETIZATION_API CustomCharge()=default
void SetDescription(DescriptionT &&value)
CustomCharge & WithCurrency(CurrencyT &&value)
const Aws::String & GetChargeId() const
AWS_APPMONETIZATION_API CustomCharge(Aws::Utils::Json::JsonView jsonValue)
CustomCharge & WithAmount(AmountT &&value)
const Aws::String & GetTaxCode() const
CustomCharge & WithDescription(DescriptionT &&value)
const Aws::String & GetCurrency() const
AWS_APPMONETIZATION_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_APPMONETIZATION_API CustomCharge & operator=(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue