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/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() = default;
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 template<typename OldPasswordT = Aws::String>
46 void SetOldPassword(OldPasswordT&& value) { m_oldPasswordHasBeenSet = true; m_oldPassword = std::forward<OldPasswordT>(value); }
47 template<typename OldPasswordT = Aws::String>
48 ChangePasswordRequest& WithOldPassword(OldPasswordT&& value) { SetOldPassword(std::forward<OldPasswordT>(value)); return *this;}
50
52
65 inline const Aws::String& GetNewPassword() const { return m_newPassword; }
66 inline bool NewPasswordHasBeenSet() const { return m_newPasswordHasBeenSet; }
67 template<typename NewPasswordT = Aws::String>
68 void SetNewPassword(NewPasswordT&& value) { m_newPasswordHasBeenSet = true; m_newPassword = std::forward<NewPasswordT>(value); }
69 template<typename NewPasswordT = Aws::String>
70 ChangePasswordRequest& WithNewPassword(NewPasswordT&& value) { SetNewPassword(std::forward<NewPasswordT>(value)); return *this;}
72 private:
73
74 Aws::String m_oldPassword;
75 bool m_oldPasswordHasBeenSet = false;
76
77 Aws::String m_newPassword;
78 bool m_newPasswordHasBeenSet = false;
79 };
80
81} // namespace Model
82} // namespace IAM
83} // namespace Aws
AWS_IAM_API ChangePasswordRequest()=default
ChangePasswordRequest & WithNewPassword(NewPasswordT &&value)
AWS_IAM_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
ChangePasswordRequest & WithOldPassword(OldPasswordT &&value)
virtual const char * GetServiceRequestName() const override
AWS_IAM_API Aws::String SerializePayload() const override
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String