AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreatePricingRuleRequest.h
1
6#pragma once
7#include <aws/billingconductor/BillingConductor_EXPORTS.h>
8#include <aws/billingconductor/BillingConductorRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/billingconductor/model/PricingRuleScope.h>
11#include <aws/billingconductor/model/PricingRuleType.h>
12#include <aws/core/utils/memory/stl/AWSMap.h>
13#include <aws/billingconductor/model/CreateTieringInput.h>
14#include <utility>
15#include <aws/core/utils/UUID.h>
16
17namespace Aws
18{
19namespace BillingConductor
20{
21namespace Model
22{
23
27 {
28 public:
29 AWS_BILLINGCONDUCTOR_API CreatePricingRuleRequest();
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 "CreatePricingRule"; }
36
37 AWS_BILLINGCONDUCTOR_API Aws::String SerializePayload() const override;
38
39 AWS_BILLINGCONDUCTOR_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
40
41
43
47 inline const Aws::String& GetClientToken() const{ return m_clientToken; }
48 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
49 inline void SetClientToken(const Aws::String& value) { m_clientTokenHasBeenSet = true; m_clientToken = value; }
50 inline void SetClientToken(Aws::String&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::move(value); }
51 inline void SetClientToken(const char* value) { m_clientTokenHasBeenSet = true; m_clientToken.assign(value); }
52 inline CreatePricingRuleRequest& WithClientToken(const Aws::String& value) { SetClientToken(value); return *this;}
53 inline CreatePricingRuleRequest& WithClientToken(Aws::String&& value) { SetClientToken(std::move(value)); return *this;}
54 inline CreatePricingRuleRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;}
56
58
61 inline const Aws::String& GetName() const{ return m_name; }
62 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
63 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
64 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
65 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
66 inline CreatePricingRuleRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
67 inline CreatePricingRuleRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
68 inline CreatePricingRuleRequest& WithName(const char* value) { SetName(value); return *this;}
70
72
75 inline const Aws::String& GetDescription() const{ return m_description; }
76 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
77 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
78 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
79 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
80 inline CreatePricingRuleRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
81 inline CreatePricingRuleRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
82 inline CreatePricingRuleRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
84
86
90 inline const PricingRuleScope& GetScope() const{ return m_scope; }
91 inline bool ScopeHasBeenSet() const { return m_scopeHasBeenSet; }
92 inline void SetScope(const PricingRuleScope& value) { m_scopeHasBeenSet = true; m_scope = value; }
93 inline void SetScope(PricingRuleScope&& value) { m_scopeHasBeenSet = true; m_scope = std::move(value); }
94 inline CreatePricingRuleRequest& WithScope(const PricingRuleScope& value) { SetScope(value); return *this;}
95 inline CreatePricingRuleRequest& WithScope(PricingRuleScope&& value) { SetScope(std::move(value)); return *this;}
97
99
102 inline const PricingRuleType& GetType() const{ return m_type; }
103 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
104 inline void SetType(const PricingRuleType& value) { m_typeHasBeenSet = true; m_type = value; }
105 inline void SetType(PricingRuleType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
106 inline CreatePricingRuleRequest& WithType(const PricingRuleType& value) { SetType(value); return *this;}
107 inline CreatePricingRuleRequest& WithType(PricingRuleType&& value) { SetType(std::move(value)); return *this;}
109
111
114 inline double GetModifierPercentage() const{ return m_modifierPercentage; }
115 inline bool ModifierPercentageHasBeenSet() const { return m_modifierPercentageHasBeenSet; }
116 inline void SetModifierPercentage(double value) { m_modifierPercentageHasBeenSet = true; m_modifierPercentage = value; }
117 inline CreatePricingRuleRequest& WithModifierPercentage(double value) { SetModifierPercentage(value); return *this;}
119
121
126 inline const Aws::String& GetService() const{ return m_service; }
127 inline bool ServiceHasBeenSet() const { return m_serviceHasBeenSet; }
128 inline void SetService(const Aws::String& value) { m_serviceHasBeenSet = true; m_service = value; }
129 inline void SetService(Aws::String&& value) { m_serviceHasBeenSet = true; m_service = std::move(value); }
130 inline void SetService(const char* value) { m_serviceHasBeenSet = true; m_service.assign(value); }
131 inline CreatePricingRuleRequest& WithService(const Aws::String& value) { SetService(value); return *this;}
132 inline CreatePricingRuleRequest& WithService(Aws::String&& value) { SetService(std::move(value)); return *this;}
133 inline CreatePricingRuleRequest& WithService(const char* value) { SetService(value); return *this;}
135
137
141 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const{ return m_tags; }
142 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
143 inline void SetTags(const Aws::Map<Aws::String, Aws::String>& value) { m_tagsHasBeenSet = true; m_tags = value; }
144 inline void SetTags(Aws::Map<Aws::String, Aws::String>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
146 inline CreatePricingRuleRequest& WithTags(Aws::Map<Aws::String, Aws::String>&& value) { SetTags(std::move(value)); return *this;}
147 inline CreatePricingRuleRequest& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
148 inline CreatePricingRuleRequest& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
149 inline CreatePricingRuleRequest& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
150 inline CreatePricingRuleRequest& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; }
151 inline CreatePricingRuleRequest& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
152 inline CreatePricingRuleRequest& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
153 inline CreatePricingRuleRequest& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
155
157
161 inline const Aws::String& GetBillingEntity() const{ return m_billingEntity; }
162 inline bool BillingEntityHasBeenSet() const { return m_billingEntityHasBeenSet; }
163 inline void SetBillingEntity(const Aws::String& value) { m_billingEntityHasBeenSet = true; m_billingEntity = value; }
164 inline void SetBillingEntity(Aws::String&& value) { m_billingEntityHasBeenSet = true; m_billingEntity = std::move(value); }
165 inline void SetBillingEntity(const char* value) { m_billingEntityHasBeenSet = true; m_billingEntity.assign(value); }
166 inline CreatePricingRuleRequest& WithBillingEntity(const Aws::String& value) { SetBillingEntity(value); return *this;}
167 inline CreatePricingRuleRequest& WithBillingEntity(Aws::String&& value) { SetBillingEntity(std::move(value)); return *this;}
168 inline CreatePricingRuleRequest& WithBillingEntity(const char* value) { SetBillingEntity(value); return *this;}
170
172
175 inline const CreateTieringInput& GetTiering() const{ return m_tiering; }
176 inline bool TieringHasBeenSet() const { return m_tieringHasBeenSet; }
177 inline void SetTiering(const CreateTieringInput& value) { m_tieringHasBeenSet = true; m_tiering = value; }
178 inline void SetTiering(CreateTieringInput&& value) { m_tieringHasBeenSet = true; m_tiering = std::move(value); }
179 inline CreatePricingRuleRequest& WithTiering(const CreateTieringInput& value) { SetTiering(value); return *this;}
180 inline CreatePricingRuleRequest& WithTiering(CreateTieringInput&& value) { SetTiering(std::move(value)); return *this;}
182
184
193 inline const Aws::String& GetUsageType() const{ return m_usageType; }
194 inline bool UsageTypeHasBeenSet() const { return m_usageTypeHasBeenSet; }
195 inline void SetUsageType(const Aws::String& value) { m_usageTypeHasBeenSet = true; m_usageType = value; }
196 inline void SetUsageType(Aws::String&& value) { m_usageTypeHasBeenSet = true; m_usageType = std::move(value); }
197 inline void SetUsageType(const char* value) { m_usageTypeHasBeenSet = true; m_usageType.assign(value); }
198 inline CreatePricingRuleRequest& WithUsageType(const Aws::String& value) { SetUsageType(value); return *this;}
199 inline CreatePricingRuleRequest& WithUsageType(Aws::String&& value) { SetUsageType(std::move(value)); return *this;}
200 inline CreatePricingRuleRequest& WithUsageType(const char* value) { SetUsageType(value); return *this;}
202
204
212 inline const Aws::String& GetOperation() const{ return m_operation; }
213 inline bool OperationHasBeenSet() const { return m_operationHasBeenSet; }
214 inline void SetOperation(const Aws::String& value) { m_operationHasBeenSet = true; m_operation = value; }
215 inline void SetOperation(Aws::String&& value) { m_operationHasBeenSet = true; m_operation = std::move(value); }
216 inline void SetOperation(const char* value) { m_operationHasBeenSet = true; m_operation.assign(value); }
217 inline CreatePricingRuleRequest& WithOperation(const Aws::String& value) { SetOperation(value); return *this;}
218 inline CreatePricingRuleRequest& WithOperation(Aws::String&& value) { SetOperation(std::move(value)); return *this;}
219 inline CreatePricingRuleRequest& WithOperation(const char* value) { SetOperation(value); return *this;}
221 private:
222
223 Aws::String m_clientToken;
224 bool m_clientTokenHasBeenSet = false;
225
226 Aws::String m_name;
227 bool m_nameHasBeenSet = false;
228
229 Aws::String m_description;
230 bool m_descriptionHasBeenSet = false;
231
232 PricingRuleScope m_scope;
233 bool m_scopeHasBeenSet = false;
234
235 PricingRuleType m_type;
236 bool m_typeHasBeenSet = false;
237
238 double m_modifierPercentage;
239 bool m_modifierPercentageHasBeenSet = false;
240
241 Aws::String m_service;
242 bool m_serviceHasBeenSet = false;
243
245 bool m_tagsHasBeenSet = false;
246
247 Aws::String m_billingEntity;
248 bool m_billingEntityHasBeenSet = false;
249
250 CreateTieringInput m_tiering;
251 bool m_tieringHasBeenSet = false;
252
253 Aws::String m_usageType;
254 bool m_usageTypeHasBeenSet = false;
255
256 Aws::String m_operation;
257 bool m_operationHasBeenSet = false;
258 };
259
260} // namespace Model
261} // namespace BillingConductor
262} // namespace Aws
CreatePricingRuleRequest & WithUsageType(const char *value)
CreatePricingRuleRequest & WithType(const PricingRuleType &value)
CreatePricingRuleRequest & AddTags(const char *key, const char *value)
CreatePricingRuleRequest & WithOperation(Aws::String &&value)
CreatePricingRuleRequest & WithBillingEntity(const char *value)
CreatePricingRuleRequest & AddTags(const Aws::String &key, Aws::String &&value)
CreatePricingRuleRequest & WithClientToken(Aws::String &&value)
CreatePricingRuleRequest & WithUsageType(const Aws::String &value)
CreatePricingRuleRequest & AddTags(Aws::String &&key, const Aws::String &value)
CreatePricingRuleRequest & WithType(PricingRuleType &&value)
CreatePricingRuleRequest & WithClientToken(const Aws::String &value)
CreatePricingRuleRequest & WithService(const char *value)
void SetTags(const Aws::Map< Aws::String, Aws::String > &value)
CreatePricingRuleRequest & AddTags(Aws::String &&key, Aws::String &&value)
CreatePricingRuleRequest & WithName(Aws::String &&value)
CreatePricingRuleRequest & WithOperation(const char *value)
CreatePricingRuleRequest & WithName(const char *value)
AWS_BILLINGCONDUCTOR_API Aws::String SerializePayload() const override
CreatePricingRuleRequest & WithModifierPercentage(double value)
CreatePricingRuleRequest & WithDescription(const char *value)
CreatePricingRuleRequest & WithOperation(const Aws::String &value)
CreatePricingRuleRequest & WithScope(PricingRuleScope &&value)
CreatePricingRuleRequest & WithClientToken(const char *value)
CreatePricingRuleRequest & WithName(const Aws::String &value)
void SetTags(Aws::Map< Aws::String, Aws::String > &&value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
CreatePricingRuleRequest & WithTiering(CreateTieringInput &&value)
CreatePricingRuleRequest & WithService(const Aws::String &value)
CreatePricingRuleRequest & WithTags(Aws::Map< Aws::String, Aws::String > &&value)
CreatePricingRuleRequest & WithService(Aws::String &&value)
CreatePricingRuleRequest & WithDescription(Aws::String &&value)
CreatePricingRuleRequest & WithScope(const PricingRuleScope &value)
CreatePricingRuleRequest & WithBillingEntity(const Aws::String &value)
CreatePricingRuleRequest & AddTags(const Aws::String &key, const Aws::String &value)
CreatePricingRuleRequest & AddTags(const char *key, Aws::String &&value)
CreatePricingRuleRequest & WithDescription(const Aws::String &value)
CreatePricingRuleRequest & WithTiering(const CreateTieringInput &value)
CreatePricingRuleRequest & AddTags(Aws::String &&key, const char *value)
AWS_BILLINGCONDUCTOR_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CreatePricingRuleRequest & WithTags(const Aws::Map< Aws::String, Aws::String > &value)
CreatePricingRuleRequest & WithBillingEntity(Aws::String &&value)
CreatePricingRuleRequest & WithUsageType(Aws::String &&value)
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