AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
AwsIamRoleDetails.h
1
6#pragma once
7#include <aws/securityhub/SecurityHub_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/securityhub/model/AwsIamPermissionsBoundary.h>
11#include <aws/securityhub/model/AwsIamAttachedManagedPolicy.h>
12#include <aws/securityhub/model/AwsIamInstanceProfile.h>
13#include <aws/securityhub/model/AwsIamRolePolicy.h>
14#include <utility>
15
16namespace Aws
17{
18namespace Utils
19{
20namespace Json
21{
22 class JsonValue;
23 class JsonView;
24} // namespace Json
25} // namespace Utils
26namespace SecurityHub
27{
28namespace Model
29{
30
38 {
39 public:
40 AWS_SECURITYHUB_API AwsIamRoleDetails();
41 AWS_SECURITYHUB_API AwsIamRoleDetails(Aws::Utils::Json::JsonView jsonValue);
43 AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const;
44
45
47
50 inline const Aws::String& GetAssumeRolePolicyDocument() const{ return m_assumeRolePolicyDocument; }
51 inline bool AssumeRolePolicyDocumentHasBeenSet() const { return m_assumeRolePolicyDocumentHasBeenSet; }
52 inline void SetAssumeRolePolicyDocument(const Aws::String& value) { m_assumeRolePolicyDocumentHasBeenSet = true; m_assumeRolePolicyDocument = value; }
53 inline void SetAssumeRolePolicyDocument(Aws::String&& value) { m_assumeRolePolicyDocumentHasBeenSet = true; m_assumeRolePolicyDocument = std::move(value); }
54 inline void SetAssumeRolePolicyDocument(const char* value) { m_assumeRolePolicyDocumentHasBeenSet = true; m_assumeRolePolicyDocument.assign(value); }
57 inline AwsIamRoleDetails& WithAssumeRolePolicyDocument(const char* value) { SetAssumeRolePolicyDocument(value); return *this;}
59
61
64 inline const Aws::Vector<AwsIamAttachedManagedPolicy>& GetAttachedManagedPolicies() const{ return m_attachedManagedPolicies; }
65 inline bool AttachedManagedPoliciesHasBeenSet() const { return m_attachedManagedPoliciesHasBeenSet; }
66 inline void SetAttachedManagedPolicies(const Aws::Vector<AwsIamAttachedManagedPolicy>& value) { m_attachedManagedPoliciesHasBeenSet = true; m_attachedManagedPolicies = value; }
67 inline void SetAttachedManagedPolicies(Aws::Vector<AwsIamAttachedManagedPolicy>&& value) { m_attachedManagedPoliciesHasBeenSet = true; m_attachedManagedPolicies = std::move(value); }
70 inline AwsIamRoleDetails& AddAttachedManagedPolicies(const AwsIamAttachedManagedPolicy& value) { m_attachedManagedPoliciesHasBeenSet = true; m_attachedManagedPolicies.push_back(value); return *this; }
71 inline AwsIamRoleDetails& AddAttachedManagedPolicies(AwsIamAttachedManagedPolicy&& value) { m_attachedManagedPoliciesHasBeenSet = true; m_attachedManagedPolicies.push_back(std::move(value)); return *this; }
73
75
92 inline const Aws::String& GetCreateDate() const{ return m_createDate; }
93 inline bool CreateDateHasBeenSet() const { return m_createDateHasBeenSet; }
94 inline void SetCreateDate(const Aws::String& value) { m_createDateHasBeenSet = true; m_createDate = value; }
95 inline void SetCreateDate(Aws::String&& value) { m_createDateHasBeenSet = true; m_createDate = std::move(value); }
96 inline void SetCreateDate(const char* value) { m_createDateHasBeenSet = true; m_createDate.assign(value); }
97 inline AwsIamRoleDetails& WithCreateDate(const Aws::String& value) { SetCreateDate(value); return *this;}
98 inline AwsIamRoleDetails& WithCreateDate(Aws::String&& value) { SetCreateDate(std::move(value)); return *this;}
99 inline AwsIamRoleDetails& WithCreateDate(const char* value) { SetCreateDate(value); return *this;}
101
103
106 inline const Aws::Vector<AwsIamInstanceProfile>& GetInstanceProfileList() const{ return m_instanceProfileList; }
107 inline bool InstanceProfileListHasBeenSet() const { return m_instanceProfileListHasBeenSet; }
108 inline void SetInstanceProfileList(const Aws::Vector<AwsIamInstanceProfile>& value) { m_instanceProfileListHasBeenSet = true; m_instanceProfileList = value; }
109 inline void SetInstanceProfileList(Aws::Vector<AwsIamInstanceProfile>&& value) { m_instanceProfileListHasBeenSet = true; m_instanceProfileList = std::move(value); }
112 inline AwsIamRoleDetails& AddInstanceProfileList(const AwsIamInstanceProfile& value) { m_instanceProfileListHasBeenSet = true; m_instanceProfileList.push_back(value); return *this; }
113 inline AwsIamRoleDetails& AddInstanceProfileList(AwsIamInstanceProfile&& value) { m_instanceProfileListHasBeenSet = true; m_instanceProfileList.push_back(std::move(value)); return *this; }
115
117
118 inline const AwsIamPermissionsBoundary& GetPermissionsBoundary() const{ return m_permissionsBoundary; }
119 inline bool PermissionsBoundaryHasBeenSet() const { return m_permissionsBoundaryHasBeenSet; }
120 inline void SetPermissionsBoundary(const AwsIamPermissionsBoundary& value) { m_permissionsBoundaryHasBeenSet = true; m_permissionsBoundary = value; }
121 inline void SetPermissionsBoundary(AwsIamPermissionsBoundary&& value) { m_permissionsBoundaryHasBeenSet = true; m_permissionsBoundary = std::move(value); }
125
127
130 inline const Aws::String& GetRoleId() const{ return m_roleId; }
131 inline bool RoleIdHasBeenSet() const { return m_roleIdHasBeenSet; }
132 inline void SetRoleId(const Aws::String& value) { m_roleIdHasBeenSet = true; m_roleId = value; }
133 inline void SetRoleId(Aws::String&& value) { m_roleIdHasBeenSet = true; m_roleId = std::move(value); }
134 inline void SetRoleId(const char* value) { m_roleIdHasBeenSet = true; m_roleId.assign(value); }
135 inline AwsIamRoleDetails& WithRoleId(const Aws::String& value) { SetRoleId(value); return *this;}
136 inline AwsIamRoleDetails& WithRoleId(Aws::String&& value) { SetRoleId(std::move(value)); return *this;}
137 inline AwsIamRoleDetails& WithRoleId(const char* value) { SetRoleId(value); return *this;}
139
141
144 inline const Aws::String& GetRoleName() const{ return m_roleName; }
145 inline bool RoleNameHasBeenSet() const { return m_roleNameHasBeenSet; }
146 inline void SetRoleName(const Aws::String& value) { m_roleNameHasBeenSet = true; m_roleName = value; }
147 inline void SetRoleName(Aws::String&& value) { m_roleNameHasBeenSet = true; m_roleName = std::move(value); }
148 inline void SetRoleName(const char* value) { m_roleNameHasBeenSet = true; m_roleName.assign(value); }
149 inline AwsIamRoleDetails& WithRoleName(const Aws::String& value) { SetRoleName(value); return *this;}
150 inline AwsIamRoleDetails& WithRoleName(Aws::String&& value) { SetRoleName(std::move(value)); return *this;}
151 inline AwsIamRoleDetails& WithRoleName(const char* value) { SetRoleName(value); return *this;}
153
155
158 inline const Aws::Vector<AwsIamRolePolicy>& GetRolePolicyList() const{ return m_rolePolicyList; }
159 inline bool RolePolicyListHasBeenSet() const { return m_rolePolicyListHasBeenSet; }
160 inline void SetRolePolicyList(const Aws::Vector<AwsIamRolePolicy>& value) { m_rolePolicyListHasBeenSet = true; m_rolePolicyList = value; }
161 inline void SetRolePolicyList(Aws::Vector<AwsIamRolePolicy>&& value) { m_rolePolicyListHasBeenSet = true; m_rolePolicyList = std::move(value); }
163 inline AwsIamRoleDetails& WithRolePolicyList(Aws::Vector<AwsIamRolePolicy>&& value) { SetRolePolicyList(std::move(value)); return *this;}
164 inline AwsIamRoleDetails& AddRolePolicyList(const AwsIamRolePolicy& value) { m_rolePolicyListHasBeenSet = true; m_rolePolicyList.push_back(value); return *this; }
165 inline AwsIamRoleDetails& AddRolePolicyList(AwsIamRolePolicy&& value) { m_rolePolicyListHasBeenSet = true; m_rolePolicyList.push_back(std::move(value)); return *this; }
167
169
173 inline int GetMaxSessionDuration() const{ return m_maxSessionDuration; }
174 inline bool MaxSessionDurationHasBeenSet() const { return m_maxSessionDurationHasBeenSet; }
175 inline void SetMaxSessionDuration(int value) { m_maxSessionDurationHasBeenSet = true; m_maxSessionDuration = value; }
176 inline AwsIamRoleDetails& WithMaxSessionDuration(int value) { SetMaxSessionDuration(value); return *this;}
178
180
183 inline const Aws::String& GetPath() const{ return m_path; }
184 inline bool PathHasBeenSet() const { return m_pathHasBeenSet; }
185 inline void SetPath(const Aws::String& value) { m_pathHasBeenSet = true; m_path = value; }
186 inline void SetPath(Aws::String&& value) { m_pathHasBeenSet = true; m_path = std::move(value); }
187 inline void SetPath(const char* value) { m_pathHasBeenSet = true; m_path.assign(value); }
188 inline AwsIamRoleDetails& WithPath(const Aws::String& value) { SetPath(value); return *this;}
189 inline AwsIamRoleDetails& WithPath(Aws::String&& value) { SetPath(std::move(value)); return *this;}
190 inline AwsIamRoleDetails& WithPath(const char* value) { SetPath(value); return *this;}
192 private:
193
194 Aws::String m_assumeRolePolicyDocument;
195 bool m_assumeRolePolicyDocumentHasBeenSet = false;
196
197 Aws::Vector<AwsIamAttachedManagedPolicy> m_attachedManagedPolicies;
198 bool m_attachedManagedPoliciesHasBeenSet = false;
199
200 Aws::String m_createDate;
201 bool m_createDateHasBeenSet = false;
202
203 Aws::Vector<AwsIamInstanceProfile> m_instanceProfileList;
204 bool m_instanceProfileListHasBeenSet = false;
205
206 AwsIamPermissionsBoundary m_permissionsBoundary;
207 bool m_permissionsBoundaryHasBeenSet = false;
208
209 Aws::String m_roleId;
210 bool m_roleIdHasBeenSet = false;
211
212 Aws::String m_roleName;
213 bool m_roleNameHasBeenSet = false;
214
215 Aws::Vector<AwsIamRolePolicy> m_rolePolicyList;
216 bool m_rolePolicyListHasBeenSet = false;
217
218 int m_maxSessionDuration;
219 bool m_maxSessionDurationHasBeenSet = false;
220
221 Aws::String m_path;
222 bool m_pathHasBeenSet = false;
223 };
224
225} // namespace Model
226} // namespace SecurityHub
227} // namespace Aws
AwsIamRoleDetails & WithRoleName(const char *value)
void SetInstanceProfileList(const Aws::Vector< AwsIamInstanceProfile > &value)
AwsIamRoleDetails & WithRoleId(const Aws::String &value)
AwsIamRoleDetails & WithAttachedManagedPolicies(Aws::Vector< AwsIamAttachedManagedPolicy > &&value)
AwsIamRoleDetails & WithPermissionsBoundary(const AwsIamPermissionsBoundary &value)
AwsIamRoleDetails & WithPermissionsBoundary(AwsIamPermissionsBoundary &&value)
const Aws::Vector< AwsIamInstanceProfile > & GetInstanceProfileList() const
void SetRoleId(const Aws::String &value)
void SetPermissionsBoundary(AwsIamPermissionsBoundary &&value)
void SetPermissionsBoundary(const AwsIamPermissionsBoundary &value)
AwsIamRoleDetails & AddInstanceProfileList(const AwsIamInstanceProfile &value)
void SetAssumeRolePolicyDocument(const Aws::String &value)
AwsIamRoleDetails & AddInstanceProfileList(AwsIamInstanceProfile &&value)
AwsIamRoleDetails & WithRolePolicyList(const Aws::Vector< AwsIamRolePolicy > &value)
AWS_SECURITYHUB_API AwsIamRoleDetails & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetRoleName(const Aws::String &value)
void SetAssumeRolePolicyDocument(Aws::String &&value)
AwsIamRoleDetails & WithRoleName(const Aws::String &value)
AwsIamRoleDetails & WithAssumeRolePolicyDocument(const Aws::String &value)
void SetRolePolicyList(const Aws::Vector< AwsIamRolePolicy > &value)
AwsIamRoleDetails & WithRoleName(Aws::String &&value)
AwsIamRoleDetails & WithCreateDate(Aws::String &&value)
void SetRolePolicyList(Aws::Vector< AwsIamRolePolicy > &&value)
AwsIamRoleDetails & AddRolePolicyList(AwsIamRolePolicy &&value)
AwsIamRoleDetails & AddAttachedManagedPolicies(const AwsIamAttachedManagedPolicy &value)
void SetInstanceProfileList(Aws::Vector< AwsIamInstanceProfile > &&value)
AwsIamRoleDetails & WithRolePolicyList(Aws::Vector< AwsIamRolePolicy > &&value)
AwsIamRoleDetails & WithRoleId(const char *value)
AwsIamRoleDetails & AddRolePolicyList(const AwsIamRolePolicy &value)
AwsIamRoleDetails & WithAssumeRolePolicyDocument(Aws::String &&value)
void SetAttachedManagedPolicies(const Aws::Vector< AwsIamAttachedManagedPolicy > &value)
AwsIamRoleDetails & WithAssumeRolePolicyDocument(const char *value)
AwsIamRoleDetails & WithRoleId(Aws::String &&value)
const Aws::Vector< AwsIamAttachedManagedPolicy > & GetAttachedManagedPolicies() const
AwsIamRoleDetails & WithMaxSessionDuration(int value)
AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_SECURITYHUB_API AwsIamRoleDetails(Aws::Utils::Json::JsonView jsonValue)
AwsIamRoleDetails & AddAttachedManagedPolicies(AwsIamAttachedManagedPolicy &&value)
AwsIamRoleDetails & WithPath(const char *value)
AwsIamRoleDetails & WithPath(const Aws::String &value)
const Aws::Vector< AwsIamRolePolicy > & GetRolePolicyList() const
void SetCreateDate(const Aws::String &value)
AwsIamRoleDetails & WithCreateDate(const Aws::String &value)
const Aws::String & GetAssumeRolePolicyDocument() const
void SetAssumeRolePolicyDocument(const char *value)
void SetAttachedManagedPolicies(Aws::Vector< AwsIamAttachedManagedPolicy > &&value)
AwsIamRoleDetails & WithPath(Aws::String &&value)
const AwsIamPermissionsBoundary & GetPermissionsBoundary() const
AwsIamRoleDetails & WithInstanceProfileList(Aws::Vector< AwsIamInstanceProfile > &&value)
AwsIamRoleDetails & WithInstanceProfileList(const Aws::Vector< AwsIamInstanceProfile > &value)
AwsIamRoleDetails & WithAttachedManagedPolicies(const Aws::Vector< AwsIamAttachedManagedPolicy > &value)
AwsIamRoleDetails & WithCreateDate(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue