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

Describes an interface VPC endpoint (interface endpoint) that lets you create * a private connection between the virtual private cloud (VPC) that you specify * and AppStream 2.0. When you specify an interface endpoint for a stack, users of * the stack can connect to AppStream 2.0 only through that endpoint. When you * specify an interface endpoint for an image builder, administrators can connect * to the image builder only through that endpoint.

See Also:

AWS * API Reference

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

The type of interface endpoint.

*/ inline const AccessEndpointType& GetEndpointType() const{ return m_endpointType; } /** *

The type of interface endpoint.

*/ inline bool EndpointTypeHasBeenSet() const { return m_endpointTypeHasBeenSet; } /** *

The type of interface endpoint.

*/ inline void SetEndpointType(const AccessEndpointType& value) { m_endpointTypeHasBeenSet = true; m_endpointType = value; } /** *

The type of interface endpoint.

*/ inline void SetEndpointType(AccessEndpointType&& value) { m_endpointTypeHasBeenSet = true; m_endpointType = std::move(value); } /** *

The type of interface endpoint.

*/ inline AccessEndpoint& WithEndpointType(const AccessEndpointType& value) { SetEndpointType(value); return *this;} /** *

The type of interface endpoint.

*/ inline AccessEndpoint& WithEndpointType(AccessEndpointType&& value) { SetEndpointType(std::move(value)); return *this;} /** *

The identifier (ID) of the VPC in which the interface endpoint is used.

*/ inline const Aws::String& GetVpceId() const{ return m_vpceId; } /** *

The identifier (ID) of the VPC in which the interface endpoint is used.

*/ inline bool VpceIdHasBeenSet() const { return m_vpceIdHasBeenSet; } /** *

The identifier (ID) of the VPC in which the interface endpoint is used.

*/ inline void SetVpceId(const Aws::String& value) { m_vpceIdHasBeenSet = true; m_vpceId = value; } /** *

The identifier (ID) of the VPC in which the interface endpoint is used.

*/ inline void SetVpceId(Aws::String&& value) { m_vpceIdHasBeenSet = true; m_vpceId = std::move(value); } /** *

The identifier (ID) of the VPC in which the interface endpoint is used.

*/ inline void SetVpceId(const char* value) { m_vpceIdHasBeenSet = true; m_vpceId.assign(value); } /** *

The identifier (ID) of the VPC in which the interface endpoint is used.

*/ inline AccessEndpoint& WithVpceId(const Aws::String& value) { SetVpceId(value); return *this;} /** *

The identifier (ID) of the VPC in which the interface endpoint is used.

*/ inline AccessEndpoint& WithVpceId(Aws::String&& value) { SetVpceId(std::move(value)); return *this;} /** *

The identifier (ID) of the VPC in which the interface endpoint is used.

*/ inline AccessEndpoint& WithVpceId(const char* value) { SetVpceId(value); return *this;} private: AccessEndpointType m_endpointType; bool m_endpointTypeHasBeenSet = false; Aws::String m_vpceId; bool m_vpceIdHasBeenSet = false; }; } // namespace Model } // namespace AppStream } // namespace Aws