AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
UpdateUserRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/iam/IAMRequest.h>
9#include <aws/iam/IAM_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace IAM {
15namespace Model {
16
20 public:
21 AWS_IAM_API UpdateUserRequest() = default;
22
23 // Service request name is the Operation name which will send this request out,
24 // each operation should has unique request name, so that we can get operation's name from this request.
25 // Note: this is not true for response, multiple operations may have the same response name,
26 // so we can not get operation's name from response.
27 inline virtual const char* GetServiceRequestName() const override { return "UpdateUser"; }
28
29 AWS_IAM_API Aws::String SerializePayload() const override;
30
31 protected:
32 AWS_IAM_API void DumpBodyToUrl(Aws::Http::URI& uri) const override;
33
34 public:
36
43 inline const Aws::String& GetUserName() const { return m_userName; }
44 inline bool UserNameHasBeenSet() const { return m_userNameHasBeenSet; }
45 template <typename UserNameT = Aws::String>
46 void SetUserName(UserNameT&& value) {
47 m_userNameHasBeenSet = true;
48 m_userName = std::forward<UserNameT>(value);
49 }
50 template <typename UserNameT = Aws::String>
51 UpdateUserRequest& WithUserName(UserNameT&& value) {
52 SetUserName(std::forward<UserNameT>(value));
53 return *this;
54 }
56
58
68 inline const Aws::String& GetNewPath() const { return m_newPath; }
69 inline bool NewPathHasBeenSet() const { return m_newPathHasBeenSet; }
70 template <typename NewPathT = Aws::String>
71 void SetNewPath(NewPathT&& value) {
72 m_newPathHasBeenSet = true;
73 m_newPath = std::forward<NewPathT>(value);
74 }
75 template <typename NewPathT = Aws::String>
76 UpdateUserRequest& WithNewPath(NewPathT&& value) {
77 SetNewPath(std::forward<NewPathT>(value));
78 return *this;
79 }
81
83
89 inline const Aws::String& GetNewUserName() const { return m_newUserName; }
90 inline bool NewUserNameHasBeenSet() const { return m_newUserNameHasBeenSet; }
91 template <typename NewUserNameT = Aws::String>
92 void SetNewUserName(NewUserNameT&& value) {
93 m_newUserNameHasBeenSet = true;
94 m_newUserName = std::forward<NewUserNameT>(value);
95 }
96 template <typename NewUserNameT = Aws::String>
97 UpdateUserRequest& WithNewUserName(NewUserNameT&& value) {
98 SetNewUserName(std::forward<NewUserNameT>(value));
99 return *this;
100 }
102 private:
103 Aws::String m_userName;
104
105 Aws::String m_newPath;
106
107 Aws::String m_newUserName;
108 bool m_userNameHasBeenSet = false;
109 bool m_newPathHasBeenSet = false;
110 bool m_newUserNameHasBeenSet = false;
111};
112
113} // namespace Model
114} // namespace IAM
115} // namespace Aws
AWS_IAM_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
virtual const char * GetServiceRequestName() const override
UpdateUserRequest & WithUserName(UserNameT &&value)
UpdateUserRequest & WithNewPath(NewPathT &&value)
void SetUserName(UserNameT &&value)
AWS_IAM_API UpdateUserRequest()=default
const Aws::String & GetUserName() const
UpdateUserRequest & WithNewUserName(NewUserNameT &&value)
AWS_IAM_API Aws::String SerializePayload() const override
void SetNewUserName(NewUserNameT &&value)
const Aws::String & GetNewPath() const
const Aws::String & GetNewUserName() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String