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

The connection endpoint for connecting to an Amazon Redshift cluster through * the proxy.

See Also:

AWS * API Reference

*/ class VpcEndpoint { public: AWS_REDSHIFT_API VpcEndpoint(); AWS_REDSHIFT_API VpcEndpoint(const Aws::Utils::Xml::XmlNode& xmlNode); AWS_REDSHIFT_API VpcEndpoint& 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 connection endpoint ID for connecting an Amazon Redshift cluster through * the proxy.

*/ inline const Aws::String& GetVpcEndpointId() const{ return m_vpcEndpointId; } /** *

The connection endpoint ID for connecting an Amazon Redshift cluster through * the proxy.

*/ inline bool VpcEndpointIdHasBeenSet() const { return m_vpcEndpointIdHasBeenSet; } /** *

The connection endpoint ID for connecting an Amazon Redshift cluster through * the proxy.

*/ inline void SetVpcEndpointId(const Aws::String& value) { m_vpcEndpointIdHasBeenSet = true; m_vpcEndpointId = value; } /** *

The connection endpoint ID for connecting an Amazon Redshift cluster through * the proxy.

*/ inline void SetVpcEndpointId(Aws::String&& value) { m_vpcEndpointIdHasBeenSet = true; m_vpcEndpointId = std::move(value); } /** *

The connection endpoint ID for connecting an Amazon Redshift cluster through * the proxy.

*/ inline void SetVpcEndpointId(const char* value) { m_vpcEndpointIdHasBeenSet = true; m_vpcEndpointId.assign(value); } /** *

The connection endpoint ID for connecting an Amazon Redshift cluster through * the proxy.

*/ inline VpcEndpoint& WithVpcEndpointId(const Aws::String& value) { SetVpcEndpointId(value); return *this;} /** *

The connection endpoint ID for connecting an Amazon Redshift cluster through * the proxy.

*/ inline VpcEndpoint& WithVpcEndpointId(Aws::String&& value) { SetVpcEndpointId(std::move(value)); return *this;} /** *

The connection endpoint ID for connecting an Amazon Redshift cluster through * the proxy.

*/ inline VpcEndpoint& WithVpcEndpointId(const char* value) { SetVpcEndpointId(value); return *this;} /** *

The VPC identifier that the endpoint is associated.

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

The VPC identifier that the endpoint is associated.

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

The VPC identifier that the endpoint is associated.

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

The VPC identifier that the endpoint is associated.

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

The VPC identifier that the endpoint is associated.

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

The VPC identifier that the endpoint is associated.

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

The VPC identifier that the endpoint is associated.

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

The VPC identifier that the endpoint is associated.

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

One or more network interfaces of the endpoint. Also known as an interface * endpoint.

*/ inline const Aws::Vector& GetNetworkInterfaces() const{ return m_networkInterfaces; } /** *

One or more network interfaces of the endpoint. Also known as an interface * endpoint.

*/ inline bool NetworkInterfacesHasBeenSet() const { return m_networkInterfacesHasBeenSet; } /** *

One or more network interfaces of the endpoint. Also known as an interface * endpoint.

*/ inline void SetNetworkInterfaces(const Aws::Vector& value) { m_networkInterfacesHasBeenSet = true; m_networkInterfaces = value; } /** *

One or more network interfaces of the endpoint. Also known as an interface * endpoint.

*/ inline void SetNetworkInterfaces(Aws::Vector&& value) { m_networkInterfacesHasBeenSet = true; m_networkInterfaces = std::move(value); } /** *

One or more network interfaces of the endpoint. Also known as an interface * endpoint.

*/ inline VpcEndpoint& WithNetworkInterfaces(const Aws::Vector& value) { SetNetworkInterfaces(value); return *this;} /** *

One or more network interfaces of the endpoint. Also known as an interface * endpoint.

*/ inline VpcEndpoint& WithNetworkInterfaces(Aws::Vector&& value) { SetNetworkInterfaces(std::move(value)); return *this;} /** *

One or more network interfaces of the endpoint. Also known as an interface * endpoint.

*/ inline VpcEndpoint& AddNetworkInterfaces(const NetworkInterface& value) { m_networkInterfacesHasBeenSet = true; m_networkInterfaces.push_back(value); return *this; } /** *

One or more network interfaces of the endpoint. Also known as an interface * endpoint.

*/ inline VpcEndpoint& AddNetworkInterfaces(NetworkInterface&& value) { m_networkInterfacesHasBeenSet = true; m_networkInterfaces.push_back(std::move(value)); return *this; } private: Aws::String m_vpcEndpointId; bool m_vpcEndpointIdHasBeenSet = false; Aws::String m_vpcId; bool m_vpcIdHasBeenSet = false; Aws::Vector m_networkInterfaces; bool m_networkInterfacesHasBeenSet = false; }; } // namespace Model } // namespace Redshift } // namespace Aws