AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ForgotPasswordRequest.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/UserContextDataType.h>
11#include <aws/cognito-idp/model/AnalyticsMetadataType.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 ForgotPasswordRequest();
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 "ForgotPassword"; }
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 ForgotPasswordRequest& WithClientId(const Aws::String& value) { SetClientId(value); return *this;}
54 inline ForgotPasswordRequest& WithClientId(Aws::String&& value) { SetClientId(std::move(value)); return *this;}
55 inline ForgotPasswordRequest& WithClientId(const char* value) { SetClientId(value); return *this;}
57
59
63 inline const Aws::String& GetSecretHash() const{ return m_secretHash; }
64 inline bool SecretHashHasBeenSet() const { return m_secretHashHasBeenSet; }
65 inline void SetSecretHash(const Aws::String& value) { m_secretHashHasBeenSet = true; m_secretHash = value; }
66 inline void SetSecretHash(Aws::String&& value) { m_secretHashHasBeenSet = true; m_secretHash = std::move(value); }
67 inline void SetSecretHash(const char* value) { m_secretHashHasBeenSet = true; m_secretHash.assign(value); }
68 inline ForgotPasswordRequest& WithSecretHash(const Aws::String& value) { SetSecretHash(value); return *this;}
69 inline ForgotPasswordRequest& WithSecretHash(Aws::String&& value) { SetSecretHash(std::move(value)); return *this;}
70 inline ForgotPasswordRequest& WithSecretHash(const char* value) { SetSecretHash(value); return *this;}
72
74
80 inline const UserContextDataType& GetUserContextData() const{ return m_userContextData; }
81 inline bool UserContextDataHasBeenSet() const { return m_userContextDataHasBeenSet; }
82 inline void SetUserContextData(const UserContextDataType& value) { m_userContextDataHasBeenSet = true; m_userContextData = value; }
83 inline void SetUserContextData(UserContextDataType&& value) { m_userContextDataHasBeenSet = true; m_userContextData = std::move(value); }
85 inline ForgotPasswordRequest& WithUserContextData(UserContextDataType&& value) { SetUserContextData(std::move(value)); return *this;}
87
89
96 inline const Aws::String& GetUsername() const{ return m_username; }
97 inline bool UsernameHasBeenSet() const { return m_usernameHasBeenSet; }
98 inline void SetUsername(const Aws::String& value) { m_usernameHasBeenSet = true; m_username = value; }
99 inline void SetUsername(Aws::String&& value) { m_usernameHasBeenSet = true; m_username = std::move(value); }
100 inline void SetUsername(const char* value) { m_usernameHasBeenSet = true; m_username.assign(value); }
101 inline ForgotPasswordRequest& WithUsername(const Aws::String& value) { SetUsername(value); return *this;}
102 inline ForgotPasswordRequest& WithUsername(Aws::String&& value) { SetUsername(std::move(value)); return *this;}
103 inline ForgotPasswordRequest& WithUsername(const char* value) { SetUsername(value); return *this;}
105
107
111 inline const AnalyticsMetadataType& GetAnalyticsMetadata() const{ return m_analyticsMetadata; }
112 inline bool AnalyticsMetadataHasBeenSet() const { return m_analyticsMetadataHasBeenSet; }
113 inline void SetAnalyticsMetadata(const AnalyticsMetadataType& value) { m_analyticsMetadataHasBeenSet = true; m_analyticsMetadata = value; }
114 inline void SetAnalyticsMetadata(AnalyticsMetadataType&& value) { m_analyticsMetadataHasBeenSet = true; m_analyticsMetadata = std::move(value); }
118
120
144 inline const Aws::Map<Aws::String, Aws::String>& GetClientMetadata() const{ return m_clientMetadata; }
145 inline bool ClientMetadataHasBeenSet() const { return m_clientMetadataHasBeenSet; }
146 inline void SetClientMetadata(const Aws::Map<Aws::String, Aws::String>& value) { m_clientMetadataHasBeenSet = true; m_clientMetadata = value; }
147 inline void SetClientMetadata(Aws::Map<Aws::String, Aws::String>&& value) { m_clientMetadataHasBeenSet = true; m_clientMetadata = std::move(value); }
150 inline ForgotPasswordRequest& AddClientMetadata(const Aws::String& key, const Aws::String& value) { m_clientMetadataHasBeenSet = true; m_clientMetadata.emplace(key, value); return *this; }
151 inline ForgotPasswordRequest& AddClientMetadata(Aws::String&& key, const Aws::String& value) { m_clientMetadataHasBeenSet = true; m_clientMetadata.emplace(std::move(key), value); return *this; }
152 inline ForgotPasswordRequest& AddClientMetadata(const Aws::String& key, Aws::String&& value) { m_clientMetadataHasBeenSet = true; m_clientMetadata.emplace(key, std::move(value)); return *this; }
153 inline ForgotPasswordRequest& AddClientMetadata(Aws::String&& key, Aws::String&& value) { m_clientMetadataHasBeenSet = true; m_clientMetadata.emplace(std::move(key), std::move(value)); return *this; }
154 inline ForgotPasswordRequest& AddClientMetadata(const char* key, Aws::String&& value) { m_clientMetadataHasBeenSet = true; m_clientMetadata.emplace(key, std::move(value)); return *this; }
155 inline ForgotPasswordRequest& AddClientMetadata(Aws::String&& key, const char* value) { m_clientMetadataHasBeenSet = true; m_clientMetadata.emplace(std::move(key), value); return *this; }
156 inline ForgotPasswordRequest& AddClientMetadata(const char* key, const char* value) { m_clientMetadataHasBeenSet = true; m_clientMetadata.emplace(key, value); return *this; }
158 private:
159
160 Aws::String m_clientId;
161 bool m_clientIdHasBeenSet = false;
162
163 Aws::String m_secretHash;
164 bool m_secretHashHasBeenSet = false;
165
166 UserContextDataType m_userContextData;
167 bool m_userContextDataHasBeenSet = false;
168
169 Aws::String m_username;
170 bool m_usernameHasBeenSet = false;
171
172 AnalyticsMetadataType m_analyticsMetadata;
173 bool m_analyticsMetadataHasBeenSet = false;
174
175 Aws::Map<Aws::String, Aws::String> m_clientMetadata;
176 bool m_clientMetadataHasBeenSet = false;
177 };
178
179} // namespace Model
180} // namespace CognitoIdentityProvider
181} // namespace Aws
ForgotPasswordRequest & WithUserContextData(UserContextDataType &&value)
ForgotPasswordRequest & WithUsername(const char *value)
AWS_COGNITOIDENTITYPROVIDER_API Aws::String SerializePayload() const override
ForgotPasswordRequest & AddClientMetadata(Aws::String &&key, const char *value)
void SetClientMetadata(Aws::Map< Aws::String, Aws::String > &&value)
ForgotPasswordRequest & WithClientId(const char *value)
AWS_COGNITOIDENTITYPROVIDER_API ForgotPasswordRequest()
ForgotPasswordRequest & WithUsername(const Aws::String &value)
ForgotPasswordRequest & WithUsername(Aws::String &&value)
ForgotPasswordRequest & AddClientMetadata(const Aws::String &key, Aws::String &&value)
ForgotPasswordRequest & WithClientMetadata(const Aws::Map< Aws::String, Aws::String > &value)
ForgotPasswordRequest & WithSecretHash(const Aws::String &value)
void SetAnalyticsMetadata(const AnalyticsMetadataType &value)
ForgotPasswordRequest & WithClientMetadata(Aws::Map< Aws::String, Aws::String > &&value)
ForgotPasswordRequest & WithSecretHash(Aws::String &&value)
ForgotPasswordRequest & WithAnalyticsMetadata(const AnalyticsMetadataType &value)
ForgotPasswordRequest & AddClientMetadata(Aws::String &&key, const Aws::String &value)
ForgotPasswordRequest & AddClientMetadata(const char *key, Aws::String &&value)
void SetClientMetadata(const Aws::Map< Aws::String, Aws::String > &value)
ForgotPasswordRequest & AddClientMetadata(Aws::String &&key, Aws::String &&value)
ForgotPasswordRequest & WithUserContextData(const UserContextDataType &value)
ForgotPasswordRequest & WithAnalyticsMetadata(AnalyticsMetadataType &&value)
ForgotPasswordRequest & AddClientMetadata(const Aws::String &key, const Aws::String &value)
ForgotPasswordRequest & WithClientId(const Aws::String &value)
ForgotPasswordRequest & WithClientId(Aws::String &&value)
ForgotPasswordRequest & WithSecretHash(const char *value)
ForgotPasswordRequest & AddClientMetadata(const char *key, const char *value)
AWS_COGNITOIDENTITYPROVIDER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
const Aws::Map< Aws::String, Aws::String > & GetClientMetadata() const
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