AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetGroupName(const Aws::String& value) { m_groupNameHasBeenSet = true; m_groupName = value; }
49 inline void SetGroupName(Aws::String&& value) { m_groupNameHasBeenSet = true; m_groupName = std::move(value); }
50 inline void SetGroupName(const char* value) { m_groupNameHasBeenSet = true; m_groupName.assign(value); }
51 inline AwsEc2SecurityGroupDetails& WithGroupName(const Aws::String& value) { SetGroupName(value); return *this;}
52 inline AwsEc2SecurityGroupDetails& WithGroupName(Aws::String&& value) { SetGroupName(std::move(value)); return *this;}
53 inline AwsEc2SecurityGroupDetails& WithGroupName(const char* value) { SetGroupName(value); return *this;}
55
57
60 inline const Aws::String& GetGroupId() const{ return m_groupId; }
61 inline bool GroupIdHasBeenSet() const { return m_groupIdHasBeenSet; }
62 inline void SetGroupId(const Aws::String& value) { m_groupIdHasBeenSet = true; m_groupId = value; }
63 inline void SetGroupId(Aws::String&& value) { m_groupIdHasBeenSet = true; m_groupId = std::move(value); }
64 inline void SetGroupId(const char* value) { m_groupIdHasBeenSet = true; m_groupId.assign(value); }
65 inline AwsEc2SecurityGroupDetails& WithGroupId(const Aws::String& value) { SetGroupId(value); return *this;}
66 inline AwsEc2SecurityGroupDetails& WithGroupId(Aws::String&& value) { SetGroupId(std::move(value)); return *this;}
67 inline AwsEc2SecurityGroupDetails& WithGroupId(const char* value) { SetGroupId(value); return *this;}
69
71
74 inline const Aws::String& GetOwnerId() const{ return m_ownerId; }
75 inline bool OwnerIdHasBeenSet() const { return m_ownerIdHasBeenSet; }
76 inline void SetOwnerId(const Aws::String& value) { m_ownerIdHasBeenSet = true; m_ownerId = value; }
77 inline void SetOwnerId(Aws::String&& value) { m_ownerIdHasBeenSet = true; m_ownerId = std::move(value); }
78 inline void SetOwnerId(const char* value) { m_ownerIdHasBeenSet = true; m_ownerId.assign(value); }
79 inline AwsEc2SecurityGroupDetails& WithOwnerId(const Aws::String& value) { SetOwnerId(value); return *this;}
80 inline AwsEc2SecurityGroupDetails& WithOwnerId(Aws::String&& value) { SetOwnerId(std::move(value)); return *this;}
81 inline AwsEc2SecurityGroupDetails& WithOwnerId(const char* value) { SetOwnerId(value); return *this;}
83
85
88 inline const Aws::String& GetVpcId() const{ return m_vpcId; }
89 inline bool VpcIdHasBeenSet() const { return m_vpcIdHasBeenSet; }
90 inline void SetVpcId(const Aws::String& value) { m_vpcIdHasBeenSet = true; m_vpcId = value; }
91 inline void SetVpcId(Aws::String&& value) { m_vpcIdHasBeenSet = true; m_vpcId = std::move(value); }
92 inline void SetVpcId(const char* value) { m_vpcIdHasBeenSet = true; m_vpcId.assign(value); }
93 inline AwsEc2SecurityGroupDetails& WithVpcId(const Aws::String& value) { SetVpcId(value); return *this;}
94 inline AwsEc2SecurityGroupDetails& WithVpcId(Aws::String&& value) { SetVpcId(std::move(value)); return *this;}
95 inline AwsEc2SecurityGroupDetails& WithVpcId(const char* value) { SetVpcId(value); return *this;}
97
99
102 inline const Aws::Vector<AwsEc2SecurityGroupIpPermission>& GetIpPermissions() const{ return m_ipPermissions; }
103 inline bool IpPermissionsHasBeenSet() const { return m_ipPermissionsHasBeenSet; }
104 inline void SetIpPermissions(const Aws::Vector<AwsEc2SecurityGroupIpPermission>& value) { m_ipPermissionsHasBeenSet = true; m_ipPermissions = value; }
105 inline void SetIpPermissions(Aws::Vector<AwsEc2SecurityGroupIpPermission>&& value) { m_ipPermissionsHasBeenSet = true; m_ipPermissions = std::move(value); }
108 inline AwsEc2SecurityGroupDetails& AddIpPermissions(const AwsEc2SecurityGroupIpPermission& value) { m_ipPermissionsHasBeenSet = true; m_ipPermissions.push_back(value); return *this; }
109 inline AwsEc2SecurityGroupDetails& AddIpPermissions(AwsEc2SecurityGroupIpPermission&& value) { m_ipPermissionsHasBeenSet = true; m_ipPermissions.push_back(std::move(value)); return *this; }
111
113
116 inline const Aws::Vector<AwsEc2SecurityGroupIpPermission>& GetIpPermissionsEgress() const{ return m_ipPermissionsEgress; }
117 inline bool IpPermissionsEgressHasBeenSet() const { return m_ipPermissionsEgressHasBeenSet; }
118 inline void SetIpPermissionsEgress(const Aws::Vector<AwsEc2SecurityGroupIpPermission>& value) { m_ipPermissionsEgressHasBeenSet = true; m_ipPermissionsEgress = value; }
119 inline void SetIpPermissionsEgress(Aws::Vector<AwsEc2SecurityGroupIpPermission>&& value) { m_ipPermissionsEgressHasBeenSet = true; m_ipPermissionsEgress = std::move(value); }
122 inline AwsEc2SecurityGroupDetails& AddIpPermissionsEgress(const AwsEc2SecurityGroupIpPermission& value) { m_ipPermissionsEgressHasBeenSet = true; m_ipPermissionsEgress.push_back(value); return *this; }
123 inline AwsEc2SecurityGroupDetails& AddIpPermissionsEgress(AwsEc2SecurityGroupIpPermission&& value) { m_ipPermissionsEgressHasBeenSet = true; m_ipPermissionsEgress.push_back(std::move(value)); return *this; }
125 private:
126
127 Aws::String m_groupName;
128 bool m_groupNameHasBeenSet = false;
129
130 Aws::String m_groupId;
131 bool m_groupIdHasBeenSet = false;
132
133 Aws::String m_ownerId;
134 bool m_ownerIdHasBeenSet = false;
135
136 Aws::String m_vpcId;
137 bool m_vpcIdHasBeenSet = false;
138
140 bool m_ipPermissionsHasBeenSet = false;
141
143 bool m_ipPermissionsEgressHasBeenSet = false;
144 };
145
146} // namespace Model
147} // namespace SecurityHub
148} // namespace Aws
AwsEc2SecurityGroupDetails & WithGroupName(Aws::String &&value)
AwsEc2SecurityGroupDetails & WithOwnerId(Aws::String &&value)
AwsEc2SecurityGroupDetails & WithIpPermissions(const Aws::Vector< AwsEc2SecurityGroupIpPermission > &value)
AwsEc2SecurityGroupDetails & WithGroupName(const Aws::String &value)
AWS_SECURITYHUB_API AwsEc2SecurityGroupDetails(Aws::Utils::Json::JsonView jsonValue)
AwsEc2SecurityGroupDetails & WithGroupName(const char *value)
AwsEc2SecurityGroupDetails & WithIpPermissionsEgress(Aws::Vector< AwsEc2SecurityGroupIpPermission > &&value)
AwsEc2SecurityGroupDetails & WithVpcId(Aws::String &&value)
AwsEc2SecurityGroupDetails & AddIpPermissions(const AwsEc2SecurityGroupIpPermission &value)
AwsEc2SecurityGroupDetails & AddIpPermissions(AwsEc2SecurityGroupIpPermission &&value)
AwsEc2SecurityGroupDetails & AddIpPermissionsEgress(const AwsEc2SecurityGroupIpPermission &value)
AwsEc2SecurityGroupDetails & WithVpcId(const Aws::String &value)
void SetIpPermissions(Aws::Vector< AwsEc2SecurityGroupIpPermission > &&value)
void SetIpPermissions(const Aws::Vector< AwsEc2SecurityGroupIpPermission > &value)
AwsEc2SecurityGroupDetails & WithIpPermissions(Aws::Vector< AwsEc2SecurityGroupIpPermission > &&value)
AwsEc2SecurityGroupDetails & WithGroupId(const char *value)
AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const
AwsEc2SecurityGroupDetails & WithGroupId(Aws::String &&value)
AWS_SECURITYHUB_API AwsEc2SecurityGroupDetails & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetIpPermissionsEgress(const Aws::Vector< AwsEc2SecurityGroupIpPermission > &value)
const Aws::Vector< AwsEc2SecurityGroupIpPermission > & GetIpPermissionsEgress() const
AwsEc2SecurityGroupDetails & WithOwnerId(const char *value)
AwsEc2SecurityGroupDetails & WithGroupId(const Aws::String &value)
void SetIpPermissionsEgress(Aws::Vector< AwsEc2SecurityGroupIpPermission > &&value)
const Aws::Vector< AwsEc2SecurityGroupIpPermission > & GetIpPermissions() const
AwsEc2SecurityGroupDetails & AddIpPermissionsEgress(AwsEc2SecurityGroupIpPermission &&value)
AwsEc2SecurityGroupDetails & WithIpPermissionsEgress(const Aws::Vector< AwsEc2SecurityGroupIpPermission > &value)
AwsEc2SecurityGroupDetails & WithVpcId(const char *value)
AwsEc2SecurityGroupDetails & WithOwnerId(const Aws::String &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