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

Contains information about the endpoints for the API.

See * Also:

AWS * API Reference

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

A list of endpoint types for the REST API.

For an edge-optimized API, * the endpoint type is EDGE. For a Regional API, 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 for the REST API.

For an edge-optimized API, * the endpoint type is EDGE. For a Regional API, 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 for the REST API.

For an edge-optimized API, * the endpoint type is EDGE. For a Regional API, 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 for the REST API.

For an edge-optimized API, * the endpoint type is EDGE. For a Regional API, 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 for the REST API.

For an edge-optimized API, * the endpoint type is EDGE. For a Regional API, the endpoint type is * REGIONAL. For a private API, the endpoint type is * PRIVATE.

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

A list of endpoint types for the REST API.

For an edge-optimized API, * the endpoint type is EDGE. For a Regional API, the endpoint type is * REGIONAL. For a private API, the endpoint type is * PRIVATE.

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

A list of endpoint types for the REST API.

For an edge-optimized API, * the endpoint type is EDGE. For a Regional API, the endpoint type is * REGIONAL. For a private API, the endpoint type is * PRIVATE.

*/ inline AwsApiGatewayEndpointConfiguration& AddTypes(const Aws::String& value) { m_typesHasBeenSet = true; m_types.push_back(value); return *this; } /** *

A list of endpoint types for the REST API.

For an edge-optimized API, * the endpoint type is EDGE. For a Regional API, the endpoint type is * REGIONAL. For a private API, the endpoint type is * PRIVATE.

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

A list of endpoint types for the REST API.

For an edge-optimized API, * the endpoint type is EDGE. For a Regional API, the endpoint type is * REGIONAL. For a private API, the endpoint type is * PRIVATE.

*/ inline AwsApiGatewayEndpointConfiguration& AddTypes(const char* value) { m_typesHasBeenSet = true; m_types.push_back(value); return *this; } private: Aws::Vector m_types; bool m_typesHasBeenSet = false; }; } // namespace Model } // namespace SecurityHub } // namespace Aws