AWS SDK for C++  0.14.3
AWS SDK for C++
ForgotPasswordRequest.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 ForgotPasswordRequest& WithClientId(const Aws::String& value) { SetClientId(value); return *this;}
62 
66  inline ForgotPasswordRequest& WithClientId(Aws::String&& value) { SetClientId(value); return *this;}
67 
71  inline ForgotPasswordRequest& 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 ForgotPasswordRequest& WithSecretHash(const Aws::String& value) { SetSecretHash(value); return *this;}
102 
107  inline ForgotPasswordRequest& WithSecretHash(Aws::String&& value) { SetSecretHash(value); return *this;}
108 
113  inline ForgotPasswordRequest& 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 ForgotPasswordRequest& WithUsername(const Aws::String& value) { SetUsername(value); return *this;}
144 
149  inline ForgotPasswordRequest& WithUsername(Aws::String&& value) { SetUsername(value); return *this;}
150 
155  inline ForgotPasswordRequest& WithUsername(const char* value) { SetUsername(value); return *this;}
156 
157  private:
158  Aws::String m_clientId;
159  bool m_clientIdHasBeenSet;
160  Aws::String m_secretHash;
161  bool m_secretHashHasBeenSet;
162  Aws::String m_username;
163  bool m_usernameHasBeenSet;
164  };
165 
166 } // namespace Model
167 } // namespace CognitoIdentityProvider
168 } // namespace Aws
ForgotPasswordRequest & WithUsername(const char *value)
ForgotPasswordRequest & WithUsername(Aws::String &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:63
ForgotPasswordRequest & WithUsername(const Aws::String &value)
ForgotPasswordRequest & WithClientId(Aws::String &&value)
ForgotPasswordRequest & WithSecretHash(const char *value)
#define AWS_COGNITOIDENTITYPROVIDER_API
ForgotPasswordRequest & WithSecretHash(const Aws::String &value)
ForgotPasswordRequest & WithClientId(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
ForgotPasswordRequest & WithClientId(const char *value)
JSON (JavaScript Object Notation).
ForgotPasswordRequest & WithSecretHash(Aws::String &&value)