AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ChangePasswordRequest.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 <utility>
11
12namespace Aws
13{
14namespace CognitoIdentityProvider
15{
16namespace Model
17{
18
26 {
27 public:
28 AWS_COGNITOIDENTITYPROVIDER_API ChangePasswordRequest();
29
30 // Service request name is the Operation name which will send this request out,
31 // each operation should has unique request name, so that we can get operation's name from this request.
32 // Note: this is not true for response, multiple operations may have the same response name,
33 // so we can not get operation's name from response.
34 inline virtual const char* GetServiceRequestName() const override { return "ChangePassword"; }
35
36 AWS_COGNITOIDENTITYPROVIDER_API Aws::String SerializePayload() const override;
37
38 AWS_COGNITOIDENTITYPROVIDER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
39
40
42
45 inline const Aws::String& GetPreviousPassword() const{ return m_previousPassword; }
46 inline bool PreviousPasswordHasBeenSet() const { return m_previousPasswordHasBeenSet; }
47 inline void SetPreviousPassword(const Aws::String& value) { m_previousPasswordHasBeenSet = true; m_previousPassword = value; }
48 inline void SetPreviousPassword(Aws::String&& value) { m_previousPasswordHasBeenSet = true; m_previousPassword = std::move(value); }
49 inline void SetPreviousPassword(const char* value) { m_previousPasswordHasBeenSet = true; m_previousPassword.assign(value); }
50 inline ChangePasswordRequest& WithPreviousPassword(const Aws::String& value) { SetPreviousPassword(value); return *this;}
51 inline ChangePasswordRequest& WithPreviousPassword(Aws::String&& value) { SetPreviousPassword(std::move(value)); return *this;}
52 inline ChangePasswordRequest& WithPreviousPassword(const char* value) { SetPreviousPassword(value); return *this;}
54
56
59 inline const Aws::String& GetProposedPassword() const{ return m_proposedPassword; }
60 inline bool ProposedPasswordHasBeenSet() const { return m_proposedPasswordHasBeenSet; }
61 inline void SetProposedPassword(const Aws::String& value) { m_proposedPasswordHasBeenSet = true; m_proposedPassword = value; }
62 inline void SetProposedPassword(Aws::String&& value) { m_proposedPasswordHasBeenSet = true; m_proposedPassword = std::move(value); }
63 inline void SetProposedPassword(const char* value) { m_proposedPasswordHasBeenSet = true; m_proposedPassword.assign(value); }
64 inline ChangePasswordRequest& WithProposedPassword(const Aws::String& value) { SetProposedPassword(value); return *this;}
65 inline ChangePasswordRequest& WithProposedPassword(Aws::String&& value) { SetProposedPassword(std::move(value)); return *this;}
66 inline ChangePasswordRequest& WithProposedPassword(const char* value) { SetProposedPassword(value); return *this;}
68
70
74 inline const Aws::String& GetAccessToken() const{ return m_accessToken; }
75 inline bool AccessTokenHasBeenSet() const { return m_accessTokenHasBeenSet; }
76 inline void SetAccessToken(const Aws::String& value) { m_accessTokenHasBeenSet = true; m_accessToken = value; }
77 inline void SetAccessToken(Aws::String&& value) { m_accessTokenHasBeenSet = true; m_accessToken = std::move(value); }
78 inline void SetAccessToken(const char* value) { m_accessTokenHasBeenSet = true; m_accessToken.assign(value); }
79 inline ChangePasswordRequest& WithAccessToken(const Aws::String& value) { SetAccessToken(value); return *this;}
80 inline ChangePasswordRequest& WithAccessToken(Aws::String&& value) { SetAccessToken(std::move(value)); return *this;}
81 inline ChangePasswordRequest& WithAccessToken(const char* value) { SetAccessToken(value); return *this;}
83 private:
84
85 Aws::String m_previousPassword;
86 bool m_previousPasswordHasBeenSet = false;
87
88 Aws::String m_proposedPassword;
89 bool m_proposedPasswordHasBeenSet = false;
90
91 Aws::String m_accessToken;
92 bool m_accessTokenHasBeenSet = false;
93 };
94
95} // namespace Model
96} // namespace CognitoIdentityProvider
97} // namespace Aws
ChangePasswordRequest & WithPreviousPassword(Aws::String &&value)
ChangePasswordRequest & WithProposedPassword(const char *value)
ChangePasswordRequest & WithAccessToken(const char *value)
AWS_COGNITOIDENTITYPROVIDER_API ChangePasswordRequest()
AWS_COGNITOIDENTITYPROVIDER_API Aws::String SerializePayload() const override
ChangePasswordRequest & WithAccessToken(const Aws::String &value)
ChangePasswordRequest & WithPreviousPassword(const char *value)
ChangePasswordRequest & WithAccessToken(Aws::String &&value)
ChangePasswordRequest & WithPreviousPassword(const Aws::String &value)
AWS_COGNITOIDENTITYPROVIDER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
ChangePasswordRequest & WithProposedPassword(const Aws::String &value)
ChangePasswordRequest & WithProposedPassword(Aws::String &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String