AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
AwsIamGroupDetails.h
1
6#pragma once
7#include <aws/securityhub/SecurityHub_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/securityhub/model/AwsIamAttachedManagedPolicy.h>
11#include <aws/securityhub/model/AwsIamGroupPolicy.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21 class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace SecurityHub
25{
26namespace Model
27{
28
35 {
36 public:
37 AWS_SECURITYHUB_API AwsIamGroupDetails() = default;
38 AWS_SECURITYHUB_API AwsIamGroupDetails(Aws::Utils::Json::JsonView jsonValue);
40 AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
47 inline const Aws::Vector<AwsIamAttachedManagedPolicy>& GetAttachedManagedPolicies() const { return m_attachedManagedPolicies; }
48 inline bool AttachedManagedPoliciesHasBeenSet() const { return m_attachedManagedPoliciesHasBeenSet; }
49 template<typename AttachedManagedPoliciesT = Aws::Vector<AwsIamAttachedManagedPolicy>>
50 void SetAttachedManagedPolicies(AttachedManagedPoliciesT&& value) { m_attachedManagedPoliciesHasBeenSet = true; m_attachedManagedPolicies = std::forward<AttachedManagedPoliciesT>(value); }
51 template<typename AttachedManagedPoliciesT = Aws::Vector<AwsIamAttachedManagedPolicy>>
52 AwsIamGroupDetails& WithAttachedManagedPolicies(AttachedManagedPoliciesT&& value) { SetAttachedManagedPolicies(std::forward<AttachedManagedPoliciesT>(value)); return *this;}
53 template<typename AttachedManagedPoliciesT = AwsIamAttachedManagedPolicy>
54 AwsIamGroupDetails& AddAttachedManagedPolicies(AttachedManagedPoliciesT&& value) { m_attachedManagedPoliciesHasBeenSet = true; m_attachedManagedPolicies.emplace_back(std::forward<AttachedManagedPoliciesT>(value)); return *this; }
56
58
63 inline const Aws::String& GetCreateDate() const { return m_createDate; }
64 inline bool CreateDateHasBeenSet() const { return m_createDateHasBeenSet; }
65 template<typename CreateDateT = Aws::String>
66 void SetCreateDate(CreateDateT&& value) { m_createDateHasBeenSet = true; m_createDate = std::forward<CreateDateT>(value); }
67 template<typename CreateDateT = Aws::String>
68 AwsIamGroupDetails& WithCreateDate(CreateDateT&& value) { SetCreateDate(std::forward<CreateDateT>(value)); return *this;}
70
72
75 inline const Aws::String& GetGroupId() const { return m_groupId; }
76 inline bool GroupIdHasBeenSet() const { return m_groupIdHasBeenSet; }
77 template<typename GroupIdT = Aws::String>
78 void SetGroupId(GroupIdT&& value) { m_groupIdHasBeenSet = true; m_groupId = std::forward<GroupIdT>(value); }
79 template<typename GroupIdT = Aws::String>
80 AwsIamGroupDetails& WithGroupId(GroupIdT&& value) { SetGroupId(std::forward<GroupIdT>(value)); return *this;}
82
84
87 inline const Aws::String& GetGroupName() const { return m_groupName; }
88 inline bool GroupNameHasBeenSet() const { return m_groupNameHasBeenSet; }
89 template<typename GroupNameT = Aws::String>
90 void SetGroupName(GroupNameT&& value) { m_groupNameHasBeenSet = true; m_groupName = std::forward<GroupNameT>(value); }
91 template<typename GroupNameT = Aws::String>
92 AwsIamGroupDetails& WithGroupName(GroupNameT&& value) { SetGroupName(std::forward<GroupNameT>(value)); return *this;}
94
96
99 inline const Aws::Vector<AwsIamGroupPolicy>& GetGroupPolicyList() const { return m_groupPolicyList; }
100 inline bool GroupPolicyListHasBeenSet() const { return m_groupPolicyListHasBeenSet; }
101 template<typename GroupPolicyListT = Aws::Vector<AwsIamGroupPolicy>>
102 void SetGroupPolicyList(GroupPolicyListT&& value) { m_groupPolicyListHasBeenSet = true; m_groupPolicyList = std::forward<GroupPolicyListT>(value); }
103 template<typename GroupPolicyListT = Aws::Vector<AwsIamGroupPolicy>>
104 AwsIamGroupDetails& WithGroupPolicyList(GroupPolicyListT&& value) { SetGroupPolicyList(std::forward<GroupPolicyListT>(value)); return *this;}
105 template<typename GroupPolicyListT = AwsIamGroupPolicy>
106 AwsIamGroupDetails& AddGroupPolicyList(GroupPolicyListT&& value) { m_groupPolicyListHasBeenSet = true; m_groupPolicyList.emplace_back(std::forward<GroupPolicyListT>(value)); return *this; }
108
110
113 inline const Aws::String& GetPath() const { return m_path; }
114 inline bool PathHasBeenSet() const { return m_pathHasBeenSet; }
115 template<typename PathT = Aws::String>
116 void SetPath(PathT&& value) { m_pathHasBeenSet = true; m_path = std::forward<PathT>(value); }
117 template<typename PathT = Aws::String>
118 AwsIamGroupDetails& WithPath(PathT&& value) { SetPath(std::forward<PathT>(value)); return *this;}
120 private:
121
122 Aws::Vector<AwsIamAttachedManagedPolicy> m_attachedManagedPolicies;
123 bool m_attachedManagedPoliciesHasBeenSet = false;
124
125 Aws::String m_createDate;
126 bool m_createDateHasBeenSet = false;
127
128 Aws::String m_groupId;
129 bool m_groupIdHasBeenSet = false;
130
131 Aws::String m_groupName;
132 bool m_groupNameHasBeenSet = false;
133
134 Aws::Vector<AwsIamGroupPolicy> m_groupPolicyList;
135 bool m_groupPolicyListHasBeenSet = false;
136
137 Aws::String m_path;
138 bool m_pathHasBeenSet = false;
139 };
140
141} // namespace Model
142} // namespace SecurityHub
143} // namespace Aws
void SetAttachedManagedPolicies(AttachedManagedPoliciesT &&value)
AWS_SECURITYHUB_API AwsIamGroupDetails()=default
const Aws::Vector< AwsIamGroupPolicy > & GetGroupPolicyList() const
AwsIamGroupDetails & WithGroupPolicyList(GroupPolicyListT &&value)
AwsIamGroupDetails & WithGroupId(GroupIdT &&value)
AwsIamGroupDetails & WithAttachedManagedPolicies(AttachedManagedPoliciesT &&value)
void SetGroupPolicyList(GroupPolicyListT &&value)
AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::Vector< AwsIamAttachedManagedPolicy > & GetAttachedManagedPolicies() const
AwsIamGroupDetails & AddAttachedManagedPolicies(AttachedManagedPoliciesT &&value)
AwsIamGroupDetails & WithPath(PathT &&value)
AWS_SECURITYHUB_API AwsIamGroupDetails & operator=(Aws::Utils::Json::JsonView jsonValue)
AwsIamGroupDetails & WithCreateDate(CreateDateT &&value)
AwsIamGroupDetails & AddGroupPolicyList(GroupPolicyListT &&value)
AWS_SECURITYHUB_API AwsIamGroupDetails(Aws::Utils::Json::JsonView jsonValue)
AwsIamGroupDetails & WithGroupName(GroupNameT &&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