AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
AwsEc2SecurityGroupDetails.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/securityhub/SecurityHub_EXPORTS.h>
10#include <aws/securityhub/model/AwsEc2SecurityGroupIpPermission.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace SecurityHub {
22namespace Model {
23
30 public:
31 AWS_SECURITYHUB_API AwsEc2SecurityGroupDetails() = default;
34 AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline const Aws::String& GetGroupName() const { return m_groupName; }
41 inline bool GroupNameHasBeenSet() const { return m_groupNameHasBeenSet; }
42 template <typename GroupNameT = Aws::String>
43 void SetGroupName(GroupNameT&& value) {
44 m_groupNameHasBeenSet = true;
45 m_groupName = std::forward<GroupNameT>(value);
46 }
47 template <typename GroupNameT = Aws::String>
49 SetGroupName(std::forward<GroupNameT>(value));
50 return *this;
51 }
53
55
58 inline const Aws::String& GetGroupId() const { return m_groupId; }
59 inline bool GroupIdHasBeenSet() const { return m_groupIdHasBeenSet; }
60 template <typename GroupIdT = Aws::String>
61 void SetGroupId(GroupIdT&& value) {
62 m_groupIdHasBeenSet = true;
63 m_groupId = std::forward<GroupIdT>(value);
64 }
65 template <typename GroupIdT = Aws::String>
67 SetGroupId(std::forward<GroupIdT>(value));
68 return *this;
69 }
71
73
76 inline const Aws::String& GetOwnerId() const { return m_ownerId; }
77 inline bool OwnerIdHasBeenSet() const { return m_ownerIdHasBeenSet; }
78 template <typename OwnerIdT = Aws::String>
79 void SetOwnerId(OwnerIdT&& value) {
80 m_ownerIdHasBeenSet = true;
81 m_ownerId = std::forward<OwnerIdT>(value);
82 }
83 template <typename OwnerIdT = Aws::String>
85 SetOwnerId(std::forward<OwnerIdT>(value));
86 return *this;
87 }
89
91
94 inline const Aws::String& GetVpcId() const { return m_vpcId; }
95 inline bool VpcIdHasBeenSet() const { return m_vpcIdHasBeenSet; }
96 template <typename VpcIdT = Aws::String>
97 void SetVpcId(VpcIdT&& value) {
98 m_vpcIdHasBeenSet = true;
99 m_vpcId = std::forward<VpcIdT>(value);
100 }
101 template <typename VpcIdT = Aws::String>
103 SetVpcId(std::forward<VpcIdT>(value));
104 return *this;
105 }
107
109
112 inline const Aws::Vector<AwsEc2SecurityGroupIpPermission>& GetIpPermissions() const { return m_ipPermissions; }
113 inline bool IpPermissionsHasBeenSet() const { return m_ipPermissionsHasBeenSet; }
114 template <typename IpPermissionsT = Aws::Vector<AwsEc2SecurityGroupIpPermission>>
115 void SetIpPermissions(IpPermissionsT&& value) {
116 m_ipPermissionsHasBeenSet = true;
117 m_ipPermissions = std::forward<IpPermissionsT>(value);
118 }
119 template <typename IpPermissionsT = Aws::Vector<AwsEc2SecurityGroupIpPermission>>
121 SetIpPermissions(std::forward<IpPermissionsT>(value));
122 return *this;
123 }
124 template <typename IpPermissionsT = AwsEc2SecurityGroupIpPermission>
126 m_ipPermissionsHasBeenSet = true;
127 m_ipPermissions.emplace_back(std::forward<IpPermissionsT>(value));
128 return *this;
129 }
131
133
136 inline const Aws::Vector<AwsEc2SecurityGroupIpPermission>& GetIpPermissionsEgress() const { return m_ipPermissionsEgress; }
137 inline bool IpPermissionsEgressHasBeenSet() const { return m_ipPermissionsEgressHasBeenSet; }
138 template <typename IpPermissionsEgressT = Aws::Vector<AwsEc2SecurityGroupIpPermission>>
139 void SetIpPermissionsEgress(IpPermissionsEgressT&& value) {
140 m_ipPermissionsEgressHasBeenSet = true;
141 m_ipPermissionsEgress = std::forward<IpPermissionsEgressT>(value);
142 }
143 template <typename IpPermissionsEgressT = Aws::Vector<AwsEc2SecurityGroupIpPermission>>
145 SetIpPermissionsEgress(std::forward<IpPermissionsEgressT>(value));
146 return *this;
147 }
148 template <typename IpPermissionsEgressT = AwsEc2SecurityGroupIpPermission>
149 AwsEc2SecurityGroupDetails& AddIpPermissionsEgress(IpPermissionsEgressT&& value) {
150 m_ipPermissionsEgressHasBeenSet = true;
151 m_ipPermissionsEgress.emplace_back(std::forward<IpPermissionsEgressT>(value));
152 return *this;
153 }
155 private:
156 Aws::String m_groupName;
157
158 Aws::String m_groupId;
159
160 Aws::String m_ownerId;
161
162 Aws::String m_vpcId;
163
165
167 bool m_groupNameHasBeenSet = false;
168 bool m_groupIdHasBeenSet = false;
169 bool m_ownerIdHasBeenSet = false;
170 bool m_vpcIdHasBeenSet = false;
171 bool m_ipPermissionsHasBeenSet = false;
172 bool m_ipPermissionsEgressHasBeenSet = false;
173};
174
175} // namespace Model
176} // namespace SecurityHub
177} // namespace Aws
AwsEc2SecurityGroupDetails & WithIpPermissions(IpPermissionsT &&value)
AwsEc2SecurityGroupDetails & WithOwnerId(OwnerIdT &&value)
AWS_SECURITYHUB_API AwsEc2SecurityGroupDetails(Aws::Utils::Json::JsonView jsonValue)
AwsEc2SecurityGroupDetails & WithGroupName(GroupNameT &&value)
AWS_SECURITYHUB_API AwsEc2SecurityGroupDetails()=default
AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_SECURITYHUB_API AwsEc2SecurityGroupDetails & operator=(Aws::Utils::Json::JsonView jsonValue)
AwsEc2SecurityGroupDetails & WithIpPermissionsEgress(IpPermissionsEgressT &&value)
AwsEc2SecurityGroupDetails & AddIpPermissionsEgress(IpPermissionsEgressT &&value)
const Aws::Vector< AwsEc2SecurityGroupIpPermission > & GetIpPermissionsEgress() const
AwsEc2SecurityGroupDetails & AddIpPermissions(IpPermissionsT &&value)
AwsEc2SecurityGroupDetails & WithGroupId(GroupIdT &&value)
const Aws::Vector< AwsEc2SecurityGroupIpPermission > & GetIpPermissions() const
AwsEc2SecurityGroupDetails & WithVpcId(VpcIdT &&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