AWS SDK for C++

AWS SDK for C++ Version 1.11.754

Loading...
Searching...
No Matches
ChangePasswordRequest.h
1
6#pragma once
7#include <aws/cognito-idp/CognitoIdentityProviderRequest.h>
8#include <aws/cognito-idp/CognitoIdentityProvider_EXPORTS.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10
11#include <utility>
12
13namespace Aws {
14namespace CognitoIdentityProvider {
15namespace Model {
16
24 public:
25 AWS_COGNITOIDENTITYPROVIDER_API ChangePasswordRequest() = default;
26
27 // Service request name is the Operation name which will send this request out,
28 // each operation should has unique request name, so that we can get operation's name from this request.
29 // Note: this is not true for response, multiple operations may have the same response name,
30 // so we can not get operation's name from response.
31 inline virtual const char* GetServiceRequestName() const override { return "ChangePassword"; }
32
33 AWS_COGNITOIDENTITYPROVIDER_API Aws::String SerializePayload() const override;
34
35 AWS_COGNITOIDENTITYPROVIDER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
36
38
43 inline const Aws::String& GetPreviousPassword() const { return m_previousPassword; }
44 inline bool PreviousPasswordHasBeenSet() const { return m_previousPasswordHasBeenSet; }
45 template <typename PreviousPasswordT = Aws::String>
46 void SetPreviousPassword(PreviousPasswordT&& value) {
47 m_previousPasswordHasBeenSet = true;
48 m_previousPassword = std::forward<PreviousPasswordT>(value);
49 }
50 template <typename PreviousPasswordT = Aws::String>
51 ChangePasswordRequest& WithPreviousPassword(PreviousPasswordT&& value) {
52 SetPreviousPassword(std::forward<PreviousPasswordT>(value));
53 return *this;
54 }
56
58
61 inline const Aws::String& GetProposedPassword() const { return m_proposedPassword; }
62 inline bool ProposedPasswordHasBeenSet() const { return m_proposedPasswordHasBeenSet; }
63 template <typename ProposedPasswordT = Aws::String>
64 void SetProposedPassword(ProposedPasswordT&& value) {
65 m_proposedPasswordHasBeenSet = true;
66 m_proposedPassword = std::forward<ProposedPasswordT>(value);
67 }
68 template <typename ProposedPasswordT = Aws::String>
69 ChangePasswordRequest& WithProposedPassword(ProposedPasswordT&& value) {
70 SetProposedPassword(std::forward<ProposedPasswordT>(value));
71 return *this;
72 }
74
76
80 inline const Aws::String& GetAccessToken() const { return m_accessToken; }
81 inline bool AccessTokenHasBeenSet() const { return m_accessTokenHasBeenSet; }
82 template <typename AccessTokenT = Aws::String>
83 void SetAccessToken(AccessTokenT&& value) {
84 m_accessTokenHasBeenSet = true;
85 m_accessToken = std::forward<AccessTokenT>(value);
86 }
87 template <typename AccessTokenT = Aws::String>
88 ChangePasswordRequest& WithAccessToken(AccessTokenT&& value) {
89 SetAccessToken(std::forward<AccessTokenT>(value));
90 return *this;
91 }
93 private:
94 Aws::String m_previousPassword;
95
96 Aws::String m_proposedPassword;
97
98 Aws::String m_accessToken;
99 bool m_previousPasswordHasBeenSet = false;
100 bool m_proposedPasswordHasBeenSet = false;
101 bool m_accessTokenHasBeenSet = false;
102};
103
104} // namespace Model
105} // namespace CognitoIdentityProvider
106} // namespace Aws
AWS_COGNITOIDENTITYPROVIDER_API ChangePasswordRequest()=default
ChangePasswordRequest & WithAccessToken(AccessTokenT &&value)
AWS_COGNITOIDENTITYPROVIDER_API Aws::String SerializePayload() const override
AWS_COGNITOIDENTITYPROVIDER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
ChangePasswordRequest & WithPreviousPassword(PreviousPasswordT &&value)
ChangePasswordRequest & WithProposedPassword(ProposedPasswordT &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String