/** * 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 namespace Aws { namespace Utils { namespace Xml { class XmlNode; } // namespace Xml } // namespace Utils namespace Redshift { namespace Model { /** *

Describes a subnet group.

See Also:

AWS * API Reference

*/ class ClusterSubnetGroup { public: AWS_REDSHIFT_API ClusterSubnetGroup(); AWS_REDSHIFT_API ClusterSubnetGroup(const Aws::Utils::Xml::XmlNode& xmlNode); AWS_REDSHIFT_API ClusterSubnetGroup& 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 subnet group.

*/ inline const Aws::String& GetClusterSubnetGroupName() const{ return m_clusterSubnetGroupName; } /** *

The name of the cluster subnet group.

*/ inline bool ClusterSubnetGroupNameHasBeenSet() const { return m_clusterSubnetGroupNameHasBeenSet; } /** *

The name of the cluster subnet group.

*/ inline void SetClusterSubnetGroupName(const Aws::String& value) { m_clusterSubnetGroupNameHasBeenSet = true; m_clusterSubnetGroupName = value; } /** *

The name of the cluster subnet group.

*/ inline void SetClusterSubnetGroupName(Aws::String&& value) { m_clusterSubnetGroupNameHasBeenSet = true; m_clusterSubnetGroupName = std::move(value); } /** *

The name of the cluster subnet group.

*/ inline void SetClusterSubnetGroupName(const char* value) { m_clusterSubnetGroupNameHasBeenSet = true; m_clusterSubnetGroupName.assign(value); } /** *

The name of the cluster subnet group.

*/ inline ClusterSubnetGroup& WithClusterSubnetGroupName(const Aws::String& value) { SetClusterSubnetGroupName(value); return *this;} /** *

The name of the cluster subnet group.

*/ inline ClusterSubnetGroup& WithClusterSubnetGroupName(Aws::String&& value) { SetClusterSubnetGroupName(std::move(value)); return *this;} /** *

The name of the cluster subnet group.

*/ inline ClusterSubnetGroup& WithClusterSubnetGroupName(const char* value) { SetClusterSubnetGroupName(value); return *this;} /** *

The description of the cluster subnet group.

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

The description of the cluster subnet group.

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

The description of the cluster subnet group.

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

The description of the cluster subnet group.

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

The description of the cluster subnet group.

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

The description of the cluster subnet group.

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

The description of the cluster subnet group.

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

The description of the cluster subnet group.

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

The VPC ID of the cluster subnet group.

*/ inline const Aws::String& GetVpcId() const{ return m_vpcId; } /** *

The VPC ID of the cluster subnet group.

*/ inline bool VpcIdHasBeenSet() const { return m_vpcIdHasBeenSet; } /** *

The VPC ID of the cluster subnet group.

*/ inline void SetVpcId(const Aws::String& value) { m_vpcIdHasBeenSet = true; m_vpcId = value; } /** *

The VPC ID of the cluster subnet group.

*/ inline void SetVpcId(Aws::String&& value) { m_vpcIdHasBeenSet = true; m_vpcId = std::move(value); } /** *

The VPC ID of the cluster subnet group.

*/ inline void SetVpcId(const char* value) { m_vpcIdHasBeenSet = true; m_vpcId.assign(value); } /** *

The VPC ID of the cluster subnet group.

*/ inline ClusterSubnetGroup& WithVpcId(const Aws::String& value) { SetVpcId(value); return *this;} /** *

The VPC ID of the cluster subnet group.

*/ inline ClusterSubnetGroup& WithVpcId(Aws::String&& value) { SetVpcId(std::move(value)); return *this;} /** *

The VPC ID of the cluster subnet group.

*/ inline ClusterSubnetGroup& WithVpcId(const char* value) { SetVpcId(value); return *this;} /** *

The status of the cluster subnet group. Possible values are * Complete, Incomplete and Invalid.

*/ inline const Aws::String& GetSubnetGroupStatus() const{ return m_subnetGroupStatus; } /** *

The status of the cluster subnet group. Possible values are * Complete, Incomplete and Invalid.

*/ inline bool SubnetGroupStatusHasBeenSet() const { return m_subnetGroupStatusHasBeenSet; } /** *

The status of the cluster subnet group. Possible values are * Complete, Incomplete and Invalid.

*/ inline void SetSubnetGroupStatus(const Aws::String& value) { m_subnetGroupStatusHasBeenSet = true; m_subnetGroupStatus = value; } /** *

The status of the cluster subnet group. Possible values are * Complete, Incomplete and Invalid.

*/ inline void SetSubnetGroupStatus(Aws::String&& value) { m_subnetGroupStatusHasBeenSet = true; m_subnetGroupStatus = std::move(value); } /** *

The status of the cluster subnet group. Possible values are * Complete, Incomplete and Invalid.

*/ inline void SetSubnetGroupStatus(const char* value) { m_subnetGroupStatusHasBeenSet = true; m_subnetGroupStatus.assign(value); } /** *

The status of the cluster subnet group. Possible values are * Complete, Incomplete and Invalid.

*/ inline ClusterSubnetGroup& WithSubnetGroupStatus(const Aws::String& value) { SetSubnetGroupStatus(value); return *this;} /** *

The status of the cluster subnet group. Possible values are * Complete, Incomplete and Invalid.

*/ inline ClusterSubnetGroup& WithSubnetGroupStatus(Aws::String&& value) { SetSubnetGroupStatus(std::move(value)); return *this;} /** *

The status of the cluster subnet group. Possible values are * Complete, Incomplete and Invalid.

*/ inline ClusterSubnetGroup& WithSubnetGroupStatus(const char* value) { SetSubnetGroupStatus(value); return *this;} /** *

A list of the VPC Subnet elements.

*/ inline const Aws::Vector& GetSubnets() const{ return m_subnets; } /** *

A list of the VPC Subnet elements.

*/ inline bool SubnetsHasBeenSet() const { return m_subnetsHasBeenSet; } /** *

A list of the VPC Subnet elements.

*/ inline void SetSubnets(const Aws::Vector& value) { m_subnetsHasBeenSet = true; m_subnets = value; } /** *

A list of the VPC Subnet elements.

*/ inline void SetSubnets(Aws::Vector&& value) { m_subnetsHasBeenSet = true; m_subnets = std::move(value); } /** *

A list of the VPC Subnet elements.

*/ inline ClusterSubnetGroup& WithSubnets(const Aws::Vector& value) { SetSubnets(value); return *this;} /** *

A list of the VPC Subnet elements.

*/ inline ClusterSubnetGroup& WithSubnets(Aws::Vector&& value) { SetSubnets(std::move(value)); return *this;} /** *

A list of the VPC Subnet elements.

*/ inline ClusterSubnetGroup& AddSubnets(const Subnet& value) { m_subnetsHasBeenSet = true; m_subnets.push_back(value); return *this; } /** *

A list of the VPC Subnet elements.

*/ inline ClusterSubnetGroup& AddSubnets(Subnet&& value) { m_subnetsHasBeenSet = true; m_subnets.push_back(std::move(value)); return *this; } /** *

The list of tags for the cluster subnet group.

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

The list of tags for the cluster subnet group.

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

The list of tags for the cluster subnet group.

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

The list of tags for the cluster subnet group.

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

The list of tags for the cluster subnet group.

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

The list of tags for the cluster subnet group.

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

The list of tags for the cluster subnet group.

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

The list of tags for the cluster subnet group.

*/ inline ClusterSubnetGroup& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; } private: Aws::String m_clusterSubnetGroupName; bool m_clusterSubnetGroupNameHasBeenSet = false; Aws::String m_description; bool m_descriptionHasBeenSet = false; Aws::String m_vpcId; bool m_vpcIdHasBeenSet = false; Aws::String m_subnetGroupStatus; bool m_subnetGroupStatusHasBeenSet = false; Aws::Vector m_subnets; bool m_subnetsHasBeenSet = false; Aws::Vector m_tags; bool m_tagsHasBeenSet = false; }; } // namespace Model } // namespace Redshift } // namespace Aws