AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreateBillingGroupRequest.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/AccountGrouping.h>
11#include <aws/billingconductor/model/ComputationPreference.h>
12#include <aws/core/utils/memory/stl/AWSMap.h>
13#include <utility>
14#include <aws/core/utils/UUID.h>
15
16namespace Aws
17{
18namespace BillingConductor
19{
20namespace Model
21{
22
26 {
27 public:
28 AWS_BILLINGCONDUCTOR_API CreateBillingGroupRequest();
29
30 // Service request name is the Operation name which will send this request out,
31 // each operation should has unique request name, so that we can get operation's name from this request.
32 // Note: this is not true for response, multiple operations may have the same response name,
33 // so we can not get operation's name from response.
34 inline virtual const char* GetServiceRequestName() const override { return "CreateBillingGroup"; }
35
36 AWS_BILLINGCONDUCTOR_API Aws::String SerializePayload() const override;
37
38 AWS_BILLINGCONDUCTOR_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
39
40
42
46 inline const Aws::String& GetClientToken() const{ return m_clientToken; }
47 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
48 inline void SetClientToken(const Aws::String& value) { m_clientTokenHasBeenSet = true; m_clientToken = value; }
49 inline void SetClientToken(Aws::String&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::move(value); }
50 inline void SetClientToken(const char* value) { m_clientTokenHasBeenSet = true; m_clientToken.assign(value); }
51 inline CreateBillingGroupRequest& WithClientToken(const Aws::String& value) { SetClientToken(value); return *this;}
52 inline CreateBillingGroupRequest& WithClientToken(Aws::String&& value) { SetClientToken(std::move(value)); return *this;}
53 inline CreateBillingGroupRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;}
55
57
60 inline const Aws::String& GetName() const{ return m_name; }
61 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
62 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
63 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
64 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
65 inline CreateBillingGroupRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
66 inline CreateBillingGroupRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
67 inline CreateBillingGroupRequest& WithName(const char* value) { SetName(value); return *this;}
69
71
75 inline const AccountGrouping& GetAccountGrouping() const{ return m_accountGrouping; }
76 inline bool AccountGroupingHasBeenSet() const { return m_accountGroupingHasBeenSet; }
77 inline void SetAccountGrouping(const AccountGrouping& value) { m_accountGroupingHasBeenSet = true; m_accountGrouping = value; }
78 inline void SetAccountGrouping(AccountGrouping&& value) { m_accountGroupingHasBeenSet = true; m_accountGrouping = std::move(value); }
80 inline CreateBillingGroupRequest& WithAccountGrouping(AccountGrouping&& value) { SetAccountGrouping(std::move(value)); return *this;}
82
84
88 inline const ComputationPreference& GetComputationPreference() const{ return m_computationPreference; }
89 inline bool ComputationPreferenceHasBeenSet() const { return m_computationPreferenceHasBeenSet; }
90 inline void SetComputationPreference(const ComputationPreference& value) { m_computationPreferenceHasBeenSet = true; m_computationPreference = value; }
91 inline void SetComputationPreference(ComputationPreference&& value) { m_computationPreferenceHasBeenSet = true; m_computationPreference = std::move(value); }
95
97
100 inline const Aws::String& GetPrimaryAccountId() const{ return m_primaryAccountId; }
101 inline bool PrimaryAccountIdHasBeenSet() const { return m_primaryAccountIdHasBeenSet; }
102 inline void SetPrimaryAccountId(const Aws::String& value) { m_primaryAccountIdHasBeenSet = true; m_primaryAccountId = value; }
103 inline void SetPrimaryAccountId(Aws::String&& value) { m_primaryAccountIdHasBeenSet = true; m_primaryAccountId = std::move(value); }
104 inline void SetPrimaryAccountId(const char* value) { m_primaryAccountIdHasBeenSet = true; m_primaryAccountId.assign(value); }
106 inline CreateBillingGroupRequest& WithPrimaryAccountId(Aws::String&& value) { SetPrimaryAccountId(std::move(value)); return *this;}
107 inline CreateBillingGroupRequest& WithPrimaryAccountId(const char* value) { SetPrimaryAccountId(value); return *this;}
109
111
114 inline const Aws::String& GetDescription() const{ return m_description; }
115 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
116 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
117 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
118 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
119 inline CreateBillingGroupRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
120 inline CreateBillingGroupRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
121 inline CreateBillingGroupRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
123
125
129 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const{ return m_tags; }
130 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
131 inline void SetTags(const Aws::Map<Aws::String, Aws::String>& value) { m_tagsHasBeenSet = true; m_tags = value; }
132 inline void SetTags(Aws::Map<Aws::String, Aws::String>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
134 inline CreateBillingGroupRequest& WithTags(Aws::Map<Aws::String, Aws::String>&& value) { SetTags(std::move(value)); return *this;}
135 inline CreateBillingGroupRequest& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
136 inline CreateBillingGroupRequest& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
137 inline CreateBillingGroupRequest& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
138 inline CreateBillingGroupRequest& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; }
139 inline CreateBillingGroupRequest& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
140 inline CreateBillingGroupRequest& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
141 inline CreateBillingGroupRequest& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
143 private:
144
145 Aws::String m_clientToken;
146 bool m_clientTokenHasBeenSet = false;
147
148 Aws::String m_name;
149 bool m_nameHasBeenSet = false;
150
151 AccountGrouping m_accountGrouping;
152 bool m_accountGroupingHasBeenSet = false;
153
154 ComputationPreference m_computationPreference;
155 bool m_computationPreferenceHasBeenSet = false;
156
157 Aws::String m_primaryAccountId;
158 bool m_primaryAccountIdHasBeenSet = false;
159
160 Aws::String m_description;
161 bool m_descriptionHasBeenSet = false;
162
164 bool m_tagsHasBeenSet = false;
165 };
166
167} // namespace Model
168} // namespace BillingConductor
169} // namespace Aws
CreateBillingGroupRequest & AddTags(Aws::String &&key, const Aws::String &value)
CreateBillingGroupRequest & WithName(Aws::String &&value)
CreateBillingGroupRequest & WithClientToken(const char *value)
CreateBillingGroupRequest & WithPrimaryAccountId(const Aws::String &value)
CreateBillingGroupRequest & WithComputationPreference(const ComputationPreference &value)
CreateBillingGroupRequest & WithName(const Aws::String &value)
void SetComputationPreference(const ComputationPreference &value)
CreateBillingGroupRequest & AddTags(Aws::String &&key, Aws::String &&value)
CreateBillingGroupRequest & WithDescription(const Aws::String &value)
CreateBillingGroupRequest & AddTags(Aws::String &&key, const char *value)
CreateBillingGroupRequest & WithClientToken(const Aws::String &value)
CreateBillingGroupRequest & WithDescription(Aws::String &&value)
AWS_BILLINGCONDUCTOR_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CreateBillingGroupRequest & WithAccountGrouping(const AccountGrouping &value)
CreateBillingGroupRequest & AddTags(const Aws::String &key, Aws::String &&value)
CreateBillingGroupRequest & WithComputationPreference(ComputationPreference &&value)
CreateBillingGroupRequest & WithName(const char *value)
CreateBillingGroupRequest & AddTags(const char *key, Aws::String &&value)
CreateBillingGroupRequest & WithPrimaryAccountId(const char *value)
AWS_BILLINGCONDUCTOR_API Aws::String SerializePayload() const override
void SetTags(const Aws::Map< Aws::String, Aws::String > &value)
CreateBillingGroupRequest & WithAccountGrouping(AccountGrouping &&value)
CreateBillingGroupRequest & WithTags(Aws::Map< Aws::String, Aws::String > &&value)
CreateBillingGroupRequest & WithDescription(const char *value)
CreateBillingGroupRequest & WithTags(const Aws::Map< Aws::String, Aws::String > &value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
CreateBillingGroupRequest & AddTags(const Aws::String &key, const Aws::String &value)
void SetTags(Aws::Map< Aws::String, Aws::String > &&value)
CreateBillingGroupRequest & WithPrimaryAccountId(Aws::String &&value)
CreateBillingGroupRequest & AddTags(const char *key, const char *value)
CreateBillingGroupRequest & WithClientToken(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