AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
AdminCreateUserRequest.h
1
6#pragma once
7#include <aws/cognito-idp/CognitoIdentityProviderRequest.h>
8#include <aws/cognito-idp/CognitoIdentityProvider_EXPORTS.h>
9#include <aws/cognito-idp/model/AttributeType.h>
10#include <aws/cognito-idp/model/DeliveryMediumType.h>
11#include <aws/cognito-idp/model/MessageActionType.h>
12#include <aws/core/utils/memory/stl/AWSMap.h>
13#include <aws/core/utils/memory/stl/AWSString.h>
14#include <aws/core/utils/memory/stl/AWSVector.h>
15
16#include <utility>
17
18namespace Aws {
19namespace CognitoIdentityProvider {
20namespace Model {
21
28 public:
29 AWS_COGNITOIDENTITYPROVIDER_API AdminCreateUserRequest() = default;
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 "AdminCreateUser"; }
36
37 AWS_COGNITOIDENTITYPROVIDER_API Aws::String SerializePayload() const override;
38
39 AWS_COGNITOIDENTITYPROVIDER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
40
42
45 inline const Aws::String& GetUserPoolId() const { return m_userPoolId; }
46 inline bool UserPoolIdHasBeenSet() const { return m_userPoolIdHasBeenSet; }
47 template <typename UserPoolIdT = Aws::String>
48 void SetUserPoolId(UserPoolIdT&& value) {
49 m_userPoolIdHasBeenSet = true;
50 m_userPoolId = std::forward<UserPoolIdT>(value);
51 }
52 template <typename UserPoolIdT = Aws::String>
53 AdminCreateUserRequest& WithUserPoolId(UserPoolIdT&& value) {
54 SetUserPoolId(std::forward<UserPoolIdT>(value));
55 return *this;
56 }
58
60
72 inline const Aws::String& GetUsername() const { return m_username; }
73 inline bool UsernameHasBeenSet() const { return m_usernameHasBeenSet; }
74 template <typename UsernameT = Aws::String>
75 void SetUsername(UsernameT&& value) {
76 m_usernameHasBeenSet = true;
77 m_username = std::forward<UsernameT>(value);
78 }
79 template <typename UsernameT = Aws::String>
81 SetUsername(std::forward<UsernameT>(value));
82 return *this;
83 }
85
87
117 inline const Aws::Vector<AttributeType>& GetUserAttributes() const { return m_userAttributes; }
118 inline bool UserAttributesHasBeenSet() const { return m_userAttributesHasBeenSet; }
119 template <typename UserAttributesT = Aws::Vector<AttributeType>>
120 void SetUserAttributes(UserAttributesT&& value) {
121 m_userAttributesHasBeenSet = true;
122 m_userAttributes = std::forward<UserAttributesT>(value);
123 }
124 template <typename UserAttributesT = Aws::Vector<AttributeType>>
125 AdminCreateUserRequest& WithUserAttributes(UserAttributesT&& value) {
126 SetUserAttributes(std::forward<UserAttributesT>(value));
127 return *this;
128 }
129 template <typename UserAttributesT = AttributeType>
130 AdminCreateUserRequest& AddUserAttributes(UserAttributesT&& value) {
131 m_userAttributesHasBeenSet = true;
132 m_userAttributes.emplace_back(std::forward<UserAttributesT>(value));
133 return *this;
134 }
136
138
150 inline const Aws::Vector<AttributeType>& GetValidationData() const { return m_validationData; }
151 inline bool ValidationDataHasBeenSet() const { return m_validationDataHasBeenSet; }
152 template <typename ValidationDataT = Aws::Vector<AttributeType>>
153 void SetValidationData(ValidationDataT&& value) {
154 m_validationDataHasBeenSet = true;
155 m_validationData = std::forward<ValidationDataT>(value);
156 }
157 template <typename ValidationDataT = Aws::Vector<AttributeType>>
158 AdminCreateUserRequest& WithValidationData(ValidationDataT&& value) {
159 SetValidationData(std::forward<ValidationDataT>(value));
160 return *this;
161 }
162 template <typename ValidationDataT = AttributeType>
163 AdminCreateUserRequest& AddValidationData(ValidationDataT&& value) {
164 m_validationDataHasBeenSet = true;
165 m_validationData.emplace_back(std::forward<ValidationDataT>(value));
166 return *this;
167 }
169
171
187 inline const Aws::String& GetTemporaryPassword() const { return m_temporaryPassword; }
188 inline bool TemporaryPasswordHasBeenSet() const { return m_temporaryPasswordHasBeenSet; }
189 template <typename TemporaryPasswordT = Aws::String>
190 void SetTemporaryPassword(TemporaryPasswordT&& value) {
191 m_temporaryPasswordHasBeenSet = true;
192 m_temporaryPassword = std::forward<TemporaryPasswordT>(value);
193 }
194 template <typename TemporaryPasswordT = Aws::String>
195 AdminCreateUserRequest& WithTemporaryPassword(TemporaryPasswordT&& value) {
196 SetTemporaryPassword(std::forward<TemporaryPasswordT>(value));
197 return *this;
198 }
200
202
213 inline bool GetForceAliasCreation() const { return m_forceAliasCreation; }
214 inline bool ForceAliasCreationHasBeenSet() const { return m_forceAliasCreationHasBeenSet; }
215 inline void SetForceAliasCreation(bool value) {
216 m_forceAliasCreationHasBeenSet = true;
217 m_forceAliasCreation = value;
218 }
221 return *this;
222 }
224
226
232 inline MessageActionType GetMessageAction() const { return m_messageAction; }
233 inline bool MessageActionHasBeenSet() const { return m_messageActionHasBeenSet; }
235 m_messageActionHasBeenSet = true;
236 m_messageAction = value;
237 }
239 SetMessageAction(value);
240 return *this;
241 }
243
245
250 inline const Aws::Vector<DeliveryMediumType>& GetDesiredDeliveryMediums() const { return m_desiredDeliveryMediums; }
251 inline bool DesiredDeliveryMediumsHasBeenSet() const { return m_desiredDeliveryMediumsHasBeenSet; }
252 template <typename DesiredDeliveryMediumsT = Aws::Vector<DeliveryMediumType>>
253 void SetDesiredDeliveryMediums(DesiredDeliveryMediumsT&& value) {
254 m_desiredDeliveryMediumsHasBeenSet = true;
255 m_desiredDeliveryMediums = std::forward<DesiredDeliveryMediumsT>(value);
256 }
257 template <typename DesiredDeliveryMediumsT = Aws::Vector<DeliveryMediumType>>
258 AdminCreateUserRequest& WithDesiredDeliveryMediums(DesiredDeliveryMediumsT&& value) {
259 SetDesiredDeliveryMediums(std::forward<DesiredDeliveryMediumsT>(value));
260 return *this;
261 }
263 m_desiredDeliveryMediumsHasBeenSet = true;
264 m_desiredDeliveryMediums.push_back(value);
265 return *this;
266 }
268
270
294 inline const Aws::Map<Aws::String, Aws::String>& GetClientMetadata() const { return m_clientMetadata; }
295 inline bool ClientMetadataHasBeenSet() const { return m_clientMetadataHasBeenSet; }
296 template <typename ClientMetadataT = Aws::Map<Aws::String, Aws::String>>
297 void SetClientMetadata(ClientMetadataT&& value) {
298 m_clientMetadataHasBeenSet = true;
299 m_clientMetadata = std::forward<ClientMetadataT>(value);
300 }
301 template <typename ClientMetadataT = Aws::Map<Aws::String, Aws::String>>
302 AdminCreateUserRequest& WithClientMetadata(ClientMetadataT&& value) {
303 SetClientMetadata(std::forward<ClientMetadataT>(value));
304 return *this;
305 }
306 template <typename ClientMetadataKeyT = Aws::String, typename ClientMetadataValueT = Aws::String>
307 AdminCreateUserRequest& AddClientMetadata(ClientMetadataKeyT&& key, ClientMetadataValueT&& value) {
308 m_clientMetadataHasBeenSet = true;
309 m_clientMetadata.emplace(std::forward<ClientMetadataKeyT>(key), std::forward<ClientMetadataValueT>(value));
310 return *this;
311 }
313 private:
314 Aws::String m_userPoolId;
315
316 Aws::String m_username;
317
318 Aws::Vector<AttributeType> m_userAttributes;
319
320 Aws::Vector<AttributeType> m_validationData;
321
322 Aws::String m_temporaryPassword;
323
324 bool m_forceAliasCreation{false};
325
327
328 Aws::Vector<DeliveryMediumType> m_desiredDeliveryMediums;
329
330 Aws::Map<Aws::String, Aws::String> m_clientMetadata;
331 bool m_userPoolIdHasBeenSet = false;
332 bool m_usernameHasBeenSet = false;
333 bool m_userAttributesHasBeenSet = false;
334 bool m_validationDataHasBeenSet = false;
335 bool m_temporaryPasswordHasBeenSet = false;
336 bool m_forceAliasCreationHasBeenSet = false;
337 bool m_messageActionHasBeenSet = false;
338 bool m_desiredDeliveryMediumsHasBeenSet = false;
339 bool m_clientMetadataHasBeenSet = false;
340};
341
342} // namespace Model
343} // namespace CognitoIdentityProvider
344} // namespace Aws
const Aws::Map< Aws::String, Aws::String > & GetClientMetadata() const
const Aws::Vector< AttributeType > & GetValidationData() const
AdminCreateUserRequest & WithDesiredDeliveryMediums(DesiredDeliveryMediumsT &&value)
const Aws::Vector< AttributeType > & GetUserAttributes() const
AdminCreateUserRequest & WithTemporaryPassword(TemporaryPasswordT &&value)
const Aws::Vector< DeliveryMediumType > & GetDesiredDeliveryMediums() const
AdminCreateUserRequest & AddUserAttributes(UserAttributesT &&value)
AdminCreateUserRequest & WithValidationData(ValidationDataT &&value)
AdminCreateUserRequest & WithUserAttributes(UserAttributesT &&value)
AWS_COGNITOIDENTITYPROVIDER_API AdminCreateUserRequest()=default
AdminCreateUserRequest & AddDesiredDeliveryMediums(DeliveryMediumType value)
AWS_COGNITOIDENTITYPROVIDER_API Aws::String SerializePayload() const override
AdminCreateUserRequest & WithUserPoolId(UserPoolIdT &&value)
AdminCreateUserRequest & AddValidationData(ValidationDataT &&value)
AdminCreateUserRequest & WithClientMetadata(ClientMetadataT &&value)
AdminCreateUserRequest & WithUsername(UsernameT &&value)
AdminCreateUserRequest & WithMessageAction(MessageActionType value)
AdminCreateUserRequest & AddClientMetadata(ClientMetadataKeyT &&key, ClientMetadataValueT &&value)
AWS_COGNITOIDENTITYPROVIDER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
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