AWS SDK for C++

AWS SDK for C++ Version 1.11.941

Loading...
Searching...
No Matches
CreateProfileEntryRequest.h
1
6#pragma once
7#include <aws/cloudextensions/CloudExtensionsRequest.h>
8#include <aws/cloudextensions/CloudExtensions_EXPORTS.h>
9#include <aws/cloudextensions/model/InterfaceOptions.h>
10#include <aws/cloudextensions/model/VersionPolicy.h>
11#include <aws/core/utils/Document.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#include <aws/core/utils/memory/stl/AWSVector.h>
16
17#include <utility>
18
19namespace Aws {
20namespace CloudExtensions {
21namespace Model {
22
30 public:
31 AWS_CLOUDEXTENSIONS_API CreateProfileEntryRequest() = default;
32
33 // Service request name is the Operation name which will send this request out,
34 // each operation should has unique request name, so that we can get operation's name from this request.
35 // Note: this is not true for response, multiple operations may have the same response name,
36 // so we can not get operation's name from response.
37 inline virtual const char* GetServiceRequestName() const override { return "CreateProfileEntry"; }
38
39 AWS_CLOUDEXTENSIONS_API Aws::String SerializePayload() const override;
40
42
45 inline const Aws::String& GetProfileIdentifier() const { return m_profileIdentifier; }
46 inline bool ProfileIdentifierHasBeenSet() const { return m_profileIdentifierHasBeenSet; }
47 template <typename ProfileIdentifierT = Aws::String>
48 void SetProfileIdentifier(ProfileIdentifierT&& value) {
49 m_profileIdentifierHasBeenSet = true;
50 m_profileIdentifier = std::forward<ProfileIdentifierT>(value);
51 }
52 template <typename ProfileIdentifierT = Aws::String>
53 CreateProfileEntryRequest& WithProfileIdentifier(ProfileIdentifierT&& value) {
54 SetProfileIdentifier(std::forward<ProfileIdentifierT>(value));
55 return *this;
56 }
58
60
61 inline const Aws::String& GetClientToken() const { return m_clientToken; }
62 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
63 template <typename ClientTokenT = Aws::String>
64 void SetClientToken(ClientTokenT&& value) {
65 m_clientTokenHasBeenSet = true;
66 m_clientToken = std::forward<ClientTokenT>(value);
67 }
68 template <typename ClientTokenT = Aws::String>
70 SetClientToken(std::forward<ClientTokenT>(value));
71 return *this;
72 }
74
76
79 inline const Aws::String& GetExtensionIdentifier() const { return m_extensionIdentifier; }
80 inline bool ExtensionIdentifierHasBeenSet() const { return m_extensionIdentifierHasBeenSet; }
81 template <typename ExtensionIdentifierT = Aws::String>
82 void SetExtensionIdentifier(ExtensionIdentifierT&& value) {
83 m_extensionIdentifierHasBeenSet = true;
84 m_extensionIdentifier = std::forward<ExtensionIdentifierT>(value);
85 }
86 template <typename ExtensionIdentifierT = Aws::String>
87 CreateProfileEntryRequest& WithExtensionIdentifier(ExtensionIdentifierT&& value) {
88 SetExtensionIdentifier(std::forward<ExtensionIdentifierT>(value));
89 return *this;
90 }
92
94
98 inline const Aws::String& GetName() const { return m_name; }
99 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
100 template <typename NameT = Aws::String>
101 void SetName(NameT&& value) {
102 m_nameHasBeenSet = true;
103 m_name = std::forward<NameT>(value);
104 }
105 template <typename NameT = Aws::String>
107 SetName(std::forward<NameT>(value));
108 return *this;
109 }
111
113
116 inline const Aws::String& GetDescription() const { return m_description; }
117 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
118 template <typename DescriptionT = Aws::String>
119 void SetDescription(DescriptionT&& value) {
120 m_descriptionHasBeenSet = true;
121 m_description = std::forward<DescriptionT>(value);
122 }
123 template <typename DescriptionT = Aws::String>
125 SetDescription(std::forward<DescriptionT>(value));
126 return *this;
127 }
129
131
135 inline const Aws::Map<Aws::String, InterfaceOptions>& GetInterfaces() const { return m_interfaces; }
136 inline bool InterfacesHasBeenSet() const { return m_interfacesHasBeenSet; }
137 template <typename InterfacesT = Aws::Map<Aws::String, InterfaceOptions>>
138 void SetInterfaces(InterfacesT&& value) {
139 m_interfacesHasBeenSet = true;
140 m_interfaces = std::forward<InterfacesT>(value);
141 }
142 template <typename InterfacesT = Aws::Map<Aws::String, InterfaceOptions>>
144 SetInterfaces(std::forward<InterfacesT>(value));
145 return *this;
146 }
147 template <typename InterfacesKeyT = Aws::String, typename InterfacesValueT = InterfaceOptions>
148 CreateProfileEntryRequest& AddInterfaces(InterfacesKeyT&& key, InterfacesValueT&& value) {
149 m_interfacesHasBeenSet = true;
150 m_interfaces.emplace(std::forward<InterfacesKeyT>(key), std::forward<InterfacesValueT>(value));
151 return *this;
152 }
154
156
160 inline const Aws::String& GetExecutionRole() const { return m_executionRole; }
161 inline bool ExecutionRoleHasBeenSet() const { return m_executionRoleHasBeenSet; }
162 template <typename ExecutionRoleT = Aws::String>
163 void SetExecutionRole(ExecutionRoleT&& value) {
164 m_executionRoleHasBeenSet = true;
165 m_executionRole = std::forward<ExecutionRoleT>(value);
166 }
167 template <typename ExecutionRoleT = Aws::String>
169 SetExecutionRole(std::forward<ExecutionRoleT>(value));
170 return *this;
171 }
173
175
179 inline const VersionPolicy& GetVersionPolicy() const { return m_versionPolicy; }
180 inline bool VersionPolicyHasBeenSet() const { return m_versionPolicyHasBeenSet; }
181 template <typename VersionPolicyT = VersionPolicy>
182 void SetVersionPolicy(VersionPolicyT&& value) {
183 m_versionPolicyHasBeenSet = true;
184 m_versionPolicy = std::forward<VersionPolicyT>(value);
185 }
186 template <typename VersionPolicyT = VersionPolicy>
188 SetVersionPolicy(std::forward<VersionPolicyT>(value));
189 return *this;
190 }
192
194
200 inline Aws::Utils::DocumentView GetSettings() const { return m_settings; }
201 inline bool SettingsHasBeenSet() const { return m_settingsHasBeenSet; }
202 template <typename SettingsT = Aws::Utils::Document>
203 void SetSettings(SettingsT&& value) {
204 m_settingsHasBeenSet = true;
205 m_settings = std::forward<SettingsT>(value);
206 }
207 template <typename SettingsT = Aws::Utils::Document>
209 SetSettings(std::forward<SettingsT>(value));
210 return *this;
211 }
213
215
219 inline const Aws::Vector<Aws::String>& GetApprove() const { return m_approve; }
220 inline bool ApproveHasBeenSet() const { return m_approveHasBeenSet; }
221 template <typename ApproveT = Aws::Vector<Aws::String>>
222 void SetApprove(ApproveT&& value) {
223 m_approveHasBeenSet = true;
224 m_approve = std::forward<ApproveT>(value);
225 }
226 template <typename ApproveT = Aws::Vector<Aws::String>>
228 SetApprove(std::forward<ApproveT>(value));
229 return *this;
230 }
231 template <typename ApproveT = Aws::String>
233 m_approveHasBeenSet = true;
234 m_approve.emplace_back(std::forward<ApproveT>(value));
235 return *this;
236 }
238
240
243 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
244 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
245 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
246 void SetTags(TagsT&& value) {
247 m_tagsHasBeenSet = true;
248 m_tags = std::forward<TagsT>(value);
249 }
250 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
252 SetTags(std::forward<TagsT>(value));
253 return *this;
254 }
255 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
256 CreateProfileEntryRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
257 m_tagsHasBeenSet = true;
258 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
259 return *this;
260 }
262 private:
263 Aws::String m_profileIdentifier;
264
266
267 Aws::String m_extensionIdentifier;
268
269 Aws::String m_name;
270
271 Aws::String m_description;
272
274
275 Aws::String m_executionRole;
276
277 VersionPolicy m_versionPolicy;
278
279 Aws::Utils::Document m_settings;
280
281 Aws::Vector<Aws::String> m_approve;
282
284 bool m_profileIdentifierHasBeenSet = false;
285 bool m_clientTokenHasBeenSet = true;
286 bool m_extensionIdentifierHasBeenSet = false;
287 bool m_nameHasBeenSet = false;
288 bool m_descriptionHasBeenSet = false;
289 bool m_interfacesHasBeenSet = false;
290 bool m_executionRoleHasBeenSet = false;
291 bool m_versionPolicyHasBeenSet = false;
292 bool m_settingsHasBeenSet = false;
293 bool m_approveHasBeenSet = false;
294 bool m_tagsHasBeenSet = false;
295};
296
297} // namespace Model
298} // namespace CloudExtensions
299} // namespace Aws
bool ApproveHasBeenSet() const
CreateProfileEntryRequest & WithSettings(SettingsT &&value)
CreateProfileEntryRequest & WithName(NameT &&value)
const Aws::String & GetExtensionIdentifier() const
void SetInterfaces(InterfacesT &&value)
CreateProfileEntryRequest & WithVersionPolicy(VersionPolicyT &&value)
const Aws::String & GetExecutionRole() const
bool SettingsHasBeenSet() const
AWS_CLOUDEXTENSIONS_API CreateProfileEntryRequest()=default
CreateProfileEntryRequest & AddInterfaces(InterfacesKeyT &&key, InterfacesValueT &&value)
CreateProfileEntryRequest & WithTags(TagsT &&value)
void SetExecutionRole(ExecutionRoleT &&value)
void SetApprove(ApproveT &&value)
const Aws::String & GetDescription() const
void SetVersionPolicy(VersionPolicyT &&value)
const Aws::Vector< Aws::String > & GetApprove() const
CreateProfileEntryRequest & WithClientToken(ClientTokenT &&value)
void SetTags(TagsT &&value)
CreateProfileEntryRequest & WithInterfaces(InterfacesT &&value)
Aws::Utils::DocumentView GetSettings() const
bool DescriptionHasBeenSet() const
bool TagsHasBeenSet() const
void SetName(NameT &&value)
CreateProfileEntryRequest & WithExtensionIdentifier(ExtensionIdentifierT &&value)
bool ClientTokenHasBeenSet() const
CreateProfileEntryRequest & AddApprove(ApproveT &&value)
bool ExtensionIdentifierHasBeenSet() const
void SetDescription(DescriptionT &&value)
bool VersionPolicyHasBeenSet() const
AWS_CLOUDEXTENSIONS_API Aws::String SerializePayload() const override
void SetProfileIdentifier(ProfileIdentifierT &&value)
bool ExecutionRoleHasBeenSet() const
bool ProfileIdentifierHasBeenSet() const
bool NameHasBeenSet() const
CreateProfileEntryRequest & WithProfileIdentifier(ProfileIdentifierT &&value)
void SetSettings(SettingsT &&value)
virtual const char * GetServiceRequestName() const override
const Aws::Map< Aws::String, Aws::String > & GetTags() const
CreateProfileEntryRequest & WithDescription(DescriptionT &&value)
void SetExtensionIdentifier(ExtensionIdentifierT &&value)
CreateProfileEntryRequest & WithApprove(ApproveT &&value)
const VersionPolicy & GetVersionPolicy() const
bool InterfacesHasBeenSet() const
const Aws::String & GetProfileIdentifier() const
CreateProfileEntryRequest & WithExecutionRole(ExecutionRoleT &&value)
const Aws::Map< Aws::String, InterfaceOptions > & GetInterfaces() const
const Aws::String & GetClientToken() const
CreateProfileEntryRequest & AddTags(TagsKeyT &&key, TagsValueT &&value)
const Aws::String & GetName() const
void SetClientToken(ClientTokenT &&value)
static Aws::Utils::UUID PseudoRandomUUID()
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