AWS SDK for C++  0.14.3
AWS SDK for C++
ConfirmForgotPasswordRequest.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 ConfirmForgotPasswordRequest& WithClientId(const Aws::String& value) { SetClientId(value); return *this;}
62 
66  inline ConfirmForgotPasswordRequest& WithClientId(Aws::String&& value) { SetClientId(value); return *this;}
67 
71  inline ConfirmForgotPasswordRequest& 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 ConfirmForgotPasswordRequest& WithSecretHash(const Aws::String& value) { SetSecretHash(value); return *this;}
102 
107  inline ConfirmForgotPasswordRequest& WithSecretHash(Aws::String&& value) { SetSecretHash(value); return *this;}
108 
113  inline ConfirmForgotPasswordRequest& WithSecretHash(const char* value) { SetSecretHash(value); return *this;}
114 
119  inline const Aws::String& GetUsername() const{ return m_username; }
120 
125  inline void SetUsername(const Aws::String& value) { m_usernameHasBeenSet = true; m_username = value; }
126 
131  inline void SetUsername(Aws::String&& value) { m_usernameHasBeenSet = true; m_username = value; }
132 
137  inline void SetUsername(const char* value) { m_usernameHasBeenSet = true; m_username.assign(value); }
138 
143  inline ConfirmForgotPasswordRequest& WithUsername(const Aws::String& value) { SetUsername(value); return *this;}
144 
149  inline ConfirmForgotPasswordRequest& WithUsername(Aws::String&& value) { SetUsername(value); return *this;}
150 
155  inline ConfirmForgotPasswordRequest& WithUsername(const char* value) { SetUsername(value); return *this;}
156 
161  inline const Aws::String& GetConfirmationCode() const{ return m_confirmationCode; }
162 
167  inline void SetConfirmationCode(const Aws::String& value) { m_confirmationCodeHasBeenSet = true; m_confirmationCode = value; }
168 
173  inline void SetConfirmationCode(Aws::String&& value) { m_confirmationCodeHasBeenSet = true; m_confirmationCode = value; }
174 
179  inline void SetConfirmationCode(const char* value) { m_confirmationCodeHasBeenSet = true; m_confirmationCode.assign(value); }
180 
185  inline ConfirmForgotPasswordRequest& WithConfirmationCode(const Aws::String& value) { SetConfirmationCode(value); return *this;}
186 
191  inline ConfirmForgotPasswordRequest& WithConfirmationCode(Aws::String&& value) { SetConfirmationCode(value); return *this;}
192 
197  inline ConfirmForgotPasswordRequest& WithConfirmationCode(const char* value) { SetConfirmationCode(value); return *this;}
198 
203  inline const Aws::String& GetPassword() const{ return m_password; }
204 
209  inline void SetPassword(const Aws::String& value) { m_passwordHasBeenSet = true; m_password = value; }
210 
215  inline void SetPassword(Aws::String&& value) { m_passwordHasBeenSet = true; m_password = value; }
216 
221  inline void SetPassword(const char* value) { m_passwordHasBeenSet = true; m_password.assign(value); }
222 
227  inline ConfirmForgotPasswordRequest& WithPassword(const Aws::String& value) { SetPassword(value); return *this;}
228 
233  inline ConfirmForgotPasswordRequest& WithPassword(Aws::String&& value) { SetPassword(value); return *this;}
234 
239  inline ConfirmForgotPasswordRequest& WithPassword(const char* value) { SetPassword(value); return *this;}
240 
241  private:
242  Aws::String m_clientId;
243  bool m_clientIdHasBeenSet;
244  Aws::String m_secretHash;
245  bool m_secretHashHasBeenSet;
246  Aws::String m_username;
247  bool m_usernameHasBeenSet;
248  Aws::String m_confirmationCode;
249  bool m_confirmationCodeHasBeenSet;
250  Aws::String m_password;
251  bool m_passwordHasBeenSet;
252  };
253 
254 } // namespace Model
255 } // namespace CognitoIdentityProvider
256 } // namespace Aws
ConfirmForgotPasswordRequest & WithClientId(Aws::String &&value)
ConfirmForgotPasswordRequest & WithUsername(Aws::String &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:63
ConfirmForgotPasswordRequest & WithSecretHash(const Aws::String &value)
ConfirmForgotPasswordRequest & WithUsername(const Aws::String &value)
ConfirmForgotPasswordRequest & WithConfirmationCode(const Aws::String &value)
#define AWS_COGNITOIDENTITYPROVIDER_API
ConfirmForgotPasswordRequest & WithConfirmationCode(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
ConfirmForgotPasswordRequest & WithPassword(const Aws::String &value)
ConfirmForgotPasswordRequest & WithSecretHash(Aws::String &&value)
ConfirmForgotPasswordRequest & WithPassword(Aws::String &&value)
ConfirmForgotPasswordRequest & WithConfirmationCode(const char *value)
ConfirmForgotPasswordRequest & WithClientId(const Aws::String &value)
JSON (JavaScript Object Notation).