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

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

See Also:

AWS * API Reference

*/ class VpcEndpoint { public: AWS_REDSHIFTSERVERLESS_API VpcEndpoint(); AWS_REDSHIFTSERVERLESS_API VpcEndpoint(Aws::Utils::Json::JsonView jsonValue); AWS_REDSHIFTSERVERLESS_API VpcEndpoint& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_REDSHIFTSERVERLESS_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

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; } /** *

The connection endpoint ID for connecting to Amazon Redshift Serverless.

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

The connection endpoint ID for connecting to Amazon Redshift Serverless.

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

The connection endpoint ID for connecting to Amazon Redshift Serverless.

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

The connection endpoint ID for connecting to Amazon Redshift Serverless.

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

The connection endpoint ID for connecting to Amazon Redshift Serverless.

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

The connection endpoint ID for connecting to Amazon Redshift Serverless.

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

The connection endpoint ID for connecting to Amazon Redshift Serverless.

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

The connection endpoint ID for connecting to Amazon Redshift Serverless.

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

The VPC identifier that the endpoint is associated with.

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

The VPC identifier that the endpoint is associated with.

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

The VPC identifier that the endpoint is associated with.

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

The VPC identifier that the endpoint is associated with.

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

The VPC identifier that the endpoint is associated with.

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

The VPC identifier that the endpoint is associated with.

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

The VPC identifier that the endpoint is associated with.

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

The VPC identifier that the endpoint is associated with.

*/ inline VpcEndpoint& WithVpcId(const char* value) { SetVpcId(value); return *this;} private: Aws::Vector m_networkInterfaces; bool m_networkInterfacesHasBeenSet = false; Aws::String m_vpcEndpointId; bool m_vpcEndpointIdHasBeenSet = false; Aws::String m_vpcId; bool m_vpcIdHasBeenSet = false; }; } // namespace Model } // namespace RedshiftServerless } // namespace Aws