AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ConfirmForgotPasswordRequest.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/cognito-idp/model/AnalyticsMetadataType.h>
11#include <aws/cognito-idp/model/UserContextDataType.h>
12#include <aws/core/utils/memory/stl/AWSMap.h>
13#include <utility>
14
15namespace Aws
16{
17namespace CognitoIdentityProvider
18{
19namespace Model
20{
21
29 {
30 public:
31 AWS_COGNITOIDENTITYPROVIDER_API ConfirmForgotPasswordRequest();
32
33 // Service request name is the Operation name which will send this request out,
34 // each operation should has unique request name, so that we can get operation's name from this request.
35 // Note: this is not true for response, multiple operations may have the same response name,
36 // so we can not get operation's name from response.
37 inline virtual const char* GetServiceRequestName() const override { return "ConfirmForgotPassword"; }
38
39 AWS_COGNITOIDENTITYPROVIDER_API Aws::String SerializePayload() const override;
40
41 AWS_COGNITOIDENTITYPROVIDER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
42
43
45
48 inline const Aws::String& GetClientId() const{ return m_clientId; }
49 inline bool ClientIdHasBeenSet() const { return m_clientIdHasBeenSet; }
50 inline void SetClientId(const Aws::String& value) { m_clientIdHasBeenSet = true; m_clientId = value; }
51 inline void SetClientId(Aws::String&& value) { m_clientIdHasBeenSet = true; m_clientId = std::move(value); }
52 inline void SetClientId(const char* value) { m_clientIdHasBeenSet = true; m_clientId.assign(value); }
53 inline ConfirmForgotPasswordRequest& WithClientId(const Aws::String& value) { SetClientId(value); return *this;}
54 inline ConfirmForgotPasswordRequest& WithClientId(Aws::String&& value) { SetClientId(std::move(value)); return *this;}
55 inline ConfirmForgotPasswordRequest& WithClientId(const char* value) { SetClientId(value); return *this;}
57
59
66 inline const Aws::String& GetSecretHash() const{ return m_secretHash; }
67 inline bool SecretHashHasBeenSet() const { return m_secretHashHasBeenSet; }
68 inline void SetSecretHash(const Aws::String& value) { m_secretHashHasBeenSet = true; m_secretHash = value; }
69 inline void SetSecretHash(Aws::String&& value) { m_secretHashHasBeenSet = true; m_secretHash = std::move(value); }
70 inline void SetSecretHash(const char* value) { m_secretHashHasBeenSet = true; m_secretHash.assign(value); }
71 inline ConfirmForgotPasswordRequest& WithSecretHash(const Aws::String& value) { SetSecretHash(value); return *this;}
72 inline ConfirmForgotPasswordRequest& WithSecretHash(Aws::String&& value) { SetSecretHash(std::move(value)); return *this;}
73 inline ConfirmForgotPasswordRequest& WithSecretHash(const char* value) { SetSecretHash(value); return *this;}
75
77
84 inline const Aws::String& GetUsername() const{ return m_username; }
85 inline bool UsernameHasBeenSet() const { return m_usernameHasBeenSet; }
86 inline void SetUsername(const Aws::String& value) { m_usernameHasBeenSet = true; m_username = value; }
87 inline void SetUsername(Aws::String&& value) { m_usernameHasBeenSet = true; m_username = std::move(value); }
88 inline void SetUsername(const char* value) { m_usernameHasBeenSet = true; m_username.assign(value); }
89 inline ConfirmForgotPasswordRequest& WithUsername(const Aws::String& value) { SetUsername(value); return *this;}
90 inline ConfirmForgotPasswordRequest& WithUsername(Aws::String&& value) { SetUsername(std::move(value)); return *this;}
91 inline ConfirmForgotPasswordRequest& WithUsername(const char* value) { SetUsername(value); return *this;}
93
95
100 inline const Aws::String& GetConfirmationCode() const{ return m_confirmationCode; }
101 inline bool ConfirmationCodeHasBeenSet() const { return m_confirmationCodeHasBeenSet; }
102 inline void SetConfirmationCode(const Aws::String& value) { m_confirmationCodeHasBeenSet = true; m_confirmationCode = value; }
103 inline void SetConfirmationCode(Aws::String&& value) { m_confirmationCodeHasBeenSet = true; m_confirmationCode = std::move(value); }
104 inline void SetConfirmationCode(const char* value) { m_confirmationCodeHasBeenSet = true; m_confirmationCode.assign(value); }
106 inline ConfirmForgotPasswordRequest& WithConfirmationCode(Aws::String&& value) { SetConfirmationCode(std::move(value)); return *this;}
107 inline ConfirmForgotPasswordRequest& WithConfirmationCode(const char* value) { SetConfirmationCode(value); return *this;}
109
111
114 inline const Aws::String& GetPassword() const{ return m_password; }
115 inline bool PasswordHasBeenSet() const { return m_passwordHasBeenSet; }
116 inline void SetPassword(const Aws::String& value) { m_passwordHasBeenSet = true; m_password = value; }
117 inline void SetPassword(Aws::String&& value) { m_passwordHasBeenSet = true; m_password = std::move(value); }
118 inline void SetPassword(const char* value) { m_passwordHasBeenSet = true; m_password.assign(value); }
119 inline ConfirmForgotPasswordRequest& WithPassword(const Aws::String& value) { SetPassword(value); return *this;}
120 inline ConfirmForgotPasswordRequest& WithPassword(Aws::String&& value) { SetPassword(std::move(value)); return *this;}
121 inline ConfirmForgotPasswordRequest& WithPassword(const char* value) { SetPassword(value); return *this;}
123
125
129 inline const AnalyticsMetadataType& GetAnalyticsMetadata() const{ return m_analyticsMetadata; }
130 inline bool AnalyticsMetadataHasBeenSet() const { return m_analyticsMetadataHasBeenSet; }
131 inline void SetAnalyticsMetadata(const AnalyticsMetadataType& value) { m_analyticsMetadataHasBeenSet = true; m_analyticsMetadata = value; }
132 inline void SetAnalyticsMetadata(AnalyticsMetadataType&& value) { m_analyticsMetadataHasBeenSet = true; m_analyticsMetadata = std::move(value); }
136
138
144 inline const UserContextDataType& GetUserContextData() const{ return m_userContextData; }
145 inline bool UserContextDataHasBeenSet() const { return m_userContextDataHasBeenSet; }
146 inline void SetUserContextData(const UserContextDataType& value) { m_userContextDataHasBeenSet = true; m_userContextData = value; }
147 inline void SetUserContextData(UserContextDataType&& value) { m_userContextDataHasBeenSet = true; m_userContextData = std::move(value); }
151
153
176 inline const Aws::Map<Aws::String, Aws::String>& GetClientMetadata() const{ return m_clientMetadata; }
177 inline bool ClientMetadataHasBeenSet() const { return m_clientMetadataHasBeenSet; }
178 inline void SetClientMetadata(const Aws::Map<Aws::String, Aws::String>& value) { m_clientMetadataHasBeenSet = true; m_clientMetadata = value; }
179 inline void SetClientMetadata(Aws::Map<Aws::String, Aws::String>&& value) { m_clientMetadataHasBeenSet = true; m_clientMetadata = std::move(value); }
182 inline ConfirmForgotPasswordRequest& AddClientMetadata(const Aws::String& key, const Aws::String& value) { m_clientMetadataHasBeenSet = true; m_clientMetadata.emplace(key, value); return *this; }
183 inline ConfirmForgotPasswordRequest& AddClientMetadata(Aws::String&& key, const Aws::String& value) { m_clientMetadataHasBeenSet = true; m_clientMetadata.emplace(std::move(key), value); return *this; }
184 inline ConfirmForgotPasswordRequest& AddClientMetadata(const Aws::String& key, Aws::String&& value) { m_clientMetadataHasBeenSet = true; m_clientMetadata.emplace(key, std::move(value)); return *this; }
185 inline ConfirmForgotPasswordRequest& AddClientMetadata(Aws::String&& key, Aws::String&& value) { m_clientMetadataHasBeenSet = true; m_clientMetadata.emplace(std::move(key), std::move(value)); return *this; }
186 inline ConfirmForgotPasswordRequest& AddClientMetadata(const char* key, Aws::String&& value) { m_clientMetadataHasBeenSet = true; m_clientMetadata.emplace(key, std::move(value)); return *this; }
187 inline ConfirmForgotPasswordRequest& AddClientMetadata(Aws::String&& key, const char* value) { m_clientMetadataHasBeenSet = true; m_clientMetadata.emplace(std::move(key), value); return *this; }
188 inline ConfirmForgotPasswordRequest& AddClientMetadata(const char* key, const char* value) { m_clientMetadataHasBeenSet = true; m_clientMetadata.emplace(key, value); return *this; }
190 private:
191
192 Aws::String m_clientId;
193 bool m_clientIdHasBeenSet = false;
194
195 Aws::String m_secretHash;
196 bool m_secretHashHasBeenSet = false;
197
198 Aws::String m_username;
199 bool m_usernameHasBeenSet = false;
200
201 Aws::String m_confirmationCode;
202 bool m_confirmationCodeHasBeenSet = false;
203
204 Aws::String m_password;
205 bool m_passwordHasBeenSet = false;
206
207 AnalyticsMetadataType m_analyticsMetadata;
208 bool m_analyticsMetadataHasBeenSet = false;
209
210 UserContextDataType m_userContextData;
211 bool m_userContextDataHasBeenSet = false;
212
213 Aws::Map<Aws::String, Aws::String> m_clientMetadata;
214 bool m_clientMetadataHasBeenSet = false;
215 };
216
217} // namespace Model
218} // namespace CognitoIdentityProvider
219} // namespace Aws
ConfirmForgotPasswordRequest & AddClientMetadata(Aws::String &&key, const Aws::String &value)
ConfirmForgotPasswordRequest & WithUserContextData(const UserContextDataType &value)
ConfirmForgotPasswordRequest & WithConfirmationCode(Aws::String &&value)
ConfirmForgotPasswordRequest & AddClientMetadata(const Aws::String &key, Aws::String &&value)
ConfirmForgotPasswordRequest & WithUsername(const Aws::String &value)
void SetClientMetadata(const Aws::Map< Aws::String, Aws::String > &value)
ConfirmForgotPasswordRequest & WithClientId(Aws::String &&value)
ConfirmForgotPasswordRequest & WithSecretHash(Aws::String &&value)
ConfirmForgotPasswordRequest & AddClientMetadata(Aws::String &&key, const char *value)
AWS_COGNITOIDENTITYPROVIDER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
void SetClientMetadata(Aws::Map< Aws::String, Aws::String > &&value)
ConfirmForgotPasswordRequest & WithClientMetadata(Aws::Map< Aws::String, Aws::String > &&value)
ConfirmForgotPasswordRequest & WithUserContextData(UserContextDataType &&value)
ConfirmForgotPasswordRequest & AddClientMetadata(const Aws::String &key, const Aws::String &value)
ConfirmForgotPasswordRequest & WithSecretHash(const Aws::String &value)
const Aws::Map< Aws::String, Aws::String > & GetClientMetadata() const
ConfirmForgotPasswordRequest & WithClientId(const Aws::String &value)
ConfirmForgotPasswordRequest & AddClientMetadata(const char *key, const char *value)
ConfirmForgotPasswordRequest & WithPassword(const Aws::String &value)
AWS_COGNITOIDENTITYPROVIDER_API Aws::String SerializePayload() const override
ConfirmForgotPasswordRequest & WithUsername(Aws::String &&value)
ConfirmForgotPasswordRequest & AddClientMetadata(Aws::String &&key, Aws::String &&value)
ConfirmForgotPasswordRequest & WithClientMetadata(const Aws::Map< Aws::String, Aws::String > &value)
ConfirmForgotPasswordRequest & AddClientMetadata(const char *key, Aws::String &&value)
ConfirmForgotPasswordRequest & WithAnalyticsMetadata(const AnalyticsMetadataType &value)
ConfirmForgotPasswordRequest & WithConfirmationCode(const Aws::String &value)
ConfirmForgotPasswordRequest & WithAnalyticsMetadata(AnalyticsMetadataType &&value)
ConfirmForgotPasswordRequest & WithConfirmationCode(const char *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