AWS SDK for C++

AWS SDK for C++ Version 1.11.606

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
30 {
31 public:
32 AWS_COGNITOIDENTITYPROVIDER_API AdminCreateUserRequest() = default;
33
34 // Service request name is the Operation name which will send this request out,
35 // each operation should has unique request name, so that we can get operation's name from this request.
36 // Note: this is not true for response, multiple operations may have the same response name,
37 // so we can not get operation's name from response.
38 inline virtual const char* GetServiceRequestName() const override { return "AdminCreateUser"; }
39
40 AWS_COGNITOIDENTITYPROVIDER_API Aws::String SerializePayload() const override;
41
42 AWS_COGNITOIDENTITYPROVIDER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
43
44
46
49 inline const Aws::String& GetUserPoolId() const { return m_userPoolId; }
50 inline bool UserPoolIdHasBeenSet() const { return m_userPoolIdHasBeenSet; }
51 template<typename UserPoolIdT = Aws::String>
52 void SetUserPoolId(UserPoolIdT&& value) { m_userPoolIdHasBeenSet = true; m_userPoolId = std::forward<UserPoolIdT>(value); }
53 template<typename UserPoolIdT = Aws::String>
54 AdminCreateUserRequest& WithUserPoolId(UserPoolIdT&& value) { SetUserPoolId(std::forward<UserPoolIdT>(value)); return *this;}
56
58
70 inline const Aws::String& GetUsername() const { return m_username; }
71 inline bool UsernameHasBeenSet() const { return m_usernameHasBeenSet; }
72 template<typename UsernameT = Aws::String>
73 void SetUsername(UsernameT&& value) { m_usernameHasBeenSet = true; m_username = std::forward<UsernameT>(value); }
74 template<typename UsernameT = Aws::String>
75 AdminCreateUserRequest& WithUsername(UsernameT&& value) { SetUsername(std::forward<UsernameT>(value)); return *this;}
77
79
109 inline const Aws::Vector<AttributeType>& GetUserAttributes() const { return m_userAttributes; }
110 inline bool UserAttributesHasBeenSet() const { return m_userAttributesHasBeenSet; }
111 template<typename UserAttributesT = Aws::Vector<AttributeType>>
112 void SetUserAttributes(UserAttributesT&& value) { m_userAttributesHasBeenSet = true; m_userAttributes = std::forward<UserAttributesT>(value); }
113 template<typename UserAttributesT = Aws::Vector<AttributeType>>
114 AdminCreateUserRequest& WithUserAttributes(UserAttributesT&& value) { SetUserAttributes(std::forward<UserAttributesT>(value)); return *this;}
115 template<typename UserAttributesT = AttributeType>
116 AdminCreateUserRequest& AddUserAttributes(UserAttributesT&& value) { m_userAttributesHasBeenSet = true; m_userAttributes.emplace_back(std::forward<UserAttributesT>(value)); return *this; }
118
120
132 inline const Aws::Vector<AttributeType>& GetValidationData() const { return m_validationData; }
133 inline bool ValidationDataHasBeenSet() const { return m_validationDataHasBeenSet; }
134 template<typename ValidationDataT = Aws::Vector<AttributeType>>
135 void SetValidationData(ValidationDataT&& value) { m_validationDataHasBeenSet = true; m_validationData = std::forward<ValidationDataT>(value); }
136 template<typename ValidationDataT = Aws::Vector<AttributeType>>
137 AdminCreateUserRequest& WithValidationData(ValidationDataT&& value) { SetValidationData(std::forward<ValidationDataT>(value)); return *this;}
138 template<typename ValidationDataT = AttributeType>
139 AdminCreateUserRequest& AddValidationData(ValidationDataT&& value) { m_validationDataHasBeenSet = true; m_validationData.emplace_back(std::forward<ValidationDataT>(value)); return *this; }
141
143
159 inline const Aws::String& GetTemporaryPassword() const { return m_temporaryPassword; }
160 inline bool TemporaryPasswordHasBeenSet() const { return m_temporaryPasswordHasBeenSet; }
161 template<typename TemporaryPasswordT = Aws::String>
162 void SetTemporaryPassword(TemporaryPasswordT&& value) { m_temporaryPasswordHasBeenSet = true; m_temporaryPassword = std::forward<TemporaryPasswordT>(value); }
163 template<typename TemporaryPasswordT = Aws::String>
164 AdminCreateUserRequest& WithTemporaryPassword(TemporaryPasswordT&& value) { SetTemporaryPassword(std::forward<TemporaryPasswordT>(value)); return *this;}
166
168
179 inline bool GetForceAliasCreation() const { return m_forceAliasCreation; }
180 inline bool ForceAliasCreationHasBeenSet() const { return m_forceAliasCreationHasBeenSet; }
181 inline void SetForceAliasCreation(bool value) { m_forceAliasCreationHasBeenSet = true; m_forceAliasCreation = value; }
182 inline AdminCreateUserRequest& WithForceAliasCreation(bool value) { SetForceAliasCreation(value); return *this;}
184
186
192 inline MessageActionType GetMessageAction() const { return m_messageAction; }
193 inline bool MessageActionHasBeenSet() const { return m_messageActionHasBeenSet; }
194 inline void SetMessageAction(MessageActionType value) { m_messageActionHasBeenSet = true; m_messageAction = value; }
197
199
204 inline const Aws::Vector<DeliveryMediumType>& GetDesiredDeliveryMediums() const { return m_desiredDeliveryMediums; }
205 inline bool DesiredDeliveryMediumsHasBeenSet() const { return m_desiredDeliveryMediumsHasBeenSet; }
206 template<typename DesiredDeliveryMediumsT = Aws::Vector<DeliveryMediumType>>
207 void SetDesiredDeliveryMediums(DesiredDeliveryMediumsT&& value) { m_desiredDeliveryMediumsHasBeenSet = true; m_desiredDeliveryMediums = std::forward<DesiredDeliveryMediumsT>(value); }
208 template<typename DesiredDeliveryMediumsT = Aws::Vector<DeliveryMediumType>>
209 AdminCreateUserRequest& WithDesiredDeliveryMediums(DesiredDeliveryMediumsT&& value) { SetDesiredDeliveryMediums(std::forward<DesiredDeliveryMediumsT>(value)); return *this;}
210 inline AdminCreateUserRequest& AddDesiredDeliveryMediums(DeliveryMediumType value) { m_desiredDeliveryMediumsHasBeenSet = true; m_desiredDeliveryMediums.push_back(value); return *this; }
212
214
238 inline const Aws::Map<Aws::String, Aws::String>& GetClientMetadata() const { return m_clientMetadata; }
239 inline bool ClientMetadataHasBeenSet() const { return m_clientMetadataHasBeenSet; }
240 template<typename ClientMetadataT = Aws::Map<Aws::String, Aws::String>>
241 void SetClientMetadata(ClientMetadataT&& value) { m_clientMetadataHasBeenSet = true; m_clientMetadata = std::forward<ClientMetadataT>(value); }
242 template<typename ClientMetadataT = Aws::Map<Aws::String, Aws::String>>
243 AdminCreateUserRequest& WithClientMetadata(ClientMetadataT&& value) { SetClientMetadata(std::forward<ClientMetadataT>(value)); return *this;}
244 template<typename ClientMetadataKeyT = Aws::String, typename ClientMetadataValueT = Aws::String>
245 AdminCreateUserRequest& AddClientMetadata(ClientMetadataKeyT&& key, ClientMetadataValueT&& value) {
246 m_clientMetadataHasBeenSet = true; m_clientMetadata.emplace(std::forward<ClientMetadataKeyT>(key), std::forward<ClientMetadataValueT>(value)); return *this;
247 }
249 private:
250
251 Aws::String m_userPoolId;
252 bool m_userPoolIdHasBeenSet = false;
253
254 Aws::String m_username;
255 bool m_usernameHasBeenSet = false;
256
257 Aws::Vector<AttributeType> m_userAttributes;
258 bool m_userAttributesHasBeenSet = false;
259
260 Aws::Vector<AttributeType> m_validationData;
261 bool m_validationDataHasBeenSet = false;
262
263 Aws::String m_temporaryPassword;
264 bool m_temporaryPasswordHasBeenSet = false;
265
266 bool m_forceAliasCreation{false};
267 bool m_forceAliasCreationHasBeenSet = false;
268
270 bool m_messageActionHasBeenSet = false;
271
272 Aws::Vector<DeliveryMediumType> m_desiredDeliveryMediums;
273 bool m_desiredDeliveryMediumsHasBeenSet = false;
274
275 Aws::Map<Aws::String, Aws::String> m_clientMetadata;
276 bool m_clientMetadataHasBeenSet = false;
277 };
278
279} // namespace Model
280} // namespace CognitoIdentityProvider
281} // 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