AWS SDK for C++

AWS SDK for C++ Version 1.11.936

Loading...
Searching...
No Matches
CreatePricingPlanRequest.h
1
6#pragma once
7#include <aws/billingconductor/BillingConductorRequest.h>
8#include <aws/billingconductor/BillingConductor_EXPORTS.h>
9#include <aws/core/utils/UUID.h>
10#include <aws/core/utils/memory/stl/AWSMap.h>
11#include <aws/core/utils/memory/stl/AWSString.h>
12#include <aws/core/utils/memory/stl/AWSVector.h>
13
14#include <utility>
15
16namespace Aws {
17namespace BillingConductor {
18namespace Model {
19
23 public:
24 AWS_BILLINGCONDUCTOR_API CreatePricingPlanRequest() = default;
25
26 // Service request name is the Operation name which will send this request out,
27 // each operation should has unique request name, so that we can get operation's name from this request.
28 // Note: this is not true for response, multiple operations may have the same response name,
29 // so we can not get operation's name from response.
30 inline virtual const char* GetServiceRequestName() const override { return "CreatePricingPlan"; }
31
32 AWS_BILLINGCONDUCTOR_API Aws::String SerializePayload() const override;
33
34 AWS_BILLINGCONDUCTOR_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
35
37
44 inline const Aws::String& GetClientToken() const { return m_clientToken; }
45 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
46 template <typename ClientTokenT = Aws::String>
47 void SetClientToken(ClientTokenT&& value) {
48 m_clientTokenHasBeenSet = true;
49 m_clientToken = std::forward<ClientTokenT>(value);
50 }
51 template <typename ClientTokenT = Aws::String>
53 SetClientToken(std::forward<ClientTokenT>(value));
54 return *this;
55 }
57
59
63 inline const Aws::String& GetName() const { return m_name; }
64 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
65 template <typename NameT = Aws::String>
66 void SetName(NameT&& value) {
67 m_nameHasBeenSet = true;
68 m_name = std::forward<NameT>(value);
69 }
70 template <typename NameT = Aws::String>
72 SetName(std::forward<NameT>(value));
73 return *this;
74 }
76
78
81 inline const Aws::String& GetDescription() const { return m_description; }
82 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
83 template <typename DescriptionT = Aws::String>
84 void SetDescription(DescriptionT&& value) {
85 m_descriptionHasBeenSet = true;
86 m_description = std::forward<DescriptionT>(value);
87 }
88 template <typename DescriptionT = Aws::String>
90 SetDescription(std::forward<DescriptionT>(value));
91 return *this;
92 }
94
96
100 inline const Aws::Vector<Aws::String>& GetPricingRuleArns() const { return m_pricingRuleArns; }
101 inline bool PricingRuleArnsHasBeenSet() const { return m_pricingRuleArnsHasBeenSet; }
102 template <typename PricingRuleArnsT = Aws::Vector<Aws::String>>
103 void SetPricingRuleArns(PricingRuleArnsT&& value) {
104 m_pricingRuleArnsHasBeenSet = true;
105 m_pricingRuleArns = std::forward<PricingRuleArnsT>(value);
106 }
107 template <typename PricingRuleArnsT = Aws::Vector<Aws::String>>
109 SetPricingRuleArns(std::forward<PricingRuleArnsT>(value));
110 return *this;
111 }
112 template <typename PricingRuleArnsT = Aws::String>
113 CreatePricingPlanRequest& AddPricingRuleArns(PricingRuleArnsT&& value) {
114 m_pricingRuleArnsHasBeenSet = true;
115 m_pricingRuleArns.emplace_back(std::forward<PricingRuleArnsT>(value));
116 return *this;
117 }
119
121
125 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
126 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
127 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
128 void SetTags(TagsT&& value) {
129 m_tagsHasBeenSet = true;
130 m_tags = std::forward<TagsT>(value);
131 }
132 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
134 SetTags(std::forward<TagsT>(value));
135 return *this;
136 }
137 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
138 CreatePricingPlanRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
139 m_tagsHasBeenSet = true;
140 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
141 return *this;
142 }
144 private:
146
147 Aws::String m_name;
148
149 Aws::String m_description;
150
151 Aws::Vector<Aws::String> m_pricingRuleArns;
152
154 bool m_clientTokenHasBeenSet = true;
155 bool m_nameHasBeenSet = false;
156 bool m_descriptionHasBeenSet = false;
157 bool m_pricingRuleArnsHasBeenSet = false;
158 bool m_tagsHasBeenSet = false;
159};
160
161} // namespace Model
162} // namespace BillingConductor
163} // namespace Aws
const Aws::Vector< Aws::String > & GetPricingRuleArns() const
CreatePricingPlanRequest & WithClientToken(ClientTokenT &&value)
AWS_BILLINGCONDUCTOR_API Aws::String SerializePayload() const override
AWS_BILLINGCONDUCTOR_API CreatePricingPlanRequest()=default
CreatePricingPlanRequest & AddTags(TagsKeyT &&key, TagsValueT &&value)
CreatePricingPlanRequest & WithDescription(DescriptionT &&value)
CreatePricingPlanRequest & WithPricingRuleArns(PricingRuleArnsT &&value)
AWS_BILLINGCONDUCTOR_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
const Aws::Map< Aws::String, Aws::String > & GetTags() const
CreatePricingPlanRequest & AddPricingRuleArns(PricingRuleArnsT &&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
std::vector< T, Aws::Allocator< T > > Vector