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/iam/IAM_EXPORTS.h>
8#include <aws/iam/IAMRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <utility>
11
12namespace Aws
13{
14namespace IAM
15{
16namespace Model
17{
18
22 {
23 public:
24 AWS_IAM_API ChangePasswordRequest();
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 "ChangePassword"; }
31
32 AWS_IAM_API Aws::String SerializePayload() const override;
33
34 protected:
35 AWS_IAM_API void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
36
37 public:
38
40
43 inline const Aws::String& GetOldPassword() const{ return m_oldPassword; }
44 inline bool OldPasswordHasBeenSet() const { return m_oldPasswordHasBeenSet; }
45 inline void SetOldPassword(const Aws::String& value) { m_oldPasswordHasBeenSet = true; m_oldPassword = value; }
46 inline void SetOldPassword(Aws::String&& value) { m_oldPasswordHasBeenSet = true; m_oldPassword = std::move(value); }
47 inline void SetOldPassword(const char* value) { m_oldPasswordHasBeenSet = true; m_oldPassword.assign(value); }
48 inline ChangePasswordRequest& WithOldPassword(const Aws::String& value) { SetOldPassword(value); return *this;}
49 inline ChangePasswordRequest& WithOldPassword(Aws::String&& value) { SetOldPassword(std::move(value)); return *this;}
50 inline ChangePasswordRequest& WithOldPassword(const char* value) { SetOldPassword(value); return *this;}
52
54
67 inline const Aws::String& GetNewPassword() const{ return m_newPassword; }
68 inline bool NewPasswordHasBeenSet() const { return m_newPasswordHasBeenSet; }
69 inline void SetNewPassword(const Aws::String& value) { m_newPasswordHasBeenSet = true; m_newPassword = value; }
70 inline void SetNewPassword(Aws::String&& value) { m_newPasswordHasBeenSet = true; m_newPassword = std::move(value); }
71 inline void SetNewPassword(const char* value) { m_newPasswordHasBeenSet = true; m_newPassword.assign(value); }
72 inline ChangePasswordRequest& WithNewPassword(const Aws::String& value) { SetNewPassword(value); return *this;}
73 inline ChangePasswordRequest& WithNewPassword(Aws::String&& value) { SetNewPassword(std::move(value)); return *this;}
74 inline ChangePasswordRequest& WithNewPassword(const char* value) { SetNewPassword(value); return *this;}
76 private:
77
78 Aws::String m_oldPassword;
79 bool m_oldPasswordHasBeenSet = false;
80
81 Aws::String m_newPassword;
82 bool m_newPasswordHasBeenSet = false;
83 };
84
85} // namespace Model
86} // namespace IAM
87} // namespace Aws
ChangePasswordRequest & WithNewPassword(Aws::String &&value)
ChangePasswordRequest & WithNewPassword(const Aws::String &value)
ChangePasswordRequest & WithNewPassword(const char *value)
AWS_IAM_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
ChangePasswordRequest & WithOldPassword(Aws::String &&value)
ChangePasswordRequest & WithOldPassword(const Aws::String &value)
void SetOldPassword(const Aws::String &value)
ChangePasswordRequest & WithOldPassword(const char *value)
virtual const char * GetServiceRequestName() const override
AWS_IAM_API Aws::String SerializePayload() const override
void SetNewPassword(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String