/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include #include #include namespace Aws { namespace Utils { namespace Xml { class XmlNode; } // namespace Xml } // namespace Utils namespace Redshift { namespace Model { /** *

Describes a security group.

See Also:

AWS * API Reference

*/ class ClusterSecurityGroup { public: AWS_REDSHIFT_API ClusterSecurityGroup(); AWS_REDSHIFT_API ClusterSecurityGroup(const Aws::Utils::Xml::XmlNode& xmlNode); AWS_REDSHIFT_API ClusterSecurityGroup& operator=(const Aws::Utils::Xml::XmlNode& xmlNode); AWS_REDSHIFT_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const; AWS_REDSHIFT_API void OutputToStream(Aws::OStream& oStream, const char* location) const; /** *

The name of the cluster security group to which the operation was * applied.

*/ inline const Aws::String& GetClusterSecurityGroupName() const{ return m_clusterSecurityGroupName; } /** *

The name of the cluster security group to which the operation was * applied.

*/ inline bool ClusterSecurityGroupNameHasBeenSet() const { return m_clusterSecurityGroupNameHasBeenSet; } /** *

The name of the cluster security group to which the operation was * applied.

*/ inline void SetClusterSecurityGroupName(const Aws::String& value) { m_clusterSecurityGroupNameHasBeenSet = true; m_clusterSecurityGroupName = value; } /** *

The name of the cluster security group to which the operation was * applied.

*/ inline void SetClusterSecurityGroupName(Aws::String&& value) { m_clusterSecurityGroupNameHasBeenSet = true; m_clusterSecurityGroupName = std::move(value); } /** *

The name of the cluster security group to which the operation was * applied.

*/ inline void SetClusterSecurityGroupName(const char* value) { m_clusterSecurityGroupNameHasBeenSet = true; m_clusterSecurityGroupName.assign(value); } /** *

The name of the cluster security group to which the operation was * applied.

*/ inline ClusterSecurityGroup& WithClusterSecurityGroupName(const Aws::String& value) { SetClusterSecurityGroupName(value); return *this;} /** *

The name of the cluster security group to which the operation was * applied.

*/ inline ClusterSecurityGroup& WithClusterSecurityGroupName(Aws::String&& value) { SetClusterSecurityGroupName(std::move(value)); return *this;} /** *

The name of the cluster security group to which the operation was * applied.

*/ inline ClusterSecurityGroup& WithClusterSecurityGroupName(const char* value) { SetClusterSecurityGroupName(value); return *this;} /** *

A description of the security group.

*/ inline const Aws::String& GetDescription() const{ return m_description; } /** *

A description of the security group.

*/ inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; } /** *

A description of the security group.

*/ inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; } /** *

A description of the security group.

*/ inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); } /** *

A description of the security group.

*/ inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); } /** *

A description of the security group.

*/ inline ClusterSecurityGroup& WithDescription(const Aws::String& value) { SetDescription(value); return *this;} /** *

A description of the security group.

*/ inline ClusterSecurityGroup& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;} /** *

A description of the security group.

*/ inline ClusterSecurityGroup& WithDescription(const char* value) { SetDescription(value); return *this;} /** *

A list of EC2 security groups that are permitted to access clusters * associated with this cluster security group.

*/ inline const Aws::Vector& GetEC2SecurityGroups() const{ return m_eC2SecurityGroups; } /** *

A list of EC2 security groups that are permitted to access clusters * associated with this cluster security group.

*/ inline bool EC2SecurityGroupsHasBeenSet() const { return m_eC2SecurityGroupsHasBeenSet; } /** *

A list of EC2 security groups that are permitted to access clusters * associated with this cluster security group.

*/ inline void SetEC2SecurityGroups(const Aws::Vector& value) { m_eC2SecurityGroupsHasBeenSet = true; m_eC2SecurityGroups = value; } /** *

A list of EC2 security groups that are permitted to access clusters * associated with this cluster security group.

*/ inline void SetEC2SecurityGroups(Aws::Vector&& value) { m_eC2SecurityGroupsHasBeenSet = true; m_eC2SecurityGroups = std::move(value); } /** *

A list of EC2 security groups that are permitted to access clusters * associated with this cluster security group.

*/ inline ClusterSecurityGroup& WithEC2SecurityGroups(const Aws::Vector& value) { SetEC2SecurityGroups(value); return *this;} /** *

A list of EC2 security groups that are permitted to access clusters * associated with this cluster security group.

*/ inline ClusterSecurityGroup& WithEC2SecurityGroups(Aws::Vector&& value) { SetEC2SecurityGroups(std::move(value)); return *this;} /** *

A list of EC2 security groups that are permitted to access clusters * associated with this cluster security group.

*/ inline ClusterSecurityGroup& AddEC2SecurityGroups(const EC2SecurityGroup& value) { m_eC2SecurityGroupsHasBeenSet = true; m_eC2SecurityGroups.push_back(value); return *this; } /** *

A list of EC2 security groups that are permitted to access clusters * associated with this cluster security group.

*/ inline ClusterSecurityGroup& AddEC2SecurityGroups(EC2SecurityGroup&& value) { m_eC2SecurityGroupsHasBeenSet = true; m_eC2SecurityGroups.push_back(std::move(value)); return *this; } /** *

A list of IP ranges (CIDR blocks) that are permitted to access clusters * associated with this cluster security group.

*/ inline const Aws::Vector& GetIPRanges() const{ return m_iPRanges; } /** *

A list of IP ranges (CIDR blocks) that are permitted to access clusters * associated with this cluster security group.

*/ inline bool IPRangesHasBeenSet() const { return m_iPRangesHasBeenSet; } /** *

A list of IP ranges (CIDR blocks) that are permitted to access clusters * associated with this cluster security group.

*/ inline void SetIPRanges(const Aws::Vector& value) { m_iPRangesHasBeenSet = true; m_iPRanges = value; } /** *

A list of IP ranges (CIDR blocks) that are permitted to access clusters * associated with this cluster security group.

*/ inline void SetIPRanges(Aws::Vector&& value) { m_iPRangesHasBeenSet = true; m_iPRanges = std::move(value); } /** *

A list of IP ranges (CIDR blocks) that are permitted to access clusters * associated with this cluster security group.

*/ inline ClusterSecurityGroup& WithIPRanges(const Aws::Vector& value) { SetIPRanges(value); return *this;} /** *

A list of IP ranges (CIDR blocks) that are permitted to access clusters * associated with this cluster security group.

*/ inline ClusterSecurityGroup& WithIPRanges(Aws::Vector&& value) { SetIPRanges(std::move(value)); return *this;} /** *

A list of IP ranges (CIDR blocks) that are permitted to access clusters * associated with this cluster security group.

*/ inline ClusterSecurityGroup& AddIPRanges(const IPRange& value) { m_iPRangesHasBeenSet = true; m_iPRanges.push_back(value); return *this; } /** *

A list of IP ranges (CIDR blocks) that are permitted to access clusters * associated with this cluster security group.

*/ inline ClusterSecurityGroup& AddIPRanges(IPRange&& value) { m_iPRangesHasBeenSet = true; m_iPRanges.push_back(std::move(value)); return *this; } /** *

The list of tags for the cluster security group.

*/ inline const Aws::Vector& GetTags() const{ return m_tags; } /** *

The list of tags for the cluster security group.

*/ inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; } /** *

The list of tags for the cluster security group.

*/ inline void SetTags(const Aws::Vector& value) { m_tagsHasBeenSet = true; m_tags = value; } /** *

The list of tags for the cluster security group.

*/ inline void SetTags(Aws::Vector&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); } /** *

The list of tags for the cluster security group.

*/ inline ClusterSecurityGroup& WithTags(const Aws::Vector& value) { SetTags(value); return *this;} /** *

The list of tags for the cluster security group.

*/ inline ClusterSecurityGroup& WithTags(Aws::Vector&& value) { SetTags(std::move(value)); return *this;} /** *

The list of tags for the cluster security group.

*/ inline ClusterSecurityGroup& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; } /** *

The list of tags for the cluster security group.

*/ inline ClusterSecurityGroup& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; } private: Aws::String m_clusterSecurityGroupName; bool m_clusterSecurityGroupNameHasBeenSet = false; Aws::String m_description; bool m_descriptionHasBeenSet = false; Aws::Vector m_eC2SecurityGroups; bool m_eC2SecurityGroupsHasBeenSet = false; Aws::Vector m_iPRanges; bool m_iPRangesHasBeenSet = false; Aws::Vector m_tags; bool m_tagsHasBeenSet = false; }; } // namespace Model } // namespace Redshift } // namespace Aws