AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
AdminSetUserPasswordRequest.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
22 {
23 public:
24 AWS_COGNITOIDENTITYPROVIDER_API AdminSetUserPasswordRequest();
25
26 // Service request name is the Operation name which will send this request out,
27 // each operation should has unique request name, so that we can get operation's name from this request.
28 // Note: this is not true for response, multiple operations may have the same response name,
29 // so we can not get operation's name from response.
30 inline virtual const char* GetServiceRequestName() const override { return "AdminSetUserPassword"; }
31
32 AWS_COGNITOIDENTITYPROVIDER_API Aws::String SerializePayload() const override;
33
34 AWS_COGNITOIDENTITYPROVIDER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
35
36
38
42 inline const Aws::String& GetUserPoolId() const{ return m_userPoolId; }
43 inline bool UserPoolIdHasBeenSet() const { return m_userPoolIdHasBeenSet; }
44 inline void SetUserPoolId(const Aws::String& value) { m_userPoolIdHasBeenSet = true; m_userPoolId = value; }
45 inline void SetUserPoolId(Aws::String&& value) { m_userPoolIdHasBeenSet = true; m_userPoolId = std::move(value); }
46 inline void SetUserPoolId(const char* value) { m_userPoolIdHasBeenSet = true; m_userPoolId.assign(value); }
47 inline AdminSetUserPasswordRequest& WithUserPoolId(const Aws::String& value) { SetUserPoolId(value); return *this;}
48 inline AdminSetUserPasswordRequest& WithUserPoolId(Aws::String&& value) { SetUserPoolId(std::move(value)); return *this;}
49 inline AdminSetUserPasswordRequest& WithUserPoolId(const char* value) { SetUserPoolId(value); return *this;}
51
53
60 inline const Aws::String& GetUsername() const{ return m_username; }
61 inline bool UsernameHasBeenSet() const { return m_usernameHasBeenSet; }
62 inline void SetUsername(const Aws::String& value) { m_usernameHasBeenSet = true; m_username = value; }
63 inline void SetUsername(Aws::String&& value) { m_usernameHasBeenSet = true; m_username = std::move(value); }
64 inline void SetUsername(const char* value) { m_usernameHasBeenSet = true; m_username.assign(value); }
65 inline AdminSetUserPasswordRequest& WithUsername(const Aws::String& value) { SetUsername(value); return *this;}
66 inline AdminSetUserPasswordRequest& WithUsername(Aws::String&& value) { SetUsername(std::move(value)); return *this;}
67 inline AdminSetUserPasswordRequest& WithUsername(const char* value) { SetUsername(value); return *this;}
69
71
74 inline const Aws::String& GetPassword() const{ return m_password; }
75 inline bool PasswordHasBeenSet() const { return m_passwordHasBeenSet; }
76 inline void SetPassword(const Aws::String& value) { m_passwordHasBeenSet = true; m_password = value; }
77 inline void SetPassword(Aws::String&& value) { m_passwordHasBeenSet = true; m_password = std::move(value); }
78 inline void SetPassword(const char* value) { m_passwordHasBeenSet = true; m_password.assign(value); }
79 inline AdminSetUserPasswordRequest& WithPassword(const Aws::String& value) { SetPassword(value); return *this;}
80 inline AdminSetUserPasswordRequest& WithPassword(Aws::String&& value) { SetPassword(std::move(value)); return *this;}
81 inline AdminSetUserPasswordRequest& WithPassword(const char* value) { SetPassword(value); return *this;}
83
85
89 inline bool GetPermanent() const{ return m_permanent; }
90 inline bool PermanentHasBeenSet() const { return m_permanentHasBeenSet; }
91 inline void SetPermanent(bool value) { m_permanentHasBeenSet = true; m_permanent = value; }
92 inline AdminSetUserPasswordRequest& WithPermanent(bool value) { SetPermanent(value); return *this;}
94 private:
95
96 Aws::String m_userPoolId;
97 bool m_userPoolIdHasBeenSet = false;
98
99 Aws::String m_username;
100 bool m_usernameHasBeenSet = false;
101
102 Aws::String m_password;
103 bool m_passwordHasBeenSet = false;
104
105 bool m_permanent;
106 bool m_permanentHasBeenSet = false;
107 };
108
109} // namespace Model
110} // namespace CognitoIdentityProvider
111} // namespace Aws
AdminSetUserPasswordRequest & WithPassword(Aws::String &&value)
AdminSetUserPasswordRequest & WithPassword(const Aws::String &value)
AdminSetUserPasswordRequest & WithUsername(const Aws::String &value)
AdminSetUserPasswordRequest & WithUsername(Aws::String &&value)
AWS_COGNITOIDENTITYPROVIDER_API Aws::String SerializePayload() const override
AdminSetUserPasswordRequest & WithUserPoolId(Aws::String &&value)
AdminSetUserPasswordRequest & WithUserPoolId(const Aws::String &value)
AWS_COGNITOIDENTITYPROVIDER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String