AWS SDK for C++

AWS SDK for C++ Version 1.11.936

Loading...
Searching...
No Matches
CreateBillingGroupRequest.h
1
6#pragma once
7#include <aws/billingconductor/BillingConductorRequest.h>
8#include <aws/billingconductor/BillingConductor_EXPORTS.h>
9#include <aws/billingconductor/model/AccountGrouping.h>
10#include <aws/billingconductor/model/ComputationPreference.h>
11#include <aws/core/utils/UUID.h>
12#include <aws/core/utils/memory/stl/AWSMap.h>
13#include <aws/core/utils/memory/stl/AWSString.h>
14
15#include <utility>
16
17namespace Aws {
18namespace BillingConductor {
19namespace Model {
20
24 public:
25 AWS_BILLINGCONDUCTOR_API CreateBillingGroupRequest() = default;
26
27 // Service request name is the Operation name which will send this request out,
28 // each operation should has unique request name, so that we can get operation's name from this request.
29 // Note: this is not true for response, multiple operations may have the same response name,
30 // so we can not get operation's name from response.
31 inline virtual const char* GetServiceRequestName() const override { return "CreateBillingGroup"; }
32
33 AWS_BILLINGCONDUCTOR_API Aws::String SerializePayload() const override;
34
35 AWS_BILLINGCONDUCTOR_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
36
38
45 inline const Aws::String& GetClientToken() const { return m_clientToken; }
46 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
47 template <typename ClientTokenT = Aws::String>
48 void SetClientToken(ClientTokenT&& value) {
49 m_clientTokenHasBeenSet = true;
50 m_clientToken = std::forward<ClientTokenT>(value);
51 }
52 template <typename ClientTokenT = Aws::String>
54 SetClientToken(std::forward<ClientTokenT>(value));
55 return *this;
56 }
58
60
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
82 inline const AccountGrouping& GetAccountGrouping() const { return m_accountGrouping; }
83 inline bool AccountGroupingHasBeenSet() const { return m_accountGroupingHasBeenSet; }
84 template <typename AccountGroupingT = AccountGrouping>
85 void SetAccountGrouping(AccountGroupingT&& value) {
86 m_accountGroupingHasBeenSet = true;
87 m_accountGrouping = std::forward<AccountGroupingT>(value);
88 }
89 template <typename AccountGroupingT = AccountGrouping>
91 SetAccountGrouping(std::forward<AccountGroupingT>(value));
92 return *this;
93 }
95
97
101 inline const ComputationPreference& GetComputationPreference() const { return m_computationPreference; }
102 inline bool ComputationPreferenceHasBeenSet() const { return m_computationPreferenceHasBeenSet; }
103 template <typename ComputationPreferenceT = ComputationPreference>
104 void SetComputationPreference(ComputationPreferenceT&& value) {
105 m_computationPreferenceHasBeenSet = true;
106 m_computationPreference = std::forward<ComputationPreferenceT>(value);
107 }
108 template <typename ComputationPreferenceT = ComputationPreference>
109 CreateBillingGroupRequest& WithComputationPreference(ComputationPreferenceT&& value) {
110 SetComputationPreference(std::forward<ComputationPreferenceT>(value));
111 return *this;
112 }
114
116
119 inline const Aws::String& GetPrimaryAccountId() const { return m_primaryAccountId; }
120 inline bool PrimaryAccountIdHasBeenSet() const { return m_primaryAccountIdHasBeenSet; }
121 template <typename PrimaryAccountIdT = Aws::String>
122 void SetPrimaryAccountId(PrimaryAccountIdT&& value) {
123 m_primaryAccountIdHasBeenSet = true;
124 m_primaryAccountId = std::forward<PrimaryAccountIdT>(value);
125 }
126 template <typename PrimaryAccountIdT = Aws::String>
128 SetPrimaryAccountId(std::forward<PrimaryAccountIdT>(value));
129 return *this;
130 }
132
134
137 inline const Aws::String& GetDescription() const { return m_description; }
138 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
139 template <typename DescriptionT = Aws::String>
140 void SetDescription(DescriptionT&& value) {
141 m_descriptionHasBeenSet = true;
142 m_description = std::forward<DescriptionT>(value);
143 }
144 template <typename DescriptionT = Aws::String>
146 SetDescription(std::forward<DescriptionT>(value));
147 return *this;
148 }
150
152
156 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
157 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
158 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
159 void SetTags(TagsT&& value) {
160 m_tagsHasBeenSet = true;
161 m_tags = std::forward<TagsT>(value);
162 }
163 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
165 SetTags(std::forward<TagsT>(value));
166 return *this;
167 }
168 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
169 CreateBillingGroupRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
170 m_tagsHasBeenSet = true;
171 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
172 return *this;
173 }
175 private:
177
178 Aws::String m_name;
179
180 AccountGrouping m_accountGrouping;
181
182 ComputationPreference m_computationPreference;
183
184 Aws::String m_primaryAccountId;
185
186 Aws::String m_description;
187
189 bool m_clientTokenHasBeenSet = true;
190 bool m_nameHasBeenSet = false;
191 bool m_accountGroupingHasBeenSet = false;
192 bool m_computationPreferenceHasBeenSet = false;
193 bool m_primaryAccountIdHasBeenSet = false;
194 bool m_descriptionHasBeenSet = false;
195 bool m_tagsHasBeenSet = false;
196};
197
198} // namespace Model
199} // namespace BillingConductor
200} // namespace Aws
CreateBillingGroupRequest & WithComputationPreference(ComputationPreferenceT &&value)
CreateBillingGroupRequest & WithClientToken(ClientTokenT &&value)
AWS_BILLINGCONDUCTOR_API CreateBillingGroupRequest()=default
AWS_BILLINGCONDUCTOR_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CreateBillingGroupRequest & WithDescription(DescriptionT &&value)
CreateBillingGroupRequest & WithPrimaryAccountId(PrimaryAccountIdT &&value)
AWS_BILLINGCONDUCTOR_API Aws::String SerializePayload() const override
CreateBillingGroupRequest & AddTags(TagsKeyT &&key, TagsValueT &&value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
CreateBillingGroupRequest & WithAccountGrouping(AccountGroupingT &&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