AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
AwsEc2SecurityGroupDetails.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/AwsEc2SecurityGroupIpPermission.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace SecurityHub
24{
25namespace Model
26{
27
34 {
35 public:
36 AWS_SECURITYHUB_API AwsEc2SecurityGroupDetails() = default;
39 AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
46 inline const Aws::String& GetGroupName() const { return m_groupName; }
47 inline bool GroupNameHasBeenSet() const { return m_groupNameHasBeenSet; }
48 template<typename GroupNameT = Aws::String>
49 void SetGroupName(GroupNameT&& value) { m_groupNameHasBeenSet = true; m_groupName = std::forward<GroupNameT>(value); }
50 template<typename GroupNameT = Aws::String>
51 AwsEc2SecurityGroupDetails& WithGroupName(GroupNameT&& value) { SetGroupName(std::forward<GroupNameT>(value)); return *this;}
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) { m_groupIdHasBeenSet = true; m_groupId = std::forward<GroupIdT>(value); }
62 template<typename GroupIdT = Aws::String>
63 AwsEc2SecurityGroupDetails& WithGroupId(GroupIdT&& value) { SetGroupId(std::forward<GroupIdT>(value)); return *this;}
65
67
70 inline const Aws::String& GetOwnerId() const { return m_ownerId; }
71 inline bool OwnerIdHasBeenSet() const { return m_ownerIdHasBeenSet; }
72 template<typename OwnerIdT = Aws::String>
73 void SetOwnerId(OwnerIdT&& value) { m_ownerIdHasBeenSet = true; m_ownerId = std::forward<OwnerIdT>(value); }
74 template<typename OwnerIdT = Aws::String>
75 AwsEc2SecurityGroupDetails& WithOwnerId(OwnerIdT&& value) { SetOwnerId(std::forward<OwnerIdT>(value)); return *this;}
77
79
82 inline const Aws::String& GetVpcId() const { return m_vpcId; }
83 inline bool VpcIdHasBeenSet() const { return m_vpcIdHasBeenSet; }
84 template<typename VpcIdT = Aws::String>
85 void SetVpcId(VpcIdT&& value) { m_vpcIdHasBeenSet = true; m_vpcId = std::forward<VpcIdT>(value); }
86 template<typename VpcIdT = Aws::String>
87 AwsEc2SecurityGroupDetails& WithVpcId(VpcIdT&& value) { SetVpcId(std::forward<VpcIdT>(value)); return *this;}
89
91
94 inline const Aws::Vector<AwsEc2SecurityGroupIpPermission>& GetIpPermissions() const { return m_ipPermissions; }
95 inline bool IpPermissionsHasBeenSet() const { return m_ipPermissionsHasBeenSet; }
96 template<typename IpPermissionsT = Aws::Vector<AwsEc2SecurityGroupIpPermission>>
97 void SetIpPermissions(IpPermissionsT&& value) { m_ipPermissionsHasBeenSet = true; m_ipPermissions = std::forward<IpPermissionsT>(value); }
98 template<typename IpPermissionsT = Aws::Vector<AwsEc2SecurityGroupIpPermission>>
99 AwsEc2SecurityGroupDetails& WithIpPermissions(IpPermissionsT&& value) { SetIpPermissions(std::forward<IpPermissionsT>(value)); return *this;}
100 template<typename IpPermissionsT = AwsEc2SecurityGroupIpPermission>
101 AwsEc2SecurityGroupDetails& AddIpPermissions(IpPermissionsT&& value) { m_ipPermissionsHasBeenSet = true; m_ipPermissions.emplace_back(std::forward<IpPermissionsT>(value)); return *this; }
103
105
108 inline const Aws::Vector<AwsEc2SecurityGroupIpPermission>& GetIpPermissionsEgress() const { return m_ipPermissionsEgress; }
109 inline bool IpPermissionsEgressHasBeenSet() const { return m_ipPermissionsEgressHasBeenSet; }
110 template<typename IpPermissionsEgressT = Aws::Vector<AwsEc2SecurityGroupIpPermission>>
111 void SetIpPermissionsEgress(IpPermissionsEgressT&& value) { m_ipPermissionsEgressHasBeenSet = true; m_ipPermissionsEgress = std::forward<IpPermissionsEgressT>(value); }
112 template<typename IpPermissionsEgressT = Aws::Vector<AwsEc2SecurityGroupIpPermission>>
113 AwsEc2SecurityGroupDetails& WithIpPermissionsEgress(IpPermissionsEgressT&& value) { SetIpPermissionsEgress(std::forward<IpPermissionsEgressT>(value)); return *this;}
114 template<typename IpPermissionsEgressT = AwsEc2SecurityGroupIpPermission>
115 AwsEc2SecurityGroupDetails& AddIpPermissionsEgress(IpPermissionsEgressT&& value) { m_ipPermissionsEgressHasBeenSet = true; m_ipPermissionsEgress.emplace_back(std::forward<IpPermissionsEgressT>(value)); return *this; }
117 private:
118
119 Aws::String m_groupName;
120 bool m_groupNameHasBeenSet = false;
121
122 Aws::String m_groupId;
123 bool m_groupIdHasBeenSet = false;
124
125 Aws::String m_ownerId;
126 bool m_ownerIdHasBeenSet = false;
127
128 Aws::String m_vpcId;
129 bool m_vpcIdHasBeenSet = false;
130
132 bool m_ipPermissionsHasBeenSet = false;
133
135 bool m_ipPermissionsEgressHasBeenSet = false;
136 };
137
138} // namespace Model
139} // namespace SecurityHub
140} // 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