AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
AdminCreateUserRequest.h
1
6#pragma once
7#include <aws/cognito-idp/CognitoIdentityProvider_EXPORTS.h>
8#include <aws/cognito-idp/CognitoIdentityProviderRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/cognito-idp/model/MessageActionType.h>
12#include <aws/core/utils/memory/stl/AWSMap.h>
13#include <aws/cognito-idp/model/AttributeType.h>
14#include <aws/cognito-idp/model/DeliveryMediumType.h>
15#include <utility>
16
17namespace Aws
18{
19namespace CognitoIdentityProvider
20{
21namespace Model
22{
23
31 {
32 public:
33 AWS_COGNITOIDENTITYPROVIDER_API AdminCreateUserRequest();
34
35 // Service request name is the Operation name which will send this request out,
36 // each operation should has unique request name, so that we can get operation's name from this request.
37 // Note: this is not true for response, multiple operations may have the same response name,
38 // so we can not get operation's name from response.
39 inline virtual const char* GetServiceRequestName() const override { return "AdminCreateUser"; }
40
41 AWS_COGNITOIDENTITYPROVIDER_API Aws::String SerializePayload() const override;
42
43 AWS_COGNITOIDENTITYPROVIDER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
44
45
47
50 inline const Aws::String& GetUserPoolId() const{ return m_userPoolId; }
51 inline bool UserPoolIdHasBeenSet() const { return m_userPoolIdHasBeenSet; }
52 inline void SetUserPoolId(const Aws::String& value) { m_userPoolIdHasBeenSet = true; m_userPoolId = value; }
53 inline void SetUserPoolId(Aws::String&& value) { m_userPoolIdHasBeenSet = true; m_userPoolId = std::move(value); }
54 inline void SetUserPoolId(const char* value) { m_userPoolIdHasBeenSet = true; m_userPoolId.assign(value); }
55 inline AdminCreateUserRequest& WithUserPoolId(const Aws::String& value) { SetUserPoolId(value); return *this;}
56 inline AdminCreateUserRequest& WithUserPoolId(Aws::String&& value) { SetUserPoolId(std::move(value)); return *this;}
57 inline AdminCreateUserRequest& WithUserPoolId(const char* value) { SetUserPoolId(value); return *this;}
59
61
73 inline const Aws::String& GetUsername() const{ return m_username; }
74 inline bool UsernameHasBeenSet() const { return m_usernameHasBeenSet; }
75 inline void SetUsername(const Aws::String& value) { m_usernameHasBeenSet = true; m_username = value; }
76 inline void SetUsername(Aws::String&& value) { m_usernameHasBeenSet = true; m_username = std::move(value); }
77 inline void SetUsername(const char* value) { m_usernameHasBeenSet = true; m_username.assign(value); }
78 inline AdminCreateUserRequest& WithUsername(const Aws::String& value) { SetUsername(value); return *this;}
79 inline AdminCreateUserRequest& WithUsername(Aws::String&& value) { SetUsername(std::move(value)); return *this;}
80 inline AdminCreateUserRequest& WithUsername(const char* value) { SetUsername(value); return *this;}
82
84
111 inline const Aws::Vector<AttributeType>& GetUserAttributes() const{ return m_userAttributes; }
112 inline bool UserAttributesHasBeenSet() const { return m_userAttributesHasBeenSet; }
113 inline void SetUserAttributes(const Aws::Vector<AttributeType>& value) { m_userAttributesHasBeenSet = true; m_userAttributes = value; }
114 inline void SetUserAttributes(Aws::Vector<AttributeType>&& value) { m_userAttributesHasBeenSet = true; m_userAttributes = std::move(value); }
117 inline AdminCreateUserRequest& AddUserAttributes(const AttributeType& value) { m_userAttributesHasBeenSet = true; m_userAttributes.push_back(value); return *this; }
118 inline AdminCreateUserRequest& AddUserAttributes(AttributeType&& value) { m_userAttributesHasBeenSet = true; m_userAttributes.push_back(std::move(value)); return *this; }
120
122
135 inline const Aws::Vector<AttributeType>& GetValidationData() const{ return m_validationData; }
136 inline bool ValidationDataHasBeenSet() const { return m_validationDataHasBeenSet; }
137 inline void SetValidationData(const Aws::Vector<AttributeType>& value) { m_validationDataHasBeenSet = true; m_validationData = value; }
138 inline void SetValidationData(Aws::Vector<AttributeType>&& value) { m_validationDataHasBeenSet = true; m_validationData = std::move(value); }
141 inline AdminCreateUserRequest& AddValidationData(const AttributeType& value) { m_validationDataHasBeenSet = true; m_validationData.push_back(value); return *this; }
142 inline AdminCreateUserRequest& AddValidationData(AttributeType&& value) { m_validationDataHasBeenSet = true; m_validationData.push_back(std::move(value)); return *this; }
144
146
158 inline const Aws::String& GetTemporaryPassword() const{ return m_temporaryPassword; }
159 inline bool TemporaryPasswordHasBeenSet() const { return m_temporaryPasswordHasBeenSet; }
160 inline void SetTemporaryPassword(const Aws::String& value) { m_temporaryPasswordHasBeenSet = true; m_temporaryPassword = value; }
161 inline void SetTemporaryPassword(Aws::String&& value) { m_temporaryPasswordHasBeenSet = true; m_temporaryPassword = std::move(value); }
162 inline void SetTemporaryPassword(const char* value) { m_temporaryPasswordHasBeenSet = true; m_temporaryPassword.assign(value); }
164 inline AdminCreateUserRequest& WithTemporaryPassword(Aws::String&& value) { SetTemporaryPassword(std::move(value)); return *this;}
165 inline AdminCreateUserRequest& WithTemporaryPassword(const char* value) { SetTemporaryPassword(value); return *this;}
167
169
180 inline bool GetForceAliasCreation() const{ return m_forceAliasCreation; }
181 inline bool ForceAliasCreationHasBeenSet() const { return m_forceAliasCreationHasBeenSet; }
182 inline void SetForceAliasCreation(bool value) { m_forceAliasCreationHasBeenSet = true; m_forceAliasCreation = value; }
183 inline AdminCreateUserRequest& WithForceAliasCreation(bool value) { SetForceAliasCreation(value); return *this;}
185
187
193 inline const MessageActionType& GetMessageAction() const{ return m_messageAction; }
194 inline bool MessageActionHasBeenSet() const { return m_messageActionHasBeenSet; }
195 inline void SetMessageAction(const MessageActionType& value) { m_messageActionHasBeenSet = true; m_messageAction = value; }
196 inline void SetMessageAction(MessageActionType&& value) { m_messageActionHasBeenSet = true; m_messageAction = std::move(value); }
197 inline AdminCreateUserRequest& WithMessageAction(const MessageActionType& value) { SetMessageAction(value); return *this;}
198 inline AdminCreateUserRequest& WithMessageAction(MessageActionType&& value) { SetMessageAction(std::move(value)); return *this;}
200
202
207 inline const Aws::Vector<DeliveryMediumType>& GetDesiredDeliveryMediums() const{ return m_desiredDeliveryMediums; }
208 inline bool DesiredDeliveryMediumsHasBeenSet() const { return m_desiredDeliveryMediumsHasBeenSet; }
209 inline void SetDesiredDeliveryMediums(const Aws::Vector<DeliveryMediumType>& value) { m_desiredDeliveryMediumsHasBeenSet = true; m_desiredDeliveryMediums = value; }
210 inline void SetDesiredDeliveryMediums(Aws::Vector<DeliveryMediumType>&& value) { m_desiredDeliveryMediumsHasBeenSet = true; m_desiredDeliveryMediums = std::move(value); }
213 inline AdminCreateUserRequest& AddDesiredDeliveryMediums(const DeliveryMediumType& value) { m_desiredDeliveryMediumsHasBeenSet = true; m_desiredDeliveryMediums.push_back(value); return *this; }
214 inline AdminCreateUserRequest& AddDesiredDeliveryMediums(DeliveryMediumType&& value) { m_desiredDeliveryMediumsHasBeenSet = true; m_desiredDeliveryMediums.push_back(std::move(value)); return *this; }
216
218
241 inline const Aws::Map<Aws::String, Aws::String>& GetClientMetadata() const{ return m_clientMetadata; }
242 inline bool ClientMetadataHasBeenSet() const { return m_clientMetadataHasBeenSet; }
243 inline void SetClientMetadata(const Aws::Map<Aws::String, Aws::String>& value) { m_clientMetadataHasBeenSet = true; m_clientMetadata = value; }
244 inline void SetClientMetadata(Aws::Map<Aws::String, Aws::String>&& value) { m_clientMetadataHasBeenSet = true; m_clientMetadata = std::move(value); }
247 inline AdminCreateUserRequest& AddClientMetadata(const Aws::String& key, const Aws::String& value) { m_clientMetadataHasBeenSet = true; m_clientMetadata.emplace(key, value); return *this; }
248 inline AdminCreateUserRequest& AddClientMetadata(Aws::String&& key, const Aws::String& value) { m_clientMetadataHasBeenSet = true; m_clientMetadata.emplace(std::move(key), value); return *this; }
249 inline AdminCreateUserRequest& AddClientMetadata(const Aws::String& key, Aws::String&& value) { m_clientMetadataHasBeenSet = true; m_clientMetadata.emplace(key, std::move(value)); return *this; }
250 inline AdminCreateUserRequest& AddClientMetadata(Aws::String&& key, Aws::String&& value) { m_clientMetadataHasBeenSet = true; m_clientMetadata.emplace(std::move(key), std::move(value)); return *this; }
251 inline AdminCreateUserRequest& AddClientMetadata(const char* key, Aws::String&& value) { m_clientMetadataHasBeenSet = true; m_clientMetadata.emplace(key, std::move(value)); return *this; }
252 inline AdminCreateUserRequest& AddClientMetadata(Aws::String&& key, const char* value) { m_clientMetadataHasBeenSet = true; m_clientMetadata.emplace(std::move(key), value); return *this; }
253 inline AdminCreateUserRequest& AddClientMetadata(const char* key, const char* value) { m_clientMetadataHasBeenSet = true; m_clientMetadata.emplace(key, value); return *this; }
255 private:
256
257 Aws::String m_userPoolId;
258 bool m_userPoolIdHasBeenSet = false;
259
260 Aws::String m_username;
261 bool m_usernameHasBeenSet = false;
262
263 Aws::Vector<AttributeType> m_userAttributes;
264 bool m_userAttributesHasBeenSet = false;
265
266 Aws::Vector<AttributeType> m_validationData;
267 bool m_validationDataHasBeenSet = false;
268
269 Aws::String m_temporaryPassword;
270 bool m_temporaryPasswordHasBeenSet = false;
271
272 bool m_forceAliasCreation;
273 bool m_forceAliasCreationHasBeenSet = false;
274
275 MessageActionType m_messageAction;
276 bool m_messageActionHasBeenSet = false;
277
278 Aws::Vector<DeliveryMediumType> m_desiredDeliveryMediums;
279 bool m_desiredDeliveryMediumsHasBeenSet = false;
280
281 Aws::Map<Aws::String, Aws::String> m_clientMetadata;
282 bool m_clientMetadataHasBeenSet = false;
283 };
284
285} // namespace Model
286} // namespace CognitoIdentityProvider
287} // namespace Aws
AdminCreateUserRequest & AddClientMetadata(Aws::String &&key, Aws::String &&value)
AdminCreateUserRequest & AddClientMetadata(const Aws::String &key, Aws::String &&value)
AdminCreateUserRequest & AddClientMetadata(Aws::String &&key, const char *value)
void SetDesiredDeliveryMediums(Aws::Vector< DeliveryMediumType > &&value)
AdminCreateUserRequest & WithValidationData(Aws::Vector< AttributeType > &&value)
const Aws::Map< Aws::String, Aws::String > & GetClientMetadata() const
const Aws::Vector< AttributeType > & GetValidationData() const
AdminCreateUserRequest & AddClientMetadata(const char *key, Aws::String &&value)
void SetClientMetadata(const Aws::Map< Aws::String, Aws::String > &value)
void SetUserAttributes(const Aws::Vector< AttributeType > &value)
AdminCreateUserRequest & WithUserPoolId(const Aws::String &value)
AdminCreateUserRequest & WithClientMetadata(Aws::Map< Aws::String, Aws::String > &&value)
void SetDesiredDeliveryMediums(const Aws::Vector< DeliveryMediumType > &value)
AdminCreateUserRequest & AddClientMetadata(const char *key, const char *value)
AdminCreateUserRequest & WithUsername(Aws::String &&value)
AdminCreateUserRequest & WithDesiredDeliveryMediums(const Aws::Vector< DeliveryMediumType > &value)
AdminCreateUserRequest & WithValidationData(const Aws::Vector< AttributeType > &value)
AdminCreateUserRequest & WithUsername(const char *value)
const Aws::Vector< AttributeType > & GetUserAttributes() const
const Aws::Vector< DeliveryMediumType > & GetDesiredDeliveryMediums() const
AWS_COGNITOIDENTITYPROVIDER_API AdminCreateUserRequest()
AdminCreateUserRequest & AddDesiredDeliveryMediums(const DeliveryMediumType &value)
AdminCreateUserRequest & AddValidationData(AttributeType &&value)
AdminCreateUserRequest & WithUserAttributes(Aws::Vector< AttributeType > &&value)
AdminCreateUserRequest & AddUserAttributes(const AttributeType &value)
AdminCreateUserRequest & WithUserPoolId(const char *value)
AdminCreateUserRequest & WithMessageAction(MessageActionType &&value)
AdminCreateUserRequest & WithUsername(const Aws::String &value)
AdminCreateUserRequest & WithMessageAction(const MessageActionType &value)
void SetValidationData(Aws::Vector< AttributeType > &&value)
AdminCreateUserRequest & AddValidationData(const AttributeType &value)
AdminCreateUserRequest & WithTemporaryPassword(const char *value)
AdminCreateUserRequest & WithUserAttributes(const Aws::Vector< AttributeType > &value)
AdminCreateUserRequest & WithDesiredDeliveryMediums(Aws::Vector< DeliveryMediumType > &&value)
AdminCreateUserRequest & AddClientMetadata(const Aws::String &key, const Aws::String &value)
AdminCreateUserRequest & WithClientMetadata(const Aws::Map< Aws::String, Aws::String > &value)
AWS_COGNITOIDENTITYPROVIDER_API Aws::String SerializePayload() const override
AdminCreateUserRequest & WithTemporaryPassword(Aws::String &&value)
void SetUserAttributes(Aws::Vector< AttributeType > &&value)
AdminCreateUserRequest & AddUserAttributes(AttributeType &&value)
void SetClientMetadata(Aws::Map< Aws::String, Aws::String > &&value)
AdminCreateUserRequest & WithUserPoolId(Aws::String &&value)
void SetValidationData(const Aws::Vector< AttributeType > &value)
AdminCreateUserRequest & WithTemporaryPassword(const Aws::String &value)
AWS_COGNITOIDENTITYPROVIDER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
AdminCreateUserRequest & AddClientMetadata(Aws::String &&key, const Aws::String &value)
AdminCreateUserRequest & AddDesiredDeliveryMediums(DeliveryMediumType &&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
std::vector< T, Aws::Allocator< T > > Vector