This repository has been archived on 2025-09-14. You can view files and clone it, but cannot push or open issues or pull requests.
Files
pxz-hos-client-cpp-module/support/aws-sdk-cpp-master/aws-cpp-sdk-rds/include/aws/rds/model/DBSecurityGroup.h

360 lines
13 KiB
C
Raw Normal View History

/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/rds/RDS_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/rds/model/EC2SecurityGroup.h>
#include <aws/rds/model/IPRange.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Xml
{
class XmlNode;
} // namespace Xml
} // namespace Utils
namespace RDS
{
namespace Model
{
/**
* <p>Contains the details for an Amazon RDS DB security group. </p> <p>This data
* type is used as a response element in the <code>DescribeDBSecurityGroups</code>
* action. </p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/DBSecurityGroup">AWS
* API Reference</a></p>
*/
class AWS_RDS_API DBSecurityGroup
{
public:
DBSecurityGroup();
DBSecurityGroup(const Aws::Utils::Xml::XmlNode& xmlNode);
DBSecurityGroup& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
void OutputToStream(Aws::OStream& oStream, const char* location) const;
/**
* <p>Provides the AWS ID of the owner of a specific DB security group.</p>
*/
inline const Aws::String& GetOwnerId() const{ return m_ownerId; }
/**
* <p>Provides the AWS ID of the owner of a specific DB security group.</p>
*/
inline bool OwnerIdHasBeenSet() const { return m_ownerIdHasBeenSet; }
/**
* <p>Provides the AWS ID of the owner of a specific DB security group.</p>
*/
inline void SetOwnerId(const Aws::String& value) { m_ownerIdHasBeenSet = true; m_ownerId = value; }
/**
* <p>Provides the AWS ID of the owner of a specific DB security group.</p>
*/
inline void SetOwnerId(Aws::String&& value) { m_ownerIdHasBeenSet = true; m_ownerId = std::move(value); }
/**
* <p>Provides the AWS ID of the owner of a specific DB security group.</p>
*/
inline void SetOwnerId(const char* value) { m_ownerIdHasBeenSet = true; m_ownerId.assign(value); }
/**
* <p>Provides the AWS ID of the owner of a specific DB security group.</p>
*/
inline DBSecurityGroup& WithOwnerId(const Aws::String& value) { SetOwnerId(value); return *this;}
/**
* <p>Provides the AWS ID of the owner of a specific DB security group.</p>
*/
inline DBSecurityGroup& WithOwnerId(Aws::String&& value) { SetOwnerId(std::move(value)); return *this;}
/**
* <p>Provides the AWS ID of the owner of a specific DB security group.</p>
*/
inline DBSecurityGroup& WithOwnerId(const char* value) { SetOwnerId(value); return *this;}
/**
* <p>Specifies the name of the DB security group.</p>
*/
inline const Aws::String& GetDBSecurityGroupName() const{ return m_dBSecurityGroupName; }
/**
* <p>Specifies the name of the DB security group.</p>
*/
inline bool DBSecurityGroupNameHasBeenSet() const { return m_dBSecurityGroupNameHasBeenSet; }
/**
* <p>Specifies the name of the DB security group.</p>
*/
inline void SetDBSecurityGroupName(const Aws::String& value) { m_dBSecurityGroupNameHasBeenSet = true; m_dBSecurityGroupName = value; }
/**
* <p>Specifies the name of the DB security group.</p>
*/
inline void SetDBSecurityGroupName(Aws::String&& value) { m_dBSecurityGroupNameHasBeenSet = true; m_dBSecurityGroupName = std::move(value); }
/**
* <p>Specifies the name of the DB security group.</p>
*/
inline void SetDBSecurityGroupName(const char* value) { m_dBSecurityGroupNameHasBeenSet = true; m_dBSecurityGroupName.assign(value); }
/**
* <p>Specifies the name of the DB security group.</p>
*/
inline DBSecurityGroup& WithDBSecurityGroupName(const Aws::String& value) { SetDBSecurityGroupName(value); return *this;}
/**
* <p>Specifies the name of the DB security group.</p>
*/
inline DBSecurityGroup& WithDBSecurityGroupName(Aws::String&& value) { SetDBSecurityGroupName(std::move(value)); return *this;}
/**
* <p>Specifies the name of the DB security group.</p>
*/
inline DBSecurityGroup& WithDBSecurityGroupName(const char* value) { SetDBSecurityGroupName(value); return *this;}
/**
* <p>Provides the description of the DB security group.</p>
*/
inline const Aws::String& GetDBSecurityGroupDescription() const{ return m_dBSecurityGroupDescription; }
/**
* <p>Provides the description of the DB security group.</p>
*/
inline bool DBSecurityGroupDescriptionHasBeenSet() const { return m_dBSecurityGroupDescriptionHasBeenSet; }
/**
* <p>Provides the description of the DB security group.</p>
*/
inline void SetDBSecurityGroupDescription(const Aws::String& value) { m_dBSecurityGroupDescriptionHasBeenSet = true; m_dBSecurityGroupDescription = value; }
/**
* <p>Provides the description of the DB security group.</p>
*/
inline void SetDBSecurityGroupDescription(Aws::String&& value) { m_dBSecurityGroupDescriptionHasBeenSet = true; m_dBSecurityGroupDescription = std::move(value); }
/**
* <p>Provides the description of the DB security group.</p>
*/
inline void SetDBSecurityGroupDescription(const char* value) { m_dBSecurityGroupDescriptionHasBeenSet = true; m_dBSecurityGroupDescription.assign(value); }
/**
* <p>Provides the description of the DB security group.</p>
*/
inline DBSecurityGroup& WithDBSecurityGroupDescription(const Aws::String& value) { SetDBSecurityGroupDescription(value); return *this;}
/**
* <p>Provides the description of the DB security group.</p>
*/
inline DBSecurityGroup& WithDBSecurityGroupDescription(Aws::String&& value) { SetDBSecurityGroupDescription(std::move(value)); return *this;}
/**
* <p>Provides the description of the DB security group.</p>
*/
inline DBSecurityGroup& WithDBSecurityGroupDescription(const char* value) { SetDBSecurityGroupDescription(value); return *this;}
/**
* <p>Provides the VpcId of the DB security group.</p>
*/
inline const Aws::String& GetVpcId() const{ return m_vpcId; }
/**
* <p>Provides the VpcId of the DB security group.</p>
*/
inline bool VpcIdHasBeenSet() const { return m_vpcIdHasBeenSet; }
/**
* <p>Provides the VpcId of the DB security group.</p>
*/
inline void SetVpcId(const Aws::String& value) { m_vpcIdHasBeenSet = true; m_vpcId = value; }
/**
* <p>Provides the VpcId of the DB security group.</p>
*/
inline void SetVpcId(Aws::String&& value) { m_vpcIdHasBeenSet = true; m_vpcId = std::move(value); }
/**
* <p>Provides the VpcId of the DB security group.</p>
*/
inline void SetVpcId(const char* value) { m_vpcIdHasBeenSet = true; m_vpcId.assign(value); }
/**
* <p>Provides the VpcId of the DB security group.</p>
*/
inline DBSecurityGroup& WithVpcId(const Aws::String& value) { SetVpcId(value); return *this;}
/**
* <p>Provides the VpcId of the DB security group.</p>
*/
inline DBSecurityGroup& WithVpcId(Aws::String&& value) { SetVpcId(std::move(value)); return *this;}
/**
* <p>Provides the VpcId of the DB security group.</p>
*/
inline DBSecurityGroup& WithVpcId(const char* value) { SetVpcId(value); return *this;}
/**
* <p> Contains a list of <code>EC2SecurityGroup</code> elements. </p>
*/
inline const Aws::Vector<EC2SecurityGroup>& GetEC2SecurityGroups() const{ return m_eC2SecurityGroups; }
/**
* <p> Contains a list of <code>EC2SecurityGroup</code> elements. </p>
*/
inline bool EC2SecurityGroupsHasBeenSet() const { return m_eC2SecurityGroupsHasBeenSet; }
/**
* <p> Contains a list of <code>EC2SecurityGroup</code> elements. </p>
*/
inline void SetEC2SecurityGroups(const Aws::Vector<EC2SecurityGroup>& value) { m_eC2SecurityGroupsHasBeenSet = true; m_eC2SecurityGroups = value; }
/**
* <p> Contains a list of <code>EC2SecurityGroup</code> elements. </p>
*/
inline void SetEC2SecurityGroups(Aws::Vector<EC2SecurityGroup>&& value) { m_eC2SecurityGroupsHasBeenSet = true; m_eC2SecurityGroups = std::move(value); }
/**
* <p> Contains a list of <code>EC2SecurityGroup</code> elements. </p>
*/
inline DBSecurityGroup& WithEC2SecurityGroups(const Aws::Vector<EC2SecurityGroup>& value) { SetEC2SecurityGroups(value); return *this;}
/**
* <p> Contains a list of <code>EC2SecurityGroup</code> elements. </p>
*/
inline DBSecurityGroup& WithEC2SecurityGroups(Aws::Vector<EC2SecurityGroup>&& value) { SetEC2SecurityGroups(std::move(value)); return *this;}
/**
* <p> Contains a list of <code>EC2SecurityGroup</code> elements. </p>
*/
inline DBSecurityGroup& AddEC2SecurityGroups(const EC2SecurityGroup& value) { m_eC2SecurityGroupsHasBeenSet = true; m_eC2SecurityGroups.push_back(value); return *this; }
/**
* <p> Contains a list of <code>EC2SecurityGroup</code> elements. </p>
*/
inline DBSecurityGroup& AddEC2SecurityGroups(EC2SecurityGroup&& value) { m_eC2SecurityGroupsHasBeenSet = true; m_eC2SecurityGroups.push_back(std::move(value)); return *this; }
/**
* <p> Contains a list of <code>IPRange</code> elements. </p>
*/
inline const Aws::Vector<IPRange>& GetIPRanges() const{ return m_iPRanges; }
/**
* <p> Contains a list of <code>IPRange</code> elements. </p>
*/
inline bool IPRangesHasBeenSet() const { return m_iPRangesHasBeenSet; }
/**
* <p> Contains a list of <code>IPRange</code> elements. </p>
*/
inline void SetIPRanges(const Aws::Vector<IPRange>& value) { m_iPRangesHasBeenSet = true; m_iPRanges = value; }
/**
* <p> Contains a list of <code>IPRange</code> elements. </p>
*/
inline void SetIPRanges(Aws::Vector<IPRange>&& value) { m_iPRangesHasBeenSet = true; m_iPRanges = std::move(value); }
/**
* <p> Contains a list of <code>IPRange</code> elements. </p>
*/
inline DBSecurityGroup& WithIPRanges(const Aws::Vector<IPRange>& value) { SetIPRanges(value); return *this;}
/**
* <p> Contains a list of <code>IPRange</code> elements. </p>
*/
inline DBSecurityGroup& WithIPRanges(Aws::Vector<IPRange>&& value) { SetIPRanges(std::move(value)); return *this;}
/**
* <p> Contains a list of <code>IPRange</code> elements. </p>
*/
inline DBSecurityGroup& AddIPRanges(const IPRange& value) { m_iPRangesHasBeenSet = true; m_iPRanges.push_back(value); return *this; }
/**
* <p> Contains a list of <code>IPRange</code> elements. </p>
*/
inline DBSecurityGroup& AddIPRanges(IPRange&& value) { m_iPRangesHasBeenSet = true; m_iPRanges.push_back(std::move(value)); return *this; }
/**
* <p>The Amazon Resource Name (ARN) for the DB security group.</p>
*/
inline const Aws::String& GetDBSecurityGroupArn() const{ return m_dBSecurityGroupArn; }
/**
* <p>The Amazon Resource Name (ARN) for the DB security group.</p>
*/
inline bool DBSecurityGroupArnHasBeenSet() const { return m_dBSecurityGroupArnHasBeenSet; }
/**
* <p>The Amazon Resource Name (ARN) for the DB security group.</p>
*/
inline void SetDBSecurityGroupArn(const Aws::String& value) { m_dBSecurityGroupArnHasBeenSet = true; m_dBSecurityGroupArn = value; }
/**
* <p>The Amazon Resource Name (ARN) for the DB security group.</p>
*/
inline void SetDBSecurityGroupArn(Aws::String&& value) { m_dBSecurityGroupArnHasBeenSet = true; m_dBSecurityGroupArn = std::move(value); }
/**
* <p>The Amazon Resource Name (ARN) for the DB security group.</p>
*/
inline void SetDBSecurityGroupArn(const char* value) { m_dBSecurityGroupArnHasBeenSet = true; m_dBSecurityGroupArn.assign(value); }
/**
* <p>The Amazon Resource Name (ARN) for the DB security group.</p>
*/
inline DBSecurityGroup& WithDBSecurityGroupArn(const Aws::String& value) { SetDBSecurityGroupArn(value); return *this;}
/**
* <p>The Amazon Resource Name (ARN) for the DB security group.</p>
*/
inline DBSecurityGroup& WithDBSecurityGroupArn(Aws::String&& value) { SetDBSecurityGroupArn(std::move(value)); return *this;}
/**
* <p>The Amazon Resource Name (ARN) for the DB security group.</p>
*/
inline DBSecurityGroup& WithDBSecurityGroupArn(const char* value) { SetDBSecurityGroupArn(value); return *this;}
private:
Aws::String m_ownerId;
bool m_ownerIdHasBeenSet;
Aws::String m_dBSecurityGroupName;
bool m_dBSecurityGroupNameHasBeenSet;
Aws::String m_dBSecurityGroupDescription;
bool m_dBSecurityGroupDescriptionHasBeenSet;
Aws::String m_vpcId;
bool m_vpcIdHasBeenSet;
Aws::Vector<EC2SecurityGroup> m_eC2SecurityGroups;
bool m_eC2SecurityGroupsHasBeenSet;
Aws::Vector<IPRange> m_iPRanges;
bool m_iPRangesHasBeenSet;
Aws::String m_dBSecurityGroupArn;
bool m_dBSecurityGroupArnHasBeenSet;
};
} // namespace Model
} // namespace RDS
} // namespace Aws