AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
CreateUserRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/iam/IAMRequest.h>
10#include <aws/iam/IAM_EXPORTS.h>
11#include <aws/iam/model/Tag.h>
12
13#include <utility>
14
15namespace Aws {
16namespace IAM {
17namespace Model {
18
22 public:
23 AWS_IAM_API CreateUserRequest() = default;
24
25 // Service request name is the Operation name which will send this request out,
26 // each operation should has unique request name, so that we can get operation's name from this request.
27 // Note: this is not true for response, multiple operations may have the same response name,
28 // so we can not get operation's name from response.
29 inline virtual const char* GetServiceRequestName() const override { return "CreateUser"; }
30
31 AWS_IAM_API Aws::String SerializePayload() const override;
32
33 protected:
34 AWS_IAM_API void DumpBodyToUrl(Aws::Http::URI& uri) const override;
35
36 public:
38
50 inline const Aws::String& GetPath() const { return m_path; }
51 inline bool PathHasBeenSet() const { return m_pathHasBeenSet; }
52 template <typename PathT = Aws::String>
53 void SetPath(PathT&& value) {
54 m_pathHasBeenSet = true;
55 m_path = std::forward<PathT>(value);
56 }
57 template <typename PathT = Aws::String>
58 CreateUserRequest& WithPath(PathT&& value) {
59 SetPath(std::forward<PathT>(value));
60 return *this;
61 }
63
65
71 inline const Aws::String& GetUserName() const { return m_userName; }
72 inline bool UserNameHasBeenSet() const { return m_userNameHasBeenSet; }
73 template <typename UserNameT = Aws::String>
74 void SetUserName(UserNameT&& value) {
75 m_userNameHasBeenSet = true;
76 m_userName = std::forward<UserNameT>(value);
77 }
78 template <typename UserNameT = Aws::String>
79 CreateUserRequest& WithUserName(UserNameT&& value) {
80 SetUserName(std::forward<UserNameT>(value));
81 return *this;
82 }
84
86
98 inline const Aws::String& GetPermissionsBoundary() const { return m_permissionsBoundary; }
99 inline bool PermissionsBoundaryHasBeenSet() const { return m_permissionsBoundaryHasBeenSet; }
100 template <typename PermissionsBoundaryT = Aws::String>
101 void SetPermissionsBoundary(PermissionsBoundaryT&& value) {
102 m_permissionsBoundaryHasBeenSet = true;
103 m_permissionsBoundary = std::forward<PermissionsBoundaryT>(value);
104 }
105 template <typename PermissionsBoundaryT = Aws::String>
106 CreateUserRequest& WithPermissionsBoundary(PermissionsBoundaryT&& value) {
107 SetPermissionsBoundary(std::forward<PermissionsBoundaryT>(value));
108 return *this;
109 }
111
113
121 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
122 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
123 template <typename TagsT = Aws::Vector<Tag>>
124 void SetTags(TagsT&& value) {
125 m_tagsHasBeenSet = true;
126 m_tags = std::forward<TagsT>(value);
127 }
128 template <typename TagsT = Aws::Vector<Tag>>
129 CreateUserRequest& WithTags(TagsT&& value) {
130 SetTags(std::forward<TagsT>(value));
131 return *this;
132 }
133 template <typename TagsT = Tag>
134 CreateUserRequest& AddTags(TagsT&& value) {
135 m_tagsHasBeenSet = true;
136 m_tags.emplace_back(std::forward<TagsT>(value));
137 return *this;
138 }
140 private:
141 Aws::String m_path;
142
143 Aws::String m_userName;
144
145 Aws::String m_permissionsBoundary;
146
147 Aws::Vector<Tag> m_tags;
148 bool m_pathHasBeenSet = false;
149 bool m_userNameHasBeenSet = false;
150 bool m_permissionsBoundaryHasBeenSet = false;
151 bool m_tagsHasBeenSet = false;
152};
153
154} // namespace Model
155} // namespace IAM
156} // namespace Aws
virtual const char * GetServiceRequestName() const override
AWS_IAM_API Aws::String SerializePayload() const override
const Aws::String & GetPermissionsBoundary() const
const Aws::String & GetUserName() const
CreateUserRequest & WithPermissionsBoundary(PermissionsBoundaryT &&value)
CreateUserRequest & WithUserName(UserNameT &&value)
const Aws::Vector< Tag > & GetTags() const
AWS_IAM_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
void SetPermissionsBoundary(PermissionsBoundaryT &&value)
AWS_IAM_API CreateUserRequest()=default
void SetUserName(UserNameT &&value)
CreateUserRequest & WithPath(PathT &&value)
const Aws::String & GetPath() const
CreateUserRequest & AddTags(TagsT &&value)
CreateUserRequest & WithTags(TagsT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector