7#include <aws/rds/RDS_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/rds/model/EC2SecurityGroup.h>
12#include <aws/rds/model/IPRange.h>
54 template<
typename OwnerIdT = Aws::String>
55 void SetOwnerId(OwnerIdT&& value) { m_ownerIdHasBeenSet =
true; m_ownerId = std::forward<OwnerIdT>(value); }
56 template<
typename OwnerIdT = Aws::String>
66 template<
typename DBSecurityGroupNameT = Aws::String>
67 void SetDBSecurityGroupName(DBSecurityGroupNameT&& value) { m_dBSecurityGroupNameHasBeenSet =
true; m_dBSecurityGroupName = std::forward<DBSecurityGroupNameT>(value); }
68 template<
typename DBSecurityGroupNameT = Aws::String>
78 template<
typename DBSecurityGroupDescriptionT = Aws::String>
79 void SetDBSecurityGroupDescription(DBSecurityGroupDescriptionT&& value) { m_dBSecurityGroupDescriptionHasBeenSet =
true; m_dBSecurityGroupDescription = std::forward<DBSecurityGroupDescriptionT>(value); }
80 template<
typename DBSecurityGroupDescriptionT = Aws::String>
90 template<
typename VpcIdT = Aws::String>
91 void SetVpcId(VpcIdT&& value) { m_vpcIdHasBeenSet =
true; m_vpcId = std::forward<VpcIdT>(value); }
92 template<
typename VpcIdT = Aws::String>
102 template<
typename EC2SecurityGroupsT = Aws::Vector<EC2SecurityGroup>>
103 void SetEC2SecurityGroups(EC2SecurityGroupsT&& value) { m_eC2SecurityGroupsHasBeenSet =
true; m_eC2SecurityGroups = std::forward<EC2SecurityGroupsT>(value); }
104 template<
typename EC2SecurityGroupsT = Aws::Vector<EC2SecurityGroup>>
106 template<
typename EC2SecurityGroupsT = EC2SecurityGroup>
107 DBSecurityGroup&
AddEC2SecurityGroups(EC2SecurityGroupsT&& value) { m_eC2SecurityGroupsHasBeenSet =
true; m_eC2SecurityGroups.emplace_back(std::forward<EC2SecurityGroupsT>(value));
return *
this; }
116 template<
typename IPRangesT = Aws::Vector<IPRange>>
117 void SetIPRanges(IPRangesT&& value) { m_iPRangesHasBeenSet =
true; m_iPRanges = std::forward<IPRangesT>(value); }
118 template<
typename IPRangesT = Aws::Vector<IPRange>>
120 template<
typename IPRangesT = IPRange>
121 DBSecurityGroup&
AddIPRanges(IPRangesT&& value) { m_iPRangesHasBeenSet =
true; m_iPRanges.emplace_back(std::forward<IPRangesT>(value));
return *
this; }
130 template<
typename DBSecurityGroupArnT = Aws::String>
131 void SetDBSecurityGroupArn(DBSecurityGroupArnT&& value) { m_dBSecurityGroupArnHasBeenSet =
true; m_dBSecurityGroupArn = std::forward<DBSecurityGroupArnT>(value); }
132 template<
typename DBSecurityGroupArnT = Aws::String>
138 bool m_ownerIdHasBeenSet =
false;
141 bool m_dBSecurityGroupNameHasBeenSet =
false;
144 bool m_dBSecurityGroupDescriptionHasBeenSet =
false;
147 bool m_vpcIdHasBeenSet =
false;
150 bool m_eC2SecurityGroupsHasBeenSet =
false;
153 bool m_iPRangesHasBeenSet =
false;
156 bool m_dBSecurityGroupArnHasBeenSet =
false;
void SetEC2SecurityGroups(EC2SecurityGroupsT &&value)
void SetDBSecurityGroupName(DBSecurityGroupNameT &&value)
void SetDBSecurityGroupArn(DBSecurityGroupArnT &&value)
void SetVpcId(VpcIdT &&value)
const Aws::String & GetDBSecurityGroupArn() const
DBSecurityGroup & WithDBSecurityGroupArn(DBSecurityGroupArnT &&value)
void SetDBSecurityGroupDescription(DBSecurityGroupDescriptionT &&value)
const Aws::String & GetVpcId() const
AWS_RDS_API DBSecurityGroup()=default
bool OwnerIdHasBeenSet() const
const Aws::String & GetOwnerId() const
const Aws::Vector< IPRange > & GetIPRanges() const
DBSecurityGroup & WithEC2SecurityGroups(EC2SecurityGroupsT &&value)
bool DBSecurityGroupNameHasBeenSet() const
void SetIPRanges(IPRangesT &&value)
AWS_RDS_API DBSecurityGroup(const Aws::Utils::Xml::XmlNode &xmlNode)
const Aws::Vector< EC2SecurityGroup > & GetEC2SecurityGroups() const
DBSecurityGroup & WithIPRanges(IPRangesT &&value)
DBSecurityGroup & AddEC2SecurityGroups(EC2SecurityGroupsT &&value)
bool EC2SecurityGroupsHasBeenSet() const
AWS_RDS_API DBSecurityGroup & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_RDS_API void OutputToStream(Aws::OStream &oStream, const char *location) const
DBSecurityGroup & WithDBSecurityGroupDescription(DBSecurityGroupDescriptionT &&value)
DBSecurityGroup & WithVpcId(VpcIdT &&value)
DBSecurityGroup & WithOwnerId(OwnerIdT &&value)
void SetOwnerId(OwnerIdT &&value)
DBSecurityGroup & AddIPRanges(IPRangesT &&value)
bool DBSecurityGroupDescriptionHasBeenSet() const
bool IPRangesHasBeenSet() const
bool DBSecurityGroupArnHasBeenSet() const
DBSecurityGroup & WithDBSecurityGroupName(DBSecurityGroupNameT &&value)
AWS_RDS_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
bool VpcIdHasBeenSet() const
const Aws::String & GetDBSecurityGroupDescription() const
const Aws::String & GetDBSecurityGroupName() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
std::basic_ostream< char, std::char_traits< char > > OStream