AWS SDK for C++  0.14.3
AWS SDK for C++
SignUpRequest.h
Go to the documentation of this file.
1 /*
2 * Copyright 2010-2016 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License").
5 * You may not use this file except in compliance with the License.
6 * A copy of the License is located at
7 *
8 * http://aws.amazon.com/apache2.0
9 *
10 * or in the "license" file accompanying this file. This file is distributed
11 * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
12 * express or implied. See the License for the specific language governing
13 * permissions and limitations under the License.
14 */
15 #pragma once
21 
22 namespace Aws
23 {
24 namespace CognitoIdentityProvider
25 {
26 namespace Model
27 {
28 
33  {
34  public:
35  SignUpRequest();
36  Aws::String SerializePayload() const override;
37 
38  Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
39 
43  inline const Aws::String& GetClientId() const{ return m_clientId; }
44 
48  inline void SetClientId(const Aws::String& value) { m_clientIdHasBeenSet = true; m_clientId = value; }
49 
53  inline void SetClientId(Aws::String&& value) { m_clientIdHasBeenSet = true; m_clientId = value; }
54 
58  inline void SetClientId(const char* value) { m_clientIdHasBeenSet = true; m_clientId.assign(value); }
59 
63  inline SignUpRequest& WithClientId(const Aws::String& value) { SetClientId(value); return *this;}
64 
68  inline SignUpRequest& WithClientId(Aws::String&& value) { SetClientId(value); return *this;}
69 
73  inline SignUpRequest& WithClientId(const char* value) { SetClientId(value); return *this;}
74 
79  inline const Aws::String& GetSecretHash() const{ return m_secretHash; }
80 
85  inline void SetSecretHash(const Aws::String& value) { m_secretHashHasBeenSet = true; m_secretHash = value; }
86 
91  inline void SetSecretHash(Aws::String&& value) { m_secretHashHasBeenSet = true; m_secretHash = value; }
92 
97  inline void SetSecretHash(const char* value) { m_secretHashHasBeenSet = true; m_secretHash.assign(value); }
98 
103  inline SignUpRequest& WithSecretHash(const Aws::String& value) { SetSecretHash(value); return *this;}
104 
109  inline SignUpRequest& WithSecretHash(Aws::String&& value) { SetSecretHash(value); return *this;}
110 
115  inline SignUpRequest& WithSecretHash(const char* value) { SetSecretHash(value); return *this;}
116 
120  inline const Aws::String& GetUsername() const{ return m_username; }
121 
125  inline void SetUsername(const Aws::String& value) { m_usernameHasBeenSet = true; m_username = value; }
126 
130  inline void SetUsername(Aws::String&& value) { m_usernameHasBeenSet = true; m_username = value; }
131 
135  inline void SetUsername(const char* value) { m_usernameHasBeenSet = true; m_username.assign(value); }
136 
140  inline SignUpRequest& WithUsername(const Aws::String& value) { SetUsername(value); return *this;}
141 
145  inline SignUpRequest& WithUsername(Aws::String&& value) { SetUsername(value); return *this;}
146 
150  inline SignUpRequest& WithUsername(const char* value) { SetUsername(value); return *this;}
151 
155  inline const Aws::String& GetPassword() const{ return m_password; }
156 
160  inline void SetPassword(const Aws::String& value) { m_passwordHasBeenSet = true; m_password = value; }
161 
165  inline void SetPassword(Aws::String&& value) { m_passwordHasBeenSet = true; m_password = value; }
166 
170  inline void SetPassword(const char* value) { m_passwordHasBeenSet = true; m_password.assign(value); }
171 
175  inline SignUpRequest& WithPassword(const Aws::String& value) { SetPassword(value); return *this;}
176 
180  inline SignUpRequest& WithPassword(Aws::String&& value) { SetPassword(value); return *this;}
181 
185  inline SignUpRequest& WithPassword(const char* value) { SetPassword(value); return *this;}
186 
190  inline const Aws::Vector<AttributeType>& GetUserAttributes() const{ return m_userAttributes; }
191 
195  inline void SetUserAttributes(const Aws::Vector<AttributeType>& value) { m_userAttributesHasBeenSet = true; m_userAttributes = value; }
196 
200  inline void SetUserAttributes(Aws::Vector<AttributeType>&& value) { m_userAttributesHasBeenSet = true; m_userAttributes = value; }
201 
205  inline SignUpRequest& WithUserAttributes(const Aws::Vector<AttributeType>& value) { SetUserAttributes(value); return *this;}
206 
210  inline SignUpRequest& WithUserAttributes(Aws::Vector<AttributeType>&& value) { SetUserAttributes(value); return *this;}
211 
215  inline SignUpRequest& AddUserAttributes(const AttributeType& value) { m_userAttributesHasBeenSet = true; m_userAttributes.push_back(value); return *this; }
216 
220  inline SignUpRequest& AddUserAttributes(AttributeType&& value) { m_userAttributesHasBeenSet = true; m_userAttributes.push_back(value); return *this; }
221 
225  inline const Aws::Vector<AttributeType>& GetValidationData() const{ return m_validationData; }
226 
230  inline void SetValidationData(const Aws::Vector<AttributeType>& value) { m_validationDataHasBeenSet = true; m_validationData = value; }
231 
235  inline void SetValidationData(Aws::Vector<AttributeType>&& value) { m_validationDataHasBeenSet = true; m_validationData = value; }
236 
240  inline SignUpRequest& WithValidationData(const Aws::Vector<AttributeType>& value) { SetValidationData(value); return *this;}
241 
245  inline SignUpRequest& WithValidationData(Aws::Vector<AttributeType>&& value) { SetValidationData(value); return *this;}
246 
250  inline SignUpRequest& AddValidationData(const AttributeType& value) { m_validationDataHasBeenSet = true; m_validationData.push_back(value); return *this; }
251 
255  inline SignUpRequest& AddValidationData(AttributeType&& value) { m_validationDataHasBeenSet = true; m_validationData.push_back(value); return *this; }
256 
257  private:
258  Aws::String m_clientId;
259  bool m_clientIdHasBeenSet;
260  Aws::String m_secretHash;
261  bool m_secretHashHasBeenSet;
262  Aws::String m_username;
263  bool m_usernameHasBeenSet;
264  Aws::String m_password;
265  bool m_passwordHasBeenSet;
266  Aws::Vector<AttributeType> m_userAttributes;
267  bool m_userAttributesHasBeenSet;
268  Aws::Vector<AttributeType> m_validationData;
269  bool m_validationDataHasBeenSet;
270  };
271 
272 } // namespace Model
273 } // namespace CognitoIdentityProvider
274 } // namespace Aws
SignUpRequest & WithPassword(const char *value)
SignUpRequest & WithValidationData(const Aws::Vector< AttributeType > &value)
SignUpRequest & WithSecretHash(const Aws::String &value)
SignUpRequest & WithPassword(const Aws::String &value)
SignUpRequest & WithClientId(const char *value)
Definition: SignUpRequest.h:73
SignUpRequest & AddUserAttributes(AttributeType &&value)
SignUpRequest & WithUserAttributes(Aws::Vector< AttributeType > &&value)
SignUpRequest & WithUsername(Aws::String &&value)
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:27
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:63
void SetSecretHash(const Aws::String &value)
Definition: SignUpRequest.h:85
SignUpRequest & WithClientId(const Aws::String &value)
Definition: SignUpRequest.h:63
void SetClientId(const Aws::String &value)
Definition: SignUpRequest.h:48
SignUpRequest & WithUserAttributes(const Aws::Vector< AttributeType > &value)
SignUpRequest & WithUsername(const Aws::String &value)
void SetValidationData(const Aws::Vector< AttributeType > &value)
SignUpRequest & WithValidationData(Aws::Vector< AttributeType > &&value)
#define AWS_COGNITOIDENTITYPROVIDER_API
SignUpRequest & WithPassword(Aws::String &&value)
SignUpRequest & WithSecretHash(Aws::String &&value)
SignUpRequest & AddUserAttributes(const AttributeType &value)
void SetUserAttributes(Aws::Vector< AttributeType > &&value)
SignUpRequest & AddValidationData(AttributeType &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
const Aws::Vector< AttributeType > & GetUserAttributes() const
SignUpRequest & WithClientId(Aws::String &&value)
Definition: SignUpRequest.h:68
SignUpRequest & WithSecretHash(const char *value)
const Aws::Vector< AttributeType > & GetValidationData() const
void SetValidationData(Aws::Vector< AttributeType > &&value)
SignUpRequest & WithUsername(const char *value)
void SetUserAttributes(const Aws::Vector< AttributeType > &value)
JSON (JavaScript Object Notation).
SignUpRequest & AddValidationData(const AttributeType &value)