AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
AwsRdsDbSecurityGroupDetails.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/AwsRdsDbSecurityGroupEc2SecurityGroup.h>
11#include <aws/securityhub/model/AwsRdsDbSecurityGroupIpRange.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
36 {
37 public:
38 AWS_SECURITYHUB_API AwsRdsDbSecurityGroupDetails();
41 AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
48 inline const Aws::String& GetDbSecurityGroupArn() const{ return m_dbSecurityGroupArn; }
49 inline bool DbSecurityGroupArnHasBeenSet() const { return m_dbSecurityGroupArnHasBeenSet; }
50 inline void SetDbSecurityGroupArn(const Aws::String& value) { m_dbSecurityGroupArnHasBeenSet = true; m_dbSecurityGroupArn = value; }
51 inline void SetDbSecurityGroupArn(Aws::String&& value) { m_dbSecurityGroupArnHasBeenSet = true; m_dbSecurityGroupArn = std::move(value); }
52 inline void SetDbSecurityGroupArn(const char* value) { m_dbSecurityGroupArnHasBeenSet = true; m_dbSecurityGroupArn.assign(value); }
54 inline AwsRdsDbSecurityGroupDetails& WithDbSecurityGroupArn(Aws::String&& value) { SetDbSecurityGroupArn(std::move(value)); return *this;}
55 inline AwsRdsDbSecurityGroupDetails& WithDbSecurityGroupArn(const char* value) { SetDbSecurityGroupArn(value); return *this;}
57
59
62 inline const Aws::String& GetDbSecurityGroupDescription() const{ return m_dbSecurityGroupDescription; }
63 inline bool DbSecurityGroupDescriptionHasBeenSet() const { return m_dbSecurityGroupDescriptionHasBeenSet; }
64 inline void SetDbSecurityGroupDescription(const Aws::String& value) { m_dbSecurityGroupDescriptionHasBeenSet = true; m_dbSecurityGroupDescription = value; }
65 inline void SetDbSecurityGroupDescription(Aws::String&& value) { m_dbSecurityGroupDescriptionHasBeenSet = true; m_dbSecurityGroupDescription = std::move(value); }
66 inline void SetDbSecurityGroupDescription(const char* value) { m_dbSecurityGroupDescriptionHasBeenSet = true; m_dbSecurityGroupDescription.assign(value); }
71
73
76 inline const Aws::String& GetDbSecurityGroupName() const{ return m_dbSecurityGroupName; }
77 inline bool DbSecurityGroupNameHasBeenSet() const { return m_dbSecurityGroupNameHasBeenSet; }
78 inline void SetDbSecurityGroupName(const Aws::String& value) { m_dbSecurityGroupNameHasBeenSet = true; m_dbSecurityGroupName = value; }
79 inline void SetDbSecurityGroupName(Aws::String&& value) { m_dbSecurityGroupNameHasBeenSet = true; m_dbSecurityGroupName = std::move(value); }
80 inline void SetDbSecurityGroupName(const char* value) { m_dbSecurityGroupNameHasBeenSet = true; m_dbSecurityGroupName.assign(value); }
83 inline AwsRdsDbSecurityGroupDetails& WithDbSecurityGroupName(const char* value) { SetDbSecurityGroupName(value); return *this;}
85
87
90 inline const Aws::Vector<AwsRdsDbSecurityGroupEc2SecurityGroup>& GetEc2SecurityGroups() const{ return m_ec2SecurityGroups; }
91 inline bool Ec2SecurityGroupsHasBeenSet() const { return m_ec2SecurityGroupsHasBeenSet; }
92 inline void SetEc2SecurityGroups(const Aws::Vector<AwsRdsDbSecurityGroupEc2SecurityGroup>& value) { m_ec2SecurityGroupsHasBeenSet = true; m_ec2SecurityGroups = value; }
93 inline void SetEc2SecurityGroups(Aws::Vector<AwsRdsDbSecurityGroupEc2SecurityGroup>&& value) { m_ec2SecurityGroupsHasBeenSet = true; m_ec2SecurityGroups = std::move(value); }
96 inline AwsRdsDbSecurityGroupDetails& AddEc2SecurityGroups(const AwsRdsDbSecurityGroupEc2SecurityGroup& value) { m_ec2SecurityGroupsHasBeenSet = true; m_ec2SecurityGroups.push_back(value); return *this; }
97 inline AwsRdsDbSecurityGroupDetails& AddEc2SecurityGroups(AwsRdsDbSecurityGroupEc2SecurityGroup&& value) { m_ec2SecurityGroupsHasBeenSet = true; m_ec2SecurityGroups.push_back(std::move(value)); return *this; }
99
101
104 inline const Aws::Vector<AwsRdsDbSecurityGroupIpRange>& GetIpRanges() const{ return m_ipRanges; }
105 inline bool IpRangesHasBeenSet() const { return m_ipRangesHasBeenSet; }
106 inline void SetIpRanges(const Aws::Vector<AwsRdsDbSecurityGroupIpRange>& value) { m_ipRangesHasBeenSet = true; m_ipRanges = value; }
107 inline void SetIpRanges(Aws::Vector<AwsRdsDbSecurityGroupIpRange>&& value) { m_ipRangesHasBeenSet = true; m_ipRanges = std::move(value); }
110 inline AwsRdsDbSecurityGroupDetails& AddIpRanges(const AwsRdsDbSecurityGroupIpRange& value) { m_ipRangesHasBeenSet = true; m_ipRanges.push_back(value); return *this; }
111 inline AwsRdsDbSecurityGroupDetails& AddIpRanges(AwsRdsDbSecurityGroupIpRange&& value) { m_ipRangesHasBeenSet = true; m_ipRanges.push_back(std::move(value)); return *this; }
113
115
119 inline const Aws::String& GetOwnerId() const{ return m_ownerId; }
120 inline bool OwnerIdHasBeenSet() const { return m_ownerIdHasBeenSet; }
121 inline void SetOwnerId(const Aws::String& value) { m_ownerIdHasBeenSet = true; m_ownerId = value; }
122 inline void SetOwnerId(Aws::String&& value) { m_ownerIdHasBeenSet = true; m_ownerId = std::move(value); }
123 inline void SetOwnerId(const char* value) { m_ownerIdHasBeenSet = true; m_ownerId.assign(value); }
124 inline AwsRdsDbSecurityGroupDetails& WithOwnerId(const Aws::String& value) { SetOwnerId(value); return *this;}
125 inline AwsRdsDbSecurityGroupDetails& WithOwnerId(Aws::String&& value) { SetOwnerId(std::move(value)); return *this;}
126 inline AwsRdsDbSecurityGroupDetails& WithOwnerId(const char* value) { SetOwnerId(value); return *this;}
128
130
133 inline const Aws::String& GetVpcId() const{ return m_vpcId; }
134 inline bool VpcIdHasBeenSet() const { return m_vpcIdHasBeenSet; }
135 inline void SetVpcId(const Aws::String& value) { m_vpcIdHasBeenSet = true; m_vpcId = value; }
136 inline void SetVpcId(Aws::String&& value) { m_vpcIdHasBeenSet = true; m_vpcId = std::move(value); }
137 inline void SetVpcId(const char* value) { m_vpcIdHasBeenSet = true; m_vpcId.assign(value); }
138 inline AwsRdsDbSecurityGroupDetails& WithVpcId(const Aws::String& value) { SetVpcId(value); return *this;}
139 inline AwsRdsDbSecurityGroupDetails& WithVpcId(Aws::String&& value) { SetVpcId(std::move(value)); return *this;}
140 inline AwsRdsDbSecurityGroupDetails& WithVpcId(const char* value) { SetVpcId(value); return *this;}
142 private:
143
144 Aws::String m_dbSecurityGroupArn;
145 bool m_dbSecurityGroupArnHasBeenSet = false;
146
147 Aws::String m_dbSecurityGroupDescription;
148 bool m_dbSecurityGroupDescriptionHasBeenSet = false;
149
150 Aws::String m_dbSecurityGroupName;
151 bool m_dbSecurityGroupNameHasBeenSet = false;
152
154 bool m_ec2SecurityGroupsHasBeenSet = false;
155
157 bool m_ipRangesHasBeenSet = false;
158
159 Aws::String m_ownerId;
160 bool m_ownerIdHasBeenSet = false;
161
162 Aws::String m_vpcId;
163 bool m_vpcIdHasBeenSet = false;
164 };
165
166} // namespace Model
167} // namespace SecurityHub
168} // namespace Aws
AwsRdsDbSecurityGroupDetails & WithIpRanges(const Aws::Vector< AwsRdsDbSecurityGroupIpRange > &value)
AwsRdsDbSecurityGroupDetails & WithOwnerId(Aws::String &&value)
AwsRdsDbSecurityGroupDetails & WithDbSecurityGroupName(const Aws::String &value)
AwsRdsDbSecurityGroupDetails & WithOwnerId(const Aws::String &value)
AwsRdsDbSecurityGroupDetails & WithOwnerId(const char *value)
AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const
void SetIpRanges(const Aws::Vector< AwsRdsDbSecurityGroupIpRange > &value)
AwsRdsDbSecurityGroupDetails & WithDbSecurityGroupDescription(const char *value)
AwsRdsDbSecurityGroupDetails & WithVpcId(const char *value)
AwsRdsDbSecurityGroupDetails & WithDbSecurityGroupDescription(const Aws::String &value)
AwsRdsDbSecurityGroupDetails & WithDbSecurityGroupArn(const char *value)
AwsRdsDbSecurityGroupDetails & WithDbSecurityGroupArn(Aws::String &&value)
AwsRdsDbSecurityGroupDetails & AddEc2SecurityGroups(AwsRdsDbSecurityGroupEc2SecurityGroup &&value)
AwsRdsDbSecurityGroupDetails & AddEc2SecurityGroups(const AwsRdsDbSecurityGroupEc2SecurityGroup &value)
AWS_SECURITYHUB_API AwsRdsDbSecurityGroupDetails & operator=(Aws::Utils::Json::JsonView jsonValue)
AwsRdsDbSecurityGroupDetails & WithEc2SecurityGroups(const Aws::Vector< AwsRdsDbSecurityGroupEc2SecurityGroup > &value)
AwsRdsDbSecurityGroupDetails & WithIpRanges(Aws::Vector< AwsRdsDbSecurityGroupIpRange > &&value)
void SetEc2SecurityGroups(const Aws::Vector< AwsRdsDbSecurityGroupEc2SecurityGroup > &value)
AwsRdsDbSecurityGroupDetails & WithVpcId(Aws::String &&value)
AwsRdsDbSecurityGroupDetails & WithDbSecurityGroupName(const char *value)
AwsRdsDbSecurityGroupDetails & WithDbSecurityGroupArn(const Aws::String &value)
void SetEc2SecurityGroups(Aws::Vector< AwsRdsDbSecurityGroupEc2SecurityGroup > &&value)
const Aws::Vector< AwsRdsDbSecurityGroupEc2SecurityGroup > & GetEc2SecurityGroups() const
AwsRdsDbSecurityGroupDetails & WithDbSecurityGroupName(Aws::String &&value)
AWS_SECURITYHUB_API AwsRdsDbSecurityGroupDetails(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< AwsRdsDbSecurityGroupIpRange > & GetIpRanges() const
AwsRdsDbSecurityGroupDetails & WithEc2SecurityGroups(Aws::Vector< AwsRdsDbSecurityGroupEc2SecurityGroup > &&value)
void SetIpRanges(Aws::Vector< AwsRdsDbSecurityGroupIpRange > &&value)
AwsRdsDbSecurityGroupDetails & AddIpRanges(const AwsRdsDbSecurityGroupIpRange &value)
AwsRdsDbSecurityGroupDetails & WithDbSecurityGroupDescription(Aws::String &&value)
AwsRdsDbSecurityGroupDetails & AddIpRanges(AwsRdsDbSecurityGroupIpRange &&value)
AwsRdsDbSecurityGroupDetails & WithVpcId(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