322 lines
11 KiB
C++
322 lines
11 KiB
C++
/**
|
|
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
* SPDX-License-Identifier: Apache-2.0.
|
|
*/
|
|
|
|
#pragma once
|
|
#include <aws/redshift/Redshift_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/redshift/model/Subnet.h>
|
|
#include <aws/redshift/model/Tag.h>
|
|
#include <utility>
|
|
|
|
namespace Aws
|
|
{
|
|
namespace Utils
|
|
{
|
|
namespace Xml
|
|
{
|
|
class XmlNode;
|
|
} // namespace Xml
|
|
} // namespace Utils
|
|
namespace Redshift
|
|
{
|
|
namespace Model
|
|
{
|
|
|
|
/**
|
|
* <p>Describes a subnet group.</p><p><h3>See Also:</h3> <a
|
|
* href="http://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/ClusterSubnetGroup">AWS
|
|
* API Reference</a></p>
|
|
*/
|
|
class AWS_REDSHIFT_API ClusterSubnetGroup
|
|
{
|
|
public:
|
|
ClusterSubnetGroup();
|
|
ClusterSubnetGroup(const Aws::Utils::Xml::XmlNode& xmlNode);
|
|
ClusterSubnetGroup& 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>The name of the cluster subnet group.</p>
|
|
*/
|
|
inline const Aws::String& GetClusterSubnetGroupName() const{ return m_clusterSubnetGroupName; }
|
|
|
|
/**
|
|
* <p>The name of the cluster subnet group.</p>
|
|
*/
|
|
inline bool ClusterSubnetGroupNameHasBeenSet() const { return m_clusterSubnetGroupNameHasBeenSet; }
|
|
|
|
/**
|
|
* <p>The name of the cluster subnet group.</p>
|
|
*/
|
|
inline void SetClusterSubnetGroupName(const Aws::String& value) { m_clusterSubnetGroupNameHasBeenSet = true; m_clusterSubnetGroupName = value; }
|
|
|
|
/**
|
|
* <p>The name of the cluster subnet group.</p>
|
|
*/
|
|
inline void SetClusterSubnetGroupName(Aws::String&& value) { m_clusterSubnetGroupNameHasBeenSet = true; m_clusterSubnetGroupName = std::move(value); }
|
|
|
|
/**
|
|
* <p>The name of the cluster subnet group.</p>
|
|
*/
|
|
inline void SetClusterSubnetGroupName(const char* value) { m_clusterSubnetGroupNameHasBeenSet = true; m_clusterSubnetGroupName.assign(value); }
|
|
|
|
/**
|
|
* <p>The name of the cluster subnet group.</p>
|
|
*/
|
|
inline ClusterSubnetGroup& WithClusterSubnetGroupName(const Aws::String& value) { SetClusterSubnetGroupName(value); return *this;}
|
|
|
|
/**
|
|
* <p>The name of the cluster subnet group.</p>
|
|
*/
|
|
inline ClusterSubnetGroup& WithClusterSubnetGroupName(Aws::String&& value) { SetClusterSubnetGroupName(std::move(value)); return *this;}
|
|
|
|
/**
|
|
* <p>The name of the cluster subnet group.</p>
|
|
*/
|
|
inline ClusterSubnetGroup& WithClusterSubnetGroupName(const char* value) { SetClusterSubnetGroupName(value); return *this;}
|
|
|
|
|
|
/**
|
|
* <p>The description of the cluster subnet group.</p>
|
|
*/
|
|
inline const Aws::String& GetDescription() const{ return m_description; }
|
|
|
|
/**
|
|
* <p>The description of the cluster subnet group.</p>
|
|
*/
|
|
inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
|
|
|
|
/**
|
|
* <p>The description of the cluster subnet group.</p>
|
|
*/
|
|
inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
|
|
|
|
/**
|
|
* <p>The description of the cluster subnet group.</p>
|
|
*/
|
|
inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
|
|
|
|
/**
|
|
* <p>The description of the cluster subnet group.</p>
|
|
*/
|
|
inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
|
|
|
|
/**
|
|
* <p>The description of the cluster subnet group.</p>
|
|
*/
|
|
inline ClusterSubnetGroup& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
|
|
|
|
/**
|
|
* <p>The description of the cluster subnet group.</p>
|
|
*/
|
|
inline ClusterSubnetGroup& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
|
|
|
|
/**
|
|
* <p>The description of the cluster subnet group.</p>
|
|
*/
|
|
inline ClusterSubnetGroup& WithDescription(const char* value) { SetDescription(value); return *this;}
|
|
|
|
|
|
/**
|
|
* <p>The VPC ID of the cluster subnet group.</p>
|
|
*/
|
|
inline const Aws::String& GetVpcId() const{ return m_vpcId; }
|
|
|
|
/**
|
|
* <p>The VPC ID of the cluster subnet group.</p>
|
|
*/
|
|
inline bool VpcIdHasBeenSet() const { return m_vpcIdHasBeenSet; }
|
|
|
|
/**
|
|
* <p>The VPC ID of the cluster subnet group.</p>
|
|
*/
|
|
inline void SetVpcId(const Aws::String& value) { m_vpcIdHasBeenSet = true; m_vpcId = value; }
|
|
|
|
/**
|
|
* <p>The VPC ID of the cluster subnet group.</p>
|
|
*/
|
|
inline void SetVpcId(Aws::String&& value) { m_vpcIdHasBeenSet = true; m_vpcId = std::move(value); }
|
|
|
|
/**
|
|
* <p>The VPC ID of the cluster subnet group.</p>
|
|
*/
|
|
inline void SetVpcId(const char* value) { m_vpcIdHasBeenSet = true; m_vpcId.assign(value); }
|
|
|
|
/**
|
|
* <p>The VPC ID of the cluster subnet group.</p>
|
|
*/
|
|
inline ClusterSubnetGroup& WithVpcId(const Aws::String& value) { SetVpcId(value); return *this;}
|
|
|
|
/**
|
|
* <p>The VPC ID of the cluster subnet group.</p>
|
|
*/
|
|
inline ClusterSubnetGroup& WithVpcId(Aws::String&& value) { SetVpcId(std::move(value)); return *this;}
|
|
|
|
/**
|
|
* <p>The VPC ID of the cluster subnet group.</p>
|
|
*/
|
|
inline ClusterSubnetGroup& WithVpcId(const char* value) { SetVpcId(value); return *this;}
|
|
|
|
|
|
/**
|
|
* <p>The status of the cluster subnet group. Possible values are
|
|
* <code>Complete</code>, <code>Incomplete</code> and <code>Invalid</code>. </p>
|
|
*/
|
|
inline const Aws::String& GetSubnetGroupStatus() const{ return m_subnetGroupStatus; }
|
|
|
|
/**
|
|
* <p>The status of the cluster subnet group. Possible values are
|
|
* <code>Complete</code>, <code>Incomplete</code> and <code>Invalid</code>. </p>
|
|
*/
|
|
inline bool SubnetGroupStatusHasBeenSet() const { return m_subnetGroupStatusHasBeenSet; }
|
|
|
|
/**
|
|
* <p>The status of the cluster subnet group. Possible values are
|
|
* <code>Complete</code>, <code>Incomplete</code> and <code>Invalid</code>. </p>
|
|
*/
|
|
inline void SetSubnetGroupStatus(const Aws::String& value) { m_subnetGroupStatusHasBeenSet = true; m_subnetGroupStatus = value; }
|
|
|
|
/**
|
|
* <p>The status of the cluster subnet group. Possible values are
|
|
* <code>Complete</code>, <code>Incomplete</code> and <code>Invalid</code>. </p>
|
|
*/
|
|
inline void SetSubnetGroupStatus(Aws::String&& value) { m_subnetGroupStatusHasBeenSet = true; m_subnetGroupStatus = std::move(value); }
|
|
|
|
/**
|
|
* <p>The status of the cluster subnet group. Possible values are
|
|
* <code>Complete</code>, <code>Incomplete</code> and <code>Invalid</code>. </p>
|
|
*/
|
|
inline void SetSubnetGroupStatus(const char* value) { m_subnetGroupStatusHasBeenSet = true; m_subnetGroupStatus.assign(value); }
|
|
|
|
/**
|
|
* <p>The status of the cluster subnet group. Possible values are
|
|
* <code>Complete</code>, <code>Incomplete</code> and <code>Invalid</code>. </p>
|
|
*/
|
|
inline ClusterSubnetGroup& WithSubnetGroupStatus(const Aws::String& value) { SetSubnetGroupStatus(value); return *this;}
|
|
|
|
/**
|
|
* <p>The status of the cluster subnet group. Possible values are
|
|
* <code>Complete</code>, <code>Incomplete</code> and <code>Invalid</code>. </p>
|
|
*/
|
|
inline ClusterSubnetGroup& WithSubnetGroupStatus(Aws::String&& value) { SetSubnetGroupStatus(std::move(value)); return *this;}
|
|
|
|
/**
|
|
* <p>The status of the cluster subnet group. Possible values are
|
|
* <code>Complete</code>, <code>Incomplete</code> and <code>Invalid</code>. </p>
|
|
*/
|
|
inline ClusterSubnetGroup& WithSubnetGroupStatus(const char* value) { SetSubnetGroupStatus(value); return *this;}
|
|
|
|
|
|
/**
|
|
* <p>A list of the VPC <a>Subnet</a> elements. </p>
|
|
*/
|
|
inline const Aws::Vector<Subnet>& GetSubnets() const{ return m_subnets; }
|
|
|
|
/**
|
|
* <p>A list of the VPC <a>Subnet</a> elements. </p>
|
|
*/
|
|
inline bool SubnetsHasBeenSet() const { return m_subnetsHasBeenSet; }
|
|
|
|
/**
|
|
* <p>A list of the VPC <a>Subnet</a> elements. </p>
|
|
*/
|
|
inline void SetSubnets(const Aws::Vector<Subnet>& value) { m_subnetsHasBeenSet = true; m_subnets = value; }
|
|
|
|
/**
|
|
* <p>A list of the VPC <a>Subnet</a> elements. </p>
|
|
*/
|
|
inline void SetSubnets(Aws::Vector<Subnet>&& value) { m_subnetsHasBeenSet = true; m_subnets = std::move(value); }
|
|
|
|
/**
|
|
* <p>A list of the VPC <a>Subnet</a> elements. </p>
|
|
*/
|
|
inline ClusterSubnetGroup& WithSubnets(const Aws::Vector<Subnet>& value) { SetSubnets(value); return *this;}
|
|
|
|
/**
|
|
* <p>A list of the VPC <a>Subnet</a> elements. </p>
|
|
*/
|
|
inline ClusterSubnetGroup& WithSubnets(Aws::Vector<Subnet>&& value) { SetSubnets(std::move(value)); return *this;}
|
|
|
|
/**
|
|
* <p>A list of the VPC <a>Subnet</a> elements. </p>
|
|
*/
|
|
inline ClusterSubnetGroup& AddSubnets(const Subnet& value) { m_subnetsHasBeenSet = true; m_subnets.push_back(value); return *this; }
|
|
|
|
/**
|
|
* <p>A list of the VPC <a>Subnet</a> elements. </p>
|
|
*/
|
|
inline ClusterSubnetGroup& AddSubnets(Subnet&& value) { m_subnetsHasBeenSet = true; m_subnets.push_back(std::move(value)); return *this; }
|
|
|
|
|
|
/**
|
|
* <p>The list of tags for the cluster subnet group.</p>
|
|
*/
|
|
inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
|
|
|
|
/**
|
|
* <p>The list of tags for the cluster subnet group.</p>
|
|
*/
|
|
inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
|
|
|
|
/**
|
|
* <p>The list of tags for the cluster subnet group.</p>
|
|
*/
|
|
inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
|
|
|
|
/**
|
|
* <p>The list of tags for the cluster subnet group.</p>
|
|
*/
|
|
inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
|
|
|
|
/**
|
|
* <p>The list of tags for the cluster subnet group.</p>
|
|
*/
|
|
inline ClusterSubnetGroup& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
|
|
|
|
/**
|
|
* <p>The list of tags for the cluster subnet group.</p>
|
|
*/
|
|
inline ClusterSubnetGroup& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
|
|
|
|
/**
|
|
* <p>The list of tags for the cluster subnet group.</p>
|
|
*/
|
|
inline ClusterSubnetGroup& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
|
|
|
|
/**
|
|
* <p>The list of tags for the cluster subnet group.</p>
|
|
*/
|
|
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;
|
|
|
|
Aws::String m_description;
|
|
bool m_descriptionHasBeenSet;
|
|
|
|
Aws::String m_vpcId;
|
|
bool m_vpcIdHasBeenSet;
|
|
|
|
Aws::String m_subnetGroupStatus;
|
|
bool m_subnetGroupStatusHasBeenSet;
|
|
|
|
Aws::Vector<Subnet> m_subnets;
|
|
bool m_subnetsHasBeenSet;
|
|
|
|
Aws::Vector<Tag> m_tags;
|
|
bool m_tagsHasBeenSet;
|
|
};
|
|
|
|
} // namespace Model
|
|
} // namespace Redshift
|
|
} // namespace Aws
|