AWS SDK for C++

AWS SDK for C++ Version 1.11.936

Loading...
Searching...
No Matches
CreatePricingRuleRequest.h
1
6#pragma once
7#include <aws/billingconductor/BillingConductorRequest.h>
8#include <aws/billingconductor/BillingConductor_EXPORTS.h>
9#include <aws/billingconductor/model/CreateTieringInput.h>
10#include <aws/billingconductor/model/PricingRuleScope.h>
11#include <aws/billingconductor/model/PricingRuleType.h>
12#include <aws/core/utils/UUID.h>
13#include <aws/core/utils/memory/stl/AWSMap.h>
14#include <aws/core/utils/memory/stl/AWSString.h>
15
16#include <utility>
17
18namespace Aws {
19namespace BillingConductor {
20namespace Model {
21
25 public:
26 AWS_BILLINGCONDUCTOR_API CreatePricingRuleRequest() = default;
27
28 // Service request name is the Operation name which will send this request out,
29 // each operation should has unique request name, so that we can get operation's name from this request.
30 // Note: this is not true for response, multiple operations may have the same response name,
31 // so we can not get operation's name from response.
32 inline virtual const char* GetServiceRequestName() const override { return "CreatePricingRule"; }
33
34 AWS_BILLINGCONDUCTOR_API Aws::String SerializePayload() const override;
35
36 AWS_BILLINGCONDUCTOR_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
37
39
46 inline const Aws::String& GetClientToken() const { return m_clientToken; }
47 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
48 template <typename ClientTokenT = Aws::String>
49 void SetClientToken(ClientTokenT&& value) {
50 m_clientTokenHasBeenSet = true;
51 m_clientToken = std::forward<ClientTokenT>(value);
52 }
53 template <typename ClientTokenT = Aws::String>
55 SetClientToken(std::forward<ClientTokenT>(value));
56 return *this;
57 }
59
61
64 inline const Aws::String& GetName() const { return m_name; }
65 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
66 template <typename NameT = Aws::String>
67 void SetName(NameT&& value) {
68 m_nameHasBeenSet = true;
69 m_name = std::forward<NameT>(value);
70 }
71 template <typename NameT = Aws::String>
73 SetName(std::forward<NameT>(value));
74 return *this;
75 }
77
79
82 inline const Aws::String& GetDescription() const { return m_description; }
83 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
84 template <typename DescriptionT = Aws::String>
85 void SetDescription(DescriptionT&& value) {
86 m_descriptionHasBeenSet = true;
87 m_description = std::forward<DescriptionT>(value);
88 }
89 template <typename DescriptionT = Aws::String>
91 SetDescription(std::forward<DescriptionT>(value));
92 return *this;
93 }
95
97
101 inline PricingRuleScope GetScope() const { return m_scope; }
102 inline bool ScopeHasBeenSet() const { return m_scopeHasBeenSet; }
103 inline void SetScope(PricingRuleScope value) {
104 m_scopeHasBeenSet = true;
105 m_scope = value;
106 }
108 SetScope(value);
109 return *this;
110 }
112
114
117 inline PricingRuleType GetType() const { return m_type; }
118 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
119 inline void SetType(PricingRuleType value) {
120 m_typeHasBeenSet = true;
121 m_type = value;
122 }
124 SetType(value);
125 return *this;
126 }
128
130
134 inline double GetModifierPercentage() const { return m_modifierPercentage; }
135 inline bool ModifierPercentageHasBeenSet() const { return m_modifierPercentageHasBeenSet; }
136 inline void SetModifierPercentage(double value) {
137 m_modifierPercentageHasBeenSet = true;
138 m_modifierPercentage = value;
139 }
142 return *this;
143 }
145
147
152 inline const Aws::String& GetService() const { return m_service; }
153 inline bool ServiceHasBeenSet() const { return m_serviceHasBeenSet; }
154 template <typename ServiceT = Aws::String>
155 void SetService(ServiceT&& value) {
156 m_serviceHasBeenSet = true;
157 m_service = std::forward<ServiceT>(value);
158 }
159 template <typename ServiceT = Aws::String>
161 SetService(std::forward<ServiceT>(value));
162 return *this;
163 }
165
167
171 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
172 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
173 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
174 void SetTags(TagsT&& value) {
175 m_tagsHasBeenSet = true;
176 m_tags = std::forward<TagsT>(value);
177 }
178 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
180 SetTags(std::forward<TagsT>(value));
181 return *this;
182 }
183 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
184 CreatePricingRuleRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
185 m_tagsHasBeenSet = true;
186 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
187 return *this;
188 }
190
192
196 inline const Aws::String& GetBillingEntity() const { return m_billingEntity; }
197 inline bool BillingEntityHasBeenSet() const { return m_billingEntityHasBeenSet; }
198 template <typename BillingEntityT = Aws::String>
199 void SetBillingEntity(BillingEntityT&& value) {
200 m_billingEntityHasBeenSet = true;
201 m_billingEntity = std::forward<BillingEntityT>(value);
202 }
203 template <typename BillingEntityT = Aws::String>
205 SetBillingEntity(std::forward<BillingEntityT>(value));
206 return *this;
207 }
209
211
214 inline const CreateTieringInput& GetTiering() const { return m_tiering; }
215 inline bool TieringHasBeenSet() const { return m_tieringHasBeenSet; }
216 template <typename TieringT = CreateTieringInput>
217 void SetTiering(TieringT&& value) {
218 m_tieringHasBeenSet = true;
219 m_tiering = std::forward<TieringT>(value);
220 }
221 template <typename TieringT = CreateTieringInput>
223 SetTiering(std::forward<TieringT>(value));
224 return *this;
225 }
227
229
237 inline const Aws::String& GetUsageType() const { return m_usageType; }
238 inline bool UsageTypeHasBeenSet() const { return m_usageTypeHasBeenSet; }
239 template <typename UsageTypeT = Aws::String>
240 void SetUsageType(UsageTypeT&& value) {
241 m_usageTypeHasBeenSet = true;
242 m_usageType = std::forward<UsageTypeT>(value);
243 }
244 template <typename UsageTypeT = Aws::String>
246 SetUsageType(std::forward<UsageTypeT>(value));
247 return *this;
248 }
250
252
260 inline const Aws::String& GetOperation() const { return m_operation; }
261 inline bool OperationHasBeenSet() const { return m_operationHasBeenSet; }
262 template <typename OperationT = Aws::String>
263 void SetOperation(OperationT&& value) {
264 m_operationHasBeenSet = true;
265 m_operation = std::forward<OperationT>(value);
266 }
267 template <typename OperationT = Aws::String>
269 SetOperation(std::forward<OperationT>(value));
270 return *this;
271 }
273 private:
275
276 Aws::String m_name;
277
278 Aws::String m_description;
279
281
283
284 double m_modifierPercentage{0.0};
285
286 Aws::String m_service;
287
289
290 Aws::String m_billingEntity;
291
292 CreateTieringInput m_tiering;
293
294 Aws::String m_usageType;
295
296 Aws::String m_operation;
297 bool m_clientTokenHasBeenSet = true;
298 bool m_nameHasBeenSet = false;
299 bool m_descriptionHasBeenSet = false;
300 bool m_scopeHasBeenSet = false;
301 bool m_typeHasBeenSet = false;
302 bool m_modifierPercentageHasBeenSet = false;
303 bool m_serviceHasBeenSet = false;
304 bool m_tagsHasBeenSet = false;
305 bool m_billingEntityHasBeenSet = false;
306 bool m_tieringHasBeenSet = false;
307 bool m_usageTypeHasBeenSet = false;
308 bool m_operationHasBeenSet = false;
309};
310
311} // namespace Model
312} // namespace BillingConductor
313} // namespace Aws
CreatePricingRuleRequest & WithDescription(DescriptionT &&value)
CreatePricingRuleRequest & WithClientToken(ClientTokenT &&value)
CreatePricingRuleRequest & WithUsageType(UsageTypeT &&value)
AWS_BILLINGCONDUCTOR_API Aws::String SerializePayload() const override
CreatePricingRuleRequest & WithModifierPercentage(double value)
CreatePricingRuleRequest & WithType(PricingRuleType value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
CreatePricingRuleRequest & WithScope(PricingRuleScope value)
CreatePricingRuleRequest & AddTags(TagsKeyT &&key, TagsValueT &&value)
AWS_BILLINGCONDUCTOR_API CreatePricingRuleRequest()=default
CreatePricingRuleRequest & WithBillingEntity(BillingEntityT &&value)
CreatePricingRuleRequest & WithService(ServiceT &&value)
CreatePricingRuleRequest & WithOperation(OperationT &&value)
AWS_BILLINGCONDUCTOR_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CreatePricingRuleRequest & WithTiering(TieringT &&value)
static Aws::Utils::UUID PseudoRandomUUID()
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String