/** * 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 APIGateway { namespace Model { /** *

The endpoint configuration to indicate the types of endpoints an API * (RestApi) or its custom domain name (DomainName) has.

See Also:

* AWS * API Reference

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

A list of endpoint types of an API (RestApi) or its custom domain name * (DomainName). For an edge-optimized API and its custom domain name, the endpoint * type is "EDGE". For a regional API and its custom domain name, the * endpoint type is REGIONAL. For a private API, the endpoint type is * PRIVATE.

*/ inline const Aws::Vector& GetTypes() const{ return m_types; } /** *

A list of endpoint types of an API (RestApi) or its custom domain name * (DomainName). For an edge-optimized API and its custom domain name, the endpoint * type is "EDGE". For a regional API and its custom domain name, the * endpoint type is REGIONAL. For a private API, the endpoint type is * PRIVATE.

*/ inline bool TypesHasBeenSet() const { return m_typesHasBeenSet; } /** *

A list of endpoint types of an API (RestApi) or its custom domain name * (DomainName). For an edge-optimized API and its custom domain name, the endpoint * type is "EDGE". For a regional API and its custom domain name, the * endpoint type is REGIONAL. For a private API, the endpoint type is * PRIVATE.

*/ inline void SetTypes(const Aws::Vector& value) { m_typesHasBeenSet = true; m_types = value; } /** *

A list of endpoint types of an API (RestApi) or its custom domain name * (DomainName). For an edge-optimized API and its custom domain name, the endpoint * type is "EDGE". For a regional API and its custom domain name, the * endpoint type is REGIONAL. For a private API, the endpoint type is * PRIVATE.

*/ inline void SetTypes(Aws::Vector&& value) { m_typesHasBeenSet = true; m_types = std::move(value); } /** *

A list of endpoint types of an API (RestApi) or its custom domain name * (DomainName). For an edge-optimized API and its custom domain name, the endpoint * type is "EDGE". For a regional API and its custom domain name, the * endpoint type is REGIONAL. For a private API, the endpoint type is * PRIVATE.

*/ inline EndpointConfiguration& WithTypes(const Aws::Vector& value) { SetTypes(value); return *this;} /** *

A list of endpoint types of an API (RestApi) or its custom domain name * (DomainName). For an edge-optimized API and its custom domain name, the endpoint * type is "EDGE". For a regional API and its custom domain name, the * endpoint type is REGIONAL. For a private API, the endpoint type is * PRIVATE.

*/ inline EndpointConfiguration& WithTypes(Aws::Vector&& value) { SetTypes(std::move(value)); return *this;} /** *

A list of endpoint types of an API (RestApi) or its custom domain name * (DomainName). For an edge-optimized API and its custom domain name, the endpoint * type is "EDGE". For a regional API and its custom domain name, the * endpoint type is REGIONAL. For a private API, the endpoint type is * PRIVATE.

*/ inline EndpointConfiguration& AddTypes(const EndpointType& value) { m_typesHasBeenSet = true; m_types.push_back(value); return *this; } /** *

A list of endpoint types of an API (RestApi) or its custom domain name * (DomainName). For an edge-optimized API and its custom domain name, the endpoint * type is "EDGE". For a regional API and its custom domain name, the * endpoint type is REGIONAL. For a private API, the endpoint type is * PRIVATE.

*/ inline EndpointConfiguration& AddTypes(EndpointType&& value) { m_typesHasBeenSet = true; m_types.push_back(std::move(value)); return *this; } /** *

A list of VpcEndpointIds of an API (RestApi) against which to create Route53 * ALIASes. It is only supported for PRIVATE endpoint type.

*/ inline const Aws::Vector& GetVpcEndpointIds() const{ return m_vpcEndpointIds; } /** *

A list of VpcEndpointIds of an API (RestApi) against which to create Route53 * ALIASes. It is only supported for PRIVATE endpoint type.

*/ inline bool VpcEndpointIdsHasBeenSet() const { return m_vpcEndpointIdsHasBeenSet; } /** *

A list of VpcEndpointIds of an API (RestApi) against which to create Route53 * ALIASes. It is only supported for PRIVATE endpoint type.

*/ inline void SetVpcEndpointIds(const Aws::Vector& value) { m_vpcEndpointIdsHasBeenSet = true; m_vpcEndpointIds = value; } /** *

A list of VpcEndpointIds of an API (RestApi) against which to create Route53 * ALIASes. It is only supported for PRIVATE endpoint type.

*/ inline void SetVpcEndpointIds(Aws::Vector&& value) { m_vpcEndpointIdsHasBeenSet = true; m_vpcEndpointIds = std::move(value); } /** *

A list of VpcEndpointIds of an API (RestApi) against which to create Route53 * ALIASes. It is only supported for PRIVATE endpoint type.

*/ inline EndpointConfiguration& WithVpcEndpointIds(const Aws::Vector& value) { SetVpcEndpointIds(value); return *this;} /** *

A list of VpcEndpointIds of an API (RestApi) against which to create Route53 * ALIASes. It is only supported for PRIVATE endpoint type.

*/ inline EndpointConfiguration& WithVpcEndpointIds(Aws::Vector&& value) { SetVpcEndpointIds(std::move(value)); return *this;} /** *

A list of VpcEndpointIds of an API (RestApi) against which to create Route53 * ALIASes. It is only supported for PRIVATE endpoint type.

*/ inline EndpointConfiguration& AddVpcEndpointIds(const Aws::String& value) { m_vpcEndpointIdsHasBeenSet = true; m_vpcEndpointIds.push_back(value); return *this; } /** *

A list of VpcEndpointIds of an API (RestApi) against which to create Route53 * ALIASes. It is only supported for PRIVATE endpoint type.

*/ inline EndpointConfiguration& AddVpcEndpointIds(Aws::String&& value) { m_vpcEndpointIdsHasBeenSet = true; m_vpcEndpointIds.push_back(std::move(value)); return *this; } /** *

A list of VpcEndpointIds of an API (RestApi) against which to create Route53 * ALIASes. It is only supported for PRIVATE endpoint type.

*/ inline EndpointConfiguration& AddVpcEndpointIds(const char* value) { m_vpcEndpointIdsHasBeenSet = true; m_vpcEndpointIds.push_back(value); return *this; } private: Aws::Vector m_types; bool m_typesHasBeenSet = false; Aws::Vector m_vpcEndpointIds; bool m_vpcEndpointIdsHasBeenSet = false; }; } // namespace Model } // namespace APIGateway } // namespace Aws