AWS SDK for C++

AWS SDK for C++ Version 1.11.941

Loading...
Searching...
No Matches
PutThirdPartyCostRequest.h
1
6#pragma once
7#include <aws/appmonetization/AppMonetizationRequest.h>
8#include <aws/appmonetization/AppMonetization_EXPORTS.h>
9#include <aws/appmonetization/model/Currency.h>
10#include <aws/appmonetization/model/ThirdPartyCostFrequency.h>
11#include <aws/core/utils/UUID.h>
12#include <aws/core/utils/memory/stl/AWSString.h>
13
14#include <utility>
15
16namespace Aws {
17namespace AppMonetization {
18namespace Model {
19
28 public:
29 AWS_APPMONETIZATION_API PutThirdPartyCostRequest() = default;
30
31 // Service request name is the Operation name which will send this request out,
32 // each operation should has unique request name, so that we can get operation's name from this request.
33 // Note: this is not true for response, multiple operations may have the same response name,
34 // so we can not get operation's name from response.
35 inline virtual const char* GetServiceRequestName() const override { return "PutThirdPartyCost"; }
36
37 AWS_APPMONETIZATION_API Aws::String SerializePayload() const override;
38
40
43 inline const Aws::String& GetAppId() const { return m_appId; }
44 inline bool AppIdHasBeenSet() const { return m_appIdHasBeenSet; }
45 template <typename AppIdT = Aws::String>
46 void SetAppId(AppIdT&& value) {
47 m_appIdHasBeenSet = true;
48 m_appId = std::forward<AppIdT>(value);
49 }
50 template <typename AppIdT = Aws::String>
52 SetAppId(std::forward<AppIdT>(value));
53 return *this;
54 }
56
58
62 inline const Aws::String& GetCostId() const { return m_costId; }
63 inline bool CostIdHasBeenSet() const { return m_costIdHasBeenSet; }
64 template <typename CostIdT = Aws::String>
65 void SetCostId(CostIdT&& value) {
66 m_costIdHasBeenSet = true;
67 m_costId = std::forward<CostIdT>(value);
68 }
69 template <typename CostIdT = Aws::String>
71 SetCostId(std::forward<CostIdT>(value));
72 return *this;
73 }
75
77
81 inline const Aws::String& GetLabel() const { return m_label; }
82 inline bool LabelHasBeenSet() const { return m_labelHasBeenSet; }
83 template <typename LabelT = Aws::String>
84 void SetLabel(LabelT&& value) {
85 m_labelHasBeenSet = true;
86 m_label = std::forward<LabelT>(value);
87 }
88 template <typename LabelT = Aws::String>
90 SetLabel(std::forward<LabelT>(value));
91 return *this;
92 }
94
96
100 inline const Aws::String& GetAmount() const { return m_amount; }
101 inline bool AmountHasBeenSet() const { return m_amountHasBeenSet; }
102 template <typename AmountT = Aws::String>
103 void SetAmount(AmountT&& value) {
104 m_amountHasBeenSet = true;
105 m_amount = std::forward<AmountT>(value);
106 }
107 template <typename AmountT = Aws::String>
109 SetAmount(std::forward<AmountT>(value));
110 return *this;
111 }
113
115
118 inline ThirdPartyCostFrequency GetFrequency() const { return m_frequency; }
119 inline bool FrequencyHasBeenSet() const { return m_frequencyHasBeenSet; }
121 m_frequencyHasBeenSet = true;
122 m_frequency = value;
123 }
125 SetFrequency(value);
126 return *this;
127 }
129
131
135 inline Currency GetCurrency() const { return m_currency; }
136 inline bool CurrencyHasBeenSet() const { return m_currencyHasBeenSet; }
137 inline void SetCurrency(Currency value) {
138 m_currencyHasBeenSet = true;
139 m_currency = value;
140 }
142 SetCurrency(value);
143 return *this;
144 }
146
148
151 inline const Aws::String& GetDescription() const { return m_description; }
152 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
153 template <typename DescriptionT = Aws::String>
154 void SetDescription(DescriptionT&& value) {
155 m_descriptionHasBeenSet = true;
156 m_description = std::forward<DescriptionT>(value);
157 }
158 template <typename DescriptionT = Aws::String>
160 SetDescription(std::forward<DescriptionT>(value));
161 return *this;
162 }
164
166
170 inline const Aws::String& GetEffectiveFrom() const { return m_effectiveFrom; }
171 inline bool EffectiveFromHasBeenSet() const { return m_effectiveFromHasBeenSet; }
172 template <typename EffectiveFromT = Aws::String>
173 void SetEffectiveFrom(EffectiveFromT&& value) {
174 m_effectiveFromHasBeenSet = true;
175 m_effectiveFrom = std::forward<EffectiveFromT>(value);
176 }
177 template <typename EffectiveFromT = Aws::String>
179 SetEffectiveFrom(std::forward<EffectiveFromT>(value));
180 return *this;
181 }
183
185
189 inline const Aws::String& GetEffectiveTo() const { return m_effectiveTo; }
190 inline bool EffectiveToHasBeenSet() const { return m_effectiveToHasBeenSet; }
191 template <typename EffectiveToT = Aws::String>
192 void SetEffectiveTo(EffectiveToT&& value) {
193 m_effectiveToHasBeenSet = true;
194 m_effectiveTo = std::forward<EffectiveToT>(value);
195 }
196 template <typename EffectiveToT = Aws::String>
198 SetEffectiveTo(std::forward<EffectiveToT>(value));
199 return *this;
200 }
202
204
209 inline const Aws::String& GetClientToken() const { return m_clientToken; }
210 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
211 template <typename ClientTokenT = Aws::String>
212 void SetClientToken(ClientTokenT&& value) {
213 m_clientTokenHasBeenSet = true;
214 m_clientToken = std::forward<ClientTokenT>(value);
215 }
216 template <typename ClientTokenT = Aws::String>
218 SetClientToken(std::forward<ClientTokenT>(value));
219 return *this;
220 }
222 private:
223 Aws::String m_appId;
224
225 Aws::String m_costId;
226
227 Aws::String m_label;
228
229 Aws::String m_amount;
230
232
233 Currency m_currency{Currency::NOT_SET};
234
235 Aws::String m_description;
236
237 Aws::String m_effectiveFrom;
238
239 Aws::String m_effectiveTo;
240
242 bool m_appIdHasBeenSet = false;
243 bool m_costIdHasBeenSet = false;
244 bool m_labelHasBeenSet = false;
245 bool m_amountHasBeenSet = false;
246 bool m_frequencyHasBeenSet = false;
247 bool m_currencyHasBeenSet = false;
248 bool m_descriptionHasBeenSet = false;
249 bool m_effectiveFromHasBeenSet = false;
250 bool m_effectiveToHasBeenSet = false;
251 bool m_clientTokenHasBeenSet = true;
252};
253
254} // namespace Model
255} // namespace AppMonetization
256} // namespace Aws
PutThirdPartyCostRequest & WithLabel(LabelT &&value)
AWS_APPMONETIZATION_API PutThirdPartyCostRequest()=default
PutThirdPartyCostRequest & WithCostId(CostIdT &&value)
AWS_APPMONETIZATION_API Aws::String SerializePayload() const override
PutThirdPartyCostRequest & WithAppId(AppIdT &&value)
virtual const char * GetServiceRequestName() const override
PutThirdPartyCostRequest & WithFrequency(ThirdPartyCostFrequency value)
PutThirdPartyCostRequest & WithClientToken(ClientTokenT &&value)
PutThirdPartyCostRequest & WithEffectiveFrom(EffectiveFromT &&value)
PutThirdPartyCostRequest & WithEffectiveTo(EffectiveToT &&value)
PutThirdPartyCostRequest & WithDescription(DescriptionT &&value)
PutThirdPartyCostRequest & WithCurrency(Currency value)
PutThirdPartyCostRequest & WithAmount(AmountT &&value)
static Aws::Utils::UUID PseudoRandomUUID()
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String