AWS SDK for C++  0.14.3
AWS SDK for C++
ConfirmSignUpRequest.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
19 
20 namespace Aws
21 {
22 namespace CognitoIdentityProvider
23 {
24 namespace Model
25 {
26 
31  {
32  public:
34  Aws::String SerializePayload() const override;
35 
36  Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
37 
41  inline const Aws::String& GetClientId() const{ return m_clientId; }
42 
46  inline void SetClientId(const Aws::String& value) { m_clientIdHasBeenSet = true; m_clientId = value; }
47 
51  inline void SetClientId(Aws::String&& value) { m_clientIdHasBeenSet = true; m_clientId = value; }
52 
56  inline void SetClientId(const char* value) { m_clientIdHasBeenSet = true; m_clientId.assign(value); }
57 
61  inline ConfirmSignUpRequest& WithClientId(const Aws::String& value) { SetClientId(value); return *this;}
62 
66  inline ConfirmSignUpRequest& WithClientId(Aws::String&& value) { SetClientId(value); return *this;}
67 
71  inline ConfirmSignUpRequest& WithClientId(const char* value) { SetClientId(value); return *this;}
72 
77  inline const Aws::String& GetSecretHash() const{ return m_secretHash; }
78 
83  inline void SetSecretHash(const Aws::String& value) { m_secretHashHasBeenSet = true; m_secretHash = value; }
84 
89  inline void SetSecretHash(Aws::String&& value) { m_secretHashHasBeenSet = true; m_secretHash = value; }
90 
95  inline void SetSecretHash(const char* value) { m_secretHashHasBeenSet = true; m_secretHash.assign(value); }
96 
101  inline ConfirmSignUpRequest& WithSecretHash(const Aws::String& value) { SetSecretHash(value); return *this;}
102 
107  inline ConfirmSignUpRequest& WithSecretHash(Aws::String&& value) { SetSecretHash(value); return *this;}
108 
113  inline ConfirmSignUpRequest& WithSecretHash(const char* value) { SetSecretHash(value); return *this;}
114 
118  inline const Aws::String& GetUsername() const{ return m_username; }
119 
123  inline void SetUsername(const Aws::String& value) { m_usernameHasBeenSet = true; m_username = value; }
124 
128  inline void SetUsername(Aws::String&& value) { m_usernameHasBeenSet = true; m_username = value; }
129 
133  inline void SetUsername(const char* value) { m_usernameHasBeenSet = true; m_username.assign(value); }
134 
138  inline ConfirmSignUpRequest& WithUsername(const Aws::String& value) { SetUsername(value); return *this;}
139 
143  inline ConfirmSignUpRequest& WithUsername(Aws::String&& value) { SetUsername(value); return *this;}
144 
148  inline ConfirmSignUpRequest& WithUsername(const char* value) { SetUsername(value); return *this;}
149 
153  inline const Aws::String& GetConfirmationCode() const{ return m_confirmationCode; }
154 
158  inline void SetConfirmationCode(const Aws::String& value) { m_confirmationCodeHasBeenSet = true; m_confirmationCode = value; }
159 
163  inline void SetConfirmationCode(Aws::String&& value) { m_confirmationCodeHasBeenSet = true; m_confirmationCode = value; }
164 
168  inline void SetConfirmationCode(const char* value) { m_confirmationCodeHasBeenSet = true; m_confirmationCode.assign(value); }
169 
173  inline ConfirmSignUpRequest& WithConfirmationCode(const Aws::String& value) { SetConfirmationCode(value); return *this;}
174 
178  inline ConfirmSignUpRequest& WithConfirmationCode(Aws::String&& value) { SetConfirmationCode(value); return *this;}
179 
183  inline ConfirmSignUpRequest& WithConfirmationCode(const char* value) { SetConfirmationCode(value); return *this;}
184 
193  inline bool GetForceAliasCreation() const{ return m_forceAliasCreation; }
194 
203  inline void SetForceAliasCreation(bool value) { m_forceAliasCreationHasBeenSet = true; m_forceAliasCreation = value; }
204 
213  inline ConfirmSignUpRequest& WithForceAliasCreation(bool value) { SetForceAliasCreation(value); return *this;}
214 
215  private:
216  Aws::String m_clientId;
217  bool m_clientIdHasBeenSet;
218  Aws::String m_secretHash;
219  bool m_secretHashHasBeenSet;
220  Aws::String m_username;
221  bool m_usernameHasBeenSet;
222  Aws::String m_confirmationCode;
223  bool m_confirmationCodeHasBeenSet;
224  bool m_forceAliasCreation;
225  bool m_forceAliasCreationHasBeenSet;
226  };
227 
228 } // namespace Model
229 } // namespace CognitoIdentityProvider
230 } // namespace Aws
ConfirmSignUpRequest & WithClientId(Aws::String &&value)
ConfirmSignUpRequest & WithUsername(Aws::String &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:63
ConfirmSignUpRequest & WithUsername(const char *value)
ConfirmSignUpRequest & WithConfirmationCode(Aws::String &&value)
#define AWS_COGNITOIDENTITYPROVIDER_API
ConfirmSignUpRequest & WithConfirmationCode(const char *value)
ConfirmSignUpRequest & WithSecretHash(Aws::String &&value)
ConfirmSignUpRequest & WithClientId(const char *value)
ConfirmSignUpRequest & WithClientId(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
ConfirmSignUpRequest & WithSecretHash(const Aws::String &value)
ConfirmSignUpRequest & WithConfirmationCode(const Aws::String &value)
ConfirmSignUpRequest & WithSecretHash(const char *value)
ConfirmSignUpRequest & WithUsername(const Aws::String &value)
JSON (JavaScript Object Notation).