AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreateUserRequest.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 <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/iam/model/Tag.h>
12#include <utility>
13
14namespace Aws
15{
16namespace IAM
17{
18namespace Model
19{
20
24 {
25 public:
26 AWS_IAM_API CreateUserRequest();
27
28 // Service request name is the Operation name which will send this request out,
29 // each operation should has unique request name, so that we can get operation's name from this request.
30 // Note: this is not true for response, multiple operations may have the same response name,
31 // so we can not get operation's name from response.
32 inline virtual const char* GetServiceRequestName() const override { return "CreateUser"; }
33
34 AWS_IAM_API Aws::String SerializePayload() const override;
35
36 protected:
37 AWS_IAM_API void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
38
39 public:
40
42
54 inline const Aws::String& GetPath() const{ return m_path; }
55 inline bool PathHasBeenSet() const { return m_pathHasBeenSet; }
56 inline void SetPath(const Aws::String& value) { m_pathHasBeenSet = true; m_path = value; }
57 inline void SetPath(Aws::String&& value) { m_pathHasBeenSet = true; m_path = std::move(value); }
58 inline void SetPath(const char* value) { m_pathHasBeenSet = true; m_path.assign(value); }
59 inline CreateUserRequest& WithPath(const Aws::String& value) { SetPath(value); return *this;}
60 inline CreateUserRequest& WithPath(Aws::String&& value) { SetPath(std::move(value)); return *this;}
61 inline CreateUserRequest& WithPath(const char* value) { SetPath(value); return *this;}
63
65
71 inline const Aws::String& GetUserName() const{ return m_userName; }
72 inline bool UserNameHasBeenSet() const { return m_userNameHasBeenSet; }
73 inline void SetUserName(const Aws::String& value) { m_userNameHasBeenSet = true; m_userName = value; }
74 inline void SetUserName(Aws::String&& value) { m_userNameHasBeenSet = true; m_userName = std::move(value); }
75 inline void SetUserName(const char* value) { m_userNameHasBeenSet = true; m_userName.assign(value); }
76 inline CreateUserRequest& WithUserName(const Aws::String& value) { SetUserName(value); return *this;}
77 inline CreateUserRequest& WithUserName(Aws::String&& value) { SetUserName(std::move(value)); return *this;}
78 inline CreateUserRequest& WithUserName(const char* value) { SetUserName(value); return *this;}
80
82
94 inline const Aws::String& GetPermissionsBoundary() const{ return m_permissionsBoundary; }
95 inline bool PermissionsBoundaryHasBeenSet() const { return m_permissionsBoundaryHasBeenSet; }
96 inline void SetPermissionsBoundary(const Aws::String& value) { m_permissionsBoundaryHasBeenSet = true; m_permissionsBoundary = value; }
97 inline void SetPermissionsBoundary(Aws::String&& value) { m_permissionsBoundaryHasBeenSet = true; m_permissionsBoundary = std::move(value); }
98 inline void SetPermissionsBoundary(const char* value) { m_permissionsBoundaryHasBeenSet = true; m_permissionsBoundary.assign(value); }
99 inline CreateUserRequest& WithPermissionsBoundary(const Aws::String& value) { SetPermissionsBoundary(value); return *this;}
100 inline CreateUserRequest& WithPermissionsBoundary(Aws::String&& value) { SetPermissionsBoundary(std::move(value)); return *this;}
101 inline CreateUserRequest& WithPermissionsBoundary(const char* value) { SetPermissionsBoundary(value); return *this;}
103
105
113 inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
114 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
115 inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
116 inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
117 inline CreateUserRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
118 inline CreateUserRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
119 inline CreateUserRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
120 inline CreateUserRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
122 private:
123
124 Aws::String m_path;
125 bool m_pathHasBeenSet = false;
126
127 Aws::String m_userName;
128 bool m_userNameHasBeenSet = false;
129
130 Aws::String m_permissionsBoundary;
131 bool m_permissionsBoundaryHasBeenSet = false;
132
133 Aws::Vector<Tag> m_tags;
134 bool m_tagsHasBeenSet = false;
135 };
136
137} // namespace Model
138} // namespace IAM
139} // namespace Aws
void SetPath(Aws::String &&value)
CreateUserRequest & WithTags(Aws::Vector< Tag > &&value)
CreateUserRequest & WithPermissionsBoundary(Aws::String &&value)
CreateUserRequest & WithPermissionsBoundary(const char *value)
CreateUserRequest & WithPath(const Aws::String &value)
void SetUserName(const Aws::String &value)
virtual const char * GetServiceRequestName() const override
AWS_IAM_API Aws::String SerializePayload() const override
const Aws::String & GetPermissionsBoundary() const
void SetPath(const Aws::String &value)
CreateUserRequest & WithUserName(const Aws::String &value)
CreateUserRequest & WithPermissionsBoundary(const Aws::String &value)
const Aws::String & GetUserName() const
void SetTags(const Aws::Vector< Tag > &value)
CreateUserRequest & WithTags(const Aws::Vector< Tag > &value)
const Aws::Vector< Tag > & GetTags() const
CreateUserRequest & WithPath(Aws::String &&value)
AWS_IAM_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
CreateUserRequest & WithUserName(Aws::String &&value)
void SetPermissionsBoundary(const Aws::String &value)
void SetPermissionsBoundary(const char *value)
const Aws::String & GetPath() const
CreateUserRequest & WithPath(const char *value)
void SetUserName(const char *value)
CreateUserRequest & AddTags(Tag &&value)
CreateUserRequest & WithUserName(const char *value)
CreateUserRequest & AddTags(const Tag &value)
void SetPermissionsBoundary(Aws::String &&value)
void SetUserName(Aws::String &&value)
void SetTags(Aws::Vector< Tag > &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector