AWS SDK for C++

AWS SDK for C++ Version 1.11.606

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() = default;
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
47 inline const Aws::String& GetPreviousPassword() const { return m_previousPassword; }
48 inline bool PreviousPasswordHasBeenSet() const { return m_previousPasswordHasBeenSet; }
49 template<typename PreviousPasswordT = Aws::String>
50 void SetPreviousPassword(PreviousPasswordT&& value) { m_previousPasswordHasBeenSet = true; m_previousPassword = std::forward<PreviousPasswordT>(value); }
51 template<typename PreviousPasswordT = Aws::String>
52 ChangePasswordRequest& WithPreviousPassword(PreviousPasswordT&& value) { SetPreviousPassword(std::forward<PreviousPasswordT>(value)); return *this;}
54
56
59 inline const Aws::String& GetProposedPassword() const { return m_proposedPassword; }
60 inline bool ProposedPasswordHasBeenSet() const { return m_proposedPasswordHasBeenSet; }
61 template<typename ProposedPasswordT = Aws::String>
62 void SetProposedPassword(ProposedPasswordT&& value) { m_proposedPasswordHasBeenSet = true; m_proposedPassword = std::forward<ProposedPasswordT>(value); }
63 template<typename ProposedPasswordT = Aws::String>
64 ChangePasswordRequest& WithProposedPassword(ProposedPasswordT&& value) { SetProposedPassword(std::forward<ProposedPasswordT>(value)); return *this;}
66
68
72 inline const Aws::String& GetAccessToken() const { return m_accessToken; }
73 inline bool AccessTokenHasBeenSet() const { return m_accessTokenHasBeenSet; }
74 template<typename AccessTokenT = Aws::String>
75 void SetAccessToken(AccessTokenT&& value) { m_accessTokenHasBeenSet = true; m_accessToken = std::forward<AccessTokenT>(value); }
76 template<typename AccessTokenT = Aws::String>
77 ChangePasswordRequest& WithAccessToken(AccessTokenT&& value) { SetAccessToken(std::forward<AccessTokenT>(value)); return *this;}
79 private:
80
81 Aws::String m_previousPassword;
82 bool m_previousPasswordHasBeenSet = false;
83
84 Aws::String m_proposedPassword;
85 bool m_proposedPasswordHasBeenSet = false;
86
87 Aws::String m_accessToken;
88 bool m_accessTokenHasBeenSet = false;
89 };
90
91} // namespace Model
92} // namespace CognitoIdentityProvider
93} // 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