AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreateRoleRequest.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 CreateRoleRequest();
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 "CreateRole"; }
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 CreateRoleRequest& WithPath(const Aws::String& value) { SetPath(value); return *this;}
60 inline CreateRoleRequest& WithPath(Aws::String&& value) { SetPath(std::move(value)); return *this;}
61 inline CreateRoleRequest& WithPath(const char* value) { SetPath(value); return *this;}
63
65
74 inline const Aws::String& GetRoleName() const{ return m_roleName; }
75 inline bool RoleNameHasBeenSet() const { return m_roleNameHasBeenSet; }
76 inline void SetRoleName(const Aws::String& value) { m_roleNameHasBeenSet = true; m_roleName = value; }
77 inline void SetRoleName(Aws::String&& value) { m_roleNameHasBeenSet = true; m_roleName = std::move(value); }
78 inline void SetRoleName(const char* value) { m_roleNameHasBeenSet = true; m_roleName.assign(value); }
79 inline CreateRoleRequest& WithRoleName(const Aws::String& value) { SetRoleName(value); return *this;}
80 inline CreateRoleRequest& WithRoleName(Aws::String&& value) { SetRoleName(std::move(value)); return *this;}
81 inline CreateRoleRequest& WithRoleName(const char* value) { SetRoleName(value); return *this;}
83
85
101 inline const Aws::String& GetAssumeRolePolicyDocument() const{ return m_assumeRolePolicyDocument; }
102 inline bool AssumeRolePolicyDocumentHasBeenSet() const { return m_assumeRolePolicyDocumentHasBeenSet; }
103 inline void SetAssumeRolePolicyDocument(const Aws::String& value) { m_assumeRolePolicyDocumentHasBeenSet = true; m_assumeRolePolicyDocument = value; }
104 inline void SetAssumeRolePolicyDocument(Aws::String&& value) { m_assumeRolePolicyDocumentHasBeenSet = true; m_assumeRolePolicyDocument = std::move(value); }
105 inline void SetAssumeRolePolicyDocument(const char* value) { m_assumeRolePolicyDocumentHasBeenSet = true; m_assumeRolePolicyDocument.assign(value); }
108 inline CreateRoleRequest& WithAssumeRolePolicyDocument(const char* value) { SetAssumeRolePolicyDocument(value); return *this;}
110
112
115 inline const Aws::String& GetDescription() const{ return m_description; }
116 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
117 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
118 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
119 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
120 inline CreateRoleRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
121 inline CreateRoleRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
122 inline CreateRoleRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
124
126
143 inline int GetMaxSessionDuration() const{ return m_maxSessionDuration; }
144 inline bool MaxSessionDurationHasBeenSet() const { return m_maxSessionDurationHasBeenSet; }
145 inline void SetMaxSessionDuration(int value) { m_maxSessionDurationHasBeenSet = true; m_maxSessionDuration = value; }
146 inline CreateRoleRequest& WithMaxSessionDuration(int value) { SetMaxSessionDuration(value); return *this;}
148
150
162 inline const Aws::String& GetPermissionsBoundary() const{ return m_permissionsBoundary; }
163 inline bool PermissionsBoundaryHasBeenSet() const { return m_permissionsBoundaryHasBeenSet; }
164 inline void SetPermissionsBoundary(const Aws::String& value) { m_permissionsBoundaryHasBeenSet = true; m_permissionsBoundary = value; }
165 inline void SetPermissionsBoundary(Aws::String&& value) { m_permissionsBoundaryHasBeenSet = true; m_permissionsBoundary = std::move(value); }
166 inline void SetPermissionsBoundary(const char* value) { m_permissionsBoundaryHasBeenSet = true; m_permissionsBoundary.assign(value); }
168 inline CreateRoleRequest& WithPermissionsBoundary(Aws::String&& value) { SetPermissionsBoundary(std::move(value)); return *this;}
169 inline CreateRoleRequest& WithPermissionsBoundary(const char* value) { SetPermissionsBoundary(value); return *this;}
171
173
181 inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
182 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
183 inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
184 inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
185 inline CreateRoleRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
186 inline CreateRoleRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
187 inline CreateRoleRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
188 inline CreateRoleRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
190 private:
191
192 Aws::String m_path;
193 bool m_pathHasBeenSet = false;
194
195 Aws::String m_roleName;
196 bool m_roleNameHasBeenSet = false;
197
198 Aws::String m_assumeRolePolicyDocument;
199 bool m_assumeRolePolicyDocumentHasBeenSet = false;
200
201 Aws::String m_description;
202 bool m_descriptionHasBeenSet = false;
203
204 int m_maxSessionDuration;
205 bool m_maxSessionDurationHasBeenSet = false;
206
207 Aws::String m_permissionsBoundary;
208 bool m_permissionsBoundaryHasBeenSet = false;
209
210 Aws::Vector<Tag> m_tags;
211 bool m_tagsHasBeenSet = false;
212 };
213
214} // namespace Model
215} // namespace IAM
216} // namespace Aws
CreateRoleRequest & WithRoleName(const Aws::String &value)
CreateRoleRequest & WithRoleName(Aws::String &&value)
CreateRoleRequest & WithPath(const Aws::String &value)
CreateRoleRequest & WithDescription(Aws::String &&value)
CreateRoleRequest & WithPermissionsBoundary(Aws::String &&value)
void SetPath(Aws::String &&value)
void SetTags(Aws::Vector< Tag > &&value)
const Aws::String & GetPath() const
CreateRoleRequest & AddTags(Tag &&value)
void SetDescription(const char *value)
CreateRoleRequest & WithRoleName(const char *value)
const Aws::String & GetAssumeRolePolicyDocument() const
CreateRoleRequest & WithPath(const char *value)
CreateRoleRequest & WithTags(const Aws::Vector< Tag > &value)
CreateRoleRequest & WithDescription(const char *value)
CreateRoleRequest & WithMaxSessionDuration(int value)
void SetTags(const Aws::Vector< Tag > &value)
const Aws::Vector< Tag > & GetTags() const
CreateRoleRequest & WithAssumeRolePolicyDocument(Aws::String &&value)
void SetRoleName(const Aws::String &value)
void SetPermissionsBoundary(Aws::String &&value)
CreateRoleRequest & WithAssumeRolePolicyDocument(const char *value)
virtual const char * GetServiceRequestName() const override
CreateRoleRequest & WithPermissionsBoundary(const Aws::String &value)
CreateRoleRequest & WithPermissionsBoundary(const char *value)
CreateRoleRequest & WithAssumeRolePolicyDocument(const Aws::String &value)
void SetPath(const Aws::String &value)
const Aws::String & GetDescription() const
void SetDescription(Aws::String &&value)
AWS_IAM_API Aws::String SerializePayload() const override
void SetPermissionsBoundary(const char *value)
CreateRoleRequest & WithTags(Aws::Vector< Tag > &&value)
CreateRoleRequest & AddTags(const Tag &value)
void SetRoleName(const char *value)
const Aws::String & GetRoleName() const
void SetAssumeRolePolicyDocument(const char *value)
void SetAssumeRolePolicyDocument(Aws::String &&value)
CreateRoleRequest & WithDescription(const Aws::String &value)
const Aws::String & GetPermissionsBoundary() const
CreateRoleRequest & WithPath(Aws::String &&value)
AWS_IAM_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
void SetDescription(const Aws::String &value)
void SetRoleName(Aws::String &&value)
void SetAssumeRolePolicyDocument(const Aws::String &value)
void SetPermissionsBoundary(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector