AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
SignUpRequest.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/AnalyticsMetadataType.h>
12#include <aws/cognito-idp/model/UserContextDataType.h>
13#include <aws/core/utils/memory/stl/AWSMap.h>
14#include <aws/cognito-idp/model/AttributeType.h>
15#include <utility>
16
17namespace Aws
18{
19namespace CognitoIdentityProvider
20{
21namespace Model
22{
23
30 {
31 public:
32 AWS_COGNITOIDENTITYPROVIDER_API SignUpRequest();
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 "SignUp"; }
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& GetClientId() const{ return m_clientId; }
50 inline bool ClientIdHasBeenSet() const { return m_clientIdHasBeenSet; }
51 inline void SetClientId(const Aws::String& value) { m_clientIdHasBeenSet = true; m_clientId = value; }
52 inline void SetClientId(Aws::String&& value) { m_clientIdHasBeenSet = true; m_clientId = std::move(value); }
53 inline void SetClientId(const char* value) { m_clientIdHasBeenSet = true; m_clientId.assign(value); }
54 inline SignUpRequest& WithClientId(const Aws::String& value) { SetClientId(value); return *this;}
55 inline SignUpRequest& WithClientId(Aws::String&& value) { SetClientId(std::move(value)); return *this;}
56 inline SignUpRequest& WithClientId(const char* value) { SetClientId(value); return *this;}
58
60
64 inline const Aws::String& GetSecretHash() const{ return m_secretHash; }
65 inline bool SecretHashHasBeenSet() const { return m_secretHashHasBeenSet; }
66 inline void SetSecretHash(const Aws::String& value) { m_secretHashHasBeenSet = true; m_secretHash = value; }
67 inline void SetSecretHash(Aws::String&& value) { m_secretHashHasBeenSet = true; m_secretHash = std::move(value); }
68 inline void SetSecretHash(const char* value) { m_secretHashHasBeenSet = true; m_secretHash.assign(value); }
69 inline SignUpRequest& WithSecretHash(const Aws::String& value) { SetSecretHash(value); return *this;}
70 inline SignUpRequest& WithSecretHash(Aws::String&& value) { SetSecretHash(std::move(value)); return *this;}
71 inline SignUpRequest& WithSecretHash(const char* value) { SetSecretHash(value); return *this;}
73
75
80 inline const Aws::String& GetUsername() const{ return m_username; }
81 inline bool UsernameHasBeenSet() const { return m_usernameHasBeenSet; }
82 inline void SetUsername(const Aws::String& value) { m_usernameHasBeenSet = true; m_username = value; }
83 inline void SetUsername(Aws::String&& value) { m_usernameHasBeenSet = true; m_username = std::move(value); }
84 inline void SetUsername(const char* value) { m_usernameHasBeenSet = true; m_username.assign(value); }
85 inline SignUpRequest& WithUsername(const Aws::String& value) { SetUsername(value); return *this;}
86 inline SignUpRequest& WithUsername(Aws::String&& value) { SetUsername(std::move(value)); return *this;}
87 inline SignUpRequest& WithUsername(const char* value) { SetUsername(value); return *this;}
89
91
94 inline const Aws::String& GetPassword() const{ return m_password; }
95 inline bool PasswordHasBeenSet() const { return m_passwordHasBeenSet; }
96 inline void SetPassword(const Aws::String& value) { m_passwordHasBeenSet = true; m_password = value; }
97 inline void SetPassword(Aws::String&& value) { m_passwordHasBeenSet = true; m_password = std::move(value); }
98 inline void SetPassword(const char* value) { m_passwordHasBeenSet = true; m_password.assign(value); }
99 inline SignUpRequest& WithPassword(const Aws::String& value) { SetPassword(value); return *this;}
100 inline SignUpRequest& WithPassword(Aws::String&& value) { SetPassword(std::move(value)); return *this;}
101 inline SignUpRequest& WithPassword(const char* value) { SetPassword(value); return *this;}
103
105
110 inline const Aws::Vector<AttributeType>& GetUserAttributes() const{ return m_userAttributes; }
111 inline bool UserAttributesHasBeenSet() const { return m_userAttributesHasBeenSet; }
112 inline void SetUserAttributes(const Aws::Vector<AttributeType>& value) { m_userAttributesHasBeenSet = true; m_userAttributes = value; }
113 inline void SetUserAttributes(Aws::Vector<AttributeType>&& value) { m_userAttributesHasBeenSet = true; m_userAttributes = std::move(value); }
115 inline SignUpRequest& WithUserAttributes(Aws::Vector<AttributeType>&& value) { SetUserAttributes(std::move(value)); return *this;}
116 inline SignUpRequest& AddUserAttributes(const AttributeType& value) { m_userAttributesHasBeenSet = true; m_userAttributes.push_back(value); return *this; }
117 inline SignUpRequest& AddUserAttributes(AttributeType&& value) { m_userAttributesHasBeenSet = true; m_userAttributes.push_back(std::move(value)); return *this; }
119
121
134 inline const Aws::Vector<AttributeType>& GetValidationData() const{ return m_validationData; }
135 inline bool ValidationDataHasBeenSet() const { return m_validationDataHasBeenSet; }
136 inline void SetValidationData(const Aws::Vector<AttributeType>& value) { m_validationDataHasBeenSet = true; m_validationData = value; }
137 inline void SetValidationData(Aws::Vector<AttributeType>&& value) { m_validationDataHasBeenSet = true; m_validationData = std::move(value); }
139 inline SignUpRequest& WithValidationData(Aws::Vector<AttributeType>&& value) { SetValidationData(std::move(value)); return *this;}
140 inline SignUpRequest& AddValidationData(const AttributeType& value) { m_validationDataHasBeenSet = true; m_validationData.push_back(value); return *this; }
141 inline SignUpRequest& AddValidationData(AttributeType&& value) { m_validationDataHasBeenSet = true; m_validationData.push_back(std::move(value)); return *this; }
143
145
149 inline const AnalyticsMetadataType& GetAnalyticsMetadata() const{ return m_analyticsMetadata; }
150 inline bool AnalyticsMetadataHasBeenSet() const { return m_analyticsMetadataHasBeenSet; }
151 inline void SetAnalyticsMetadata(const AnalyticsMetadataType& value) { m_analyticsMetadataHasBeenSet = true; m_analyticsMetadata = value; }
152 inline void SetAnalyticsMetadata(AnalyticsMetadataType&& value) { m_analyticsMetadataHasBeenSet = true; m_analyticsMetadata = std::move(value); }
154 inline SignUpRequest& WithAnalyticsMetadata(AnalyticsMetadataType&& value) { SetAnalyticsMetadata(std::move(value)); return *this;}
156
158
164 inline const UserContextDataType& GetUserContextData() const{ return m_userContextData; }
165 inline bool UserContextDataHasBeenSet() const { return m_userContextDataHasBeenSet; }
166 inline void SetUserContextData(const UserContextDataType& value) { m_userContextDataHasBeenSet = true; m_userContextData = value; }
167 inline void SetUserContextData(UserContextDataType&& value) { m_userContextDataHasBeenSet = true; m_userContextData = std::move(value); }
168 inline SignUpRequest& WithUserContextData(const UserContextDataType& value) { SetUserContextData(value); return *this;}
169 inline SignUpRequest& WithUserContextData(UserContextDataType&& value) { SetUserContextData(std::move(value)); return *this;}
171
173
196 inline const Aws::Map<Aws::String, Aws::String>& GetClientMetadata() const{ return m_clientMetadata; }
197 inline bool ClientMetadataHasBeenSet() const { return m_clientMetadataHasBeenSet; }
198 inline void SetClientMetadata(const Aws::Map<Aws::String, Aws::String>& value) { m_clientMetadataHasBeenSet = true; m_clientMetadata = value; }
199 inline void SetClientMetadata(Aws::Map<Aws::String, Aws::String>&& value) { m_clientMetadataHasBeenSet = true; m_clientMetadata = std::move(value); }
202 inline SignUpRequest& AddClientMetadata(const Aws::String& key, const Aws::String& value) { m_clientMetadataHasBeenSet = true; m_clientMetadata.emplace(key, value); return *this; }
203 inline SignUpRequest& AddClientMetadata(Aws::String&& key, const Aws::String& value) { m_clientMetadataHasBeenSet = true; m_clientMetadata.emplace(std::move(key), value); return *this; }
204 inline SignUpRequest& AddClientMetadata(const Aws::String& key, Aws::String&& value) { m_clientMetadataHasBeenSet = true; m_clientMetadata.emplace(key, std::move(value)); return *this; }
205 inline SignUpRequest& AddClientMetadata(Aws::String&& key, Aws::String&& value) { m_clientMetadataHasBeenSet = true; m_clientMetadata.emplace(std::move(key), std::move(value)); return *this; }
206 inline SignUpRequest& AddClientMetadata(const char* key, Aws::String&& value) { m_clientMetadataHasBeenSet = true; m_clientMetadata.emplace(key, std::move(value)); return *this; }
207 inline SignUpRequest& AddClientMetadata(Aws::String&& key, const char* value) { m_clientMetadataHasBeenSet = true; m_clientMetadata.emplace(std::move(key), value); return *this; }
208 inline SignUpRequest& AddClientMetadata(const char* key, const char* value) { m_clientMetadataHasBeenSet = true; m_clientMetadata.emplace(key, value); return *this; }
210 private:
211
212 Aws::String m_clientId;
213 bool m_clientIdHasBeenSet = false;
214
215 Aws::String m_secretHash;
216 bool m_secretHashHasBeenSet = false;
217
218 Aws::String m_username;
219 bool m_usernameHasBeenSet = false;
220
221 Aws::String m_password;
222 bool m_passwordHasBeenSet = false;
223
224 Aws::Vector<AttributeType> m_userAttributes;
225 bool m_userAttributesHasBeenSet = false;
226
227 Aws::Vector<AttributeType> m_validationData;
228 bool m_validationDataHasBeenSet = false;
229
230 AnalyticsMetadataType m_analyticsMetadata;
231 bool m_analyticsMetadataHasBeenSet = false;
232
233 UserContextDataType m_userContextData;
234 bool m_userContextDataHasBeenSet = false;
235
236 Aws::Map<Aws::String, Aws::String> m_clientMetadata;
237 bool m_clientMetadataHasBeenSet = false;
238 };
239
240} // namespace Model
241} // namespace CognitoIdentityProvider
242} // namespace Aws
void SetUserContextData(const UserContextDataType &value)
SignUpRequest & WithPassword(const char *value)
SignUpRequest & AddClientMetadata(Aws::String &&key, const char *value)
SignUpRequest & AddUserAttributes(AttributeType &&value)
SignUpRequest & AddClientMetadata(Aws::String &&key, Aws::String &&value)
void SetClientMetadata(const Aws::Map< Aws::String, Aws::String > &value)
SignUpRequest & WithClientId(const Aws::String &value)
AWS_COGNITOIDENTITYPROVIDER_API SignUpRequest()
SignUpRequest & WithClientMetadata(Aws::Map< Aws::String, Aws::String > &&value)
void SetUserContextData(UserContextDataType &&value)
const UserContextDataType & GetUserContextData() const
const Aws::Vector< AttributeType > & GetUserAttributes() const
SignUpRequest & WithUsername(Aws::String &&value)
SignUpRequest & AddClientMetadata(const Aws::String &key, Aws::String &&value)
SignUpRequest & WithUserContextData(UserContextDataType &&value)
SignUpRequest & AddValidationData(AttributeType &&value)
AWS_COGNITOIDENTITYPROVIDER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
SignUpRequest & AddUserAttributes(const AttributeType &value)
SignUpRequest & AddClientMetadata(const Aws::String &key, const Aws::String &value)
SignUpRequest & AddClientMetadata(const char *key, Aws::String &&value)
SignUpRequest & AddClientMetadata(const char *key, const char *value)
SignUpRequest & WithAnalyticsMetadata(AnalyticsMetadataType &&value)
void SetValidationData(const Aws::Vector< AttributeType > &value)
const Aws::Vector< AttributeType > & GetValidationData() const
SignUpRequest & WithUserAttributes(const Aws::Vector< AttributeType > &value)
void SetValidationData(Aws::Vector< AttributeType > &&value)
SignUpRequest & WithPassword(Aws::String &&value)
SignUpRequest & WithPassword(const Aws::String &value)
SignUpRequest & WithUsername(const char *value)
AWS_COGNITOIDENTITYPROVIDER_API Aws::String SerializePayload() const override
SignUpRequest & AddClientMetadata(Aws::String &&key, const Aws::String &value)
SignUpRequest & WithClientId(Aws::String &&value)
const AnalyticsMetadataType & GetAnalyticsMetadata() const
SignUpRequest & WithSecretHash(Aws::String &&value)
SignUpRequest & WithUsername(const Aws::String &value)
SignUpRequest & WithUserAttributes(Aws::Vector< AttributeType > &&value)
void SetUserAttributes(Aws::Vector< AttributeType > &&value)
SignUpRequest & WithValidationData(Aws::Vector< AttributeType > &&value)
SignUpRequest & WithClientMetadata(const Aws::Map< Aws::String, Aws::String > &value)
const Aws::Map< Aws::String, Aws::String > & GetClientMetadata() const
SignUpRequest & WithSecretHash(const char *value)
SignUpRequest & WithClientId(const char *value)
SignUpRequest & WithValidationData(const Aws::Vector< AttributeType > &value)
SignUpRequest & WithUserContextData(const UserContextDataType &value)
virtual const char * GetServiceRequestName() const override
void SetClientMetadata(Aws::Map< Aws::String, Aws::String > &&value)
SignUpRequest & AddValidationData(const AttributeType &value)
SignUpRequest & WithAnalyticsMetadata(const AnalyticsMetadataType &value)
void SetAnalyticsMetadata(const AnalyticsMetadataType &value)
void SetAnalyticsMetadata(AnalyticsMetadataType &&value)
void SetUserAttributes(const Aws::Vector< AttributeType > &value)
SignUpRequest & WithSecretHash(const 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
std::vector< T, Aws::Allocator< T > > Vector