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

Contains information about a REST API in version 1 of Amazon API * Gateway.

See Also:

AWS * API Reference

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

The identifier of the REST API.

*/ inline const Aws::String& GetId() const{ return m_id; } /** *

The identifier of the REST API.

*/ inline bool IdHasBeenSet() const { return m_idHasBeenSet; } /** *

The identifier of the REST API.

*/ inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; } /** *

The identifier of the REST API.

*/ inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); } /** *

The identifier of the REST API.

*/ inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); } /** *

The identifier of the REST API.

*/ inline AwsApiGatewayRestApiDetails& WithId(const Aws::String& value) { SetId(value); return *this;} /** *

The identifier of the REST API.

*/ inline AwsApiGatewayRestApiDetails& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;} /** *

The identifier of the REST API.

*/ inline AwsApiGatewayRestApiDetails& WithId(const char* value) { SetId(value); return *this;} /** *

The name of the REST API.

*/ inline const Aws::String& GetName() const{ return m_name; } /** *

The name of the REST API.

*/ inline bool NameHasBeenSet() const { return m_nameHasBeenSet; } /** *

The name of the REST API.

*/ inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; } /** *

The name of the REST API.

*/ inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); } /** *

The name of the REST API.

*/ inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); } /** *

The name of the REST API.

*/ inline AwsApiGatewayRestApiDetails& WithName(const Aws::String& value) { SetName(value); return *this;} /** *

The name of the REST API.

*/ inline AwsApiGatewayRestApiDetails& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;} /** *

The name of the REST API.

*/ inline AwsApiGatewayRestApiDetails& WithName(const char* value) { SetName(value); return *this;} /** *

A description of the REST API.

*/ inline const Aws::String& GetDescription() const{ return m_description; } /** *

A description of the REST API.

*/ inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; } /** *

A description of the REST API.

*/ inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; } /** *

A description of the REST API.

*/ inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); } /** *

A description of the REST API.

*/ inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); } /** *

A description of the REST API.

*/ inline AwsApiGatewayRestApiDetails& WithDescription(const Aws::String& value) { SetDescription(value); return *this;} /** *

A description of the REST API.

*/ inline AwsApiGatewayRestApiDetails& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;} /** *

A description of the REST API.

*/ inline AwsApiGatewayRestApiDetails& WithDescription(const char* value) { SetDescription(value); return *this;} /** *

Indicates when the API was created.

Uses the date-time * format specified in RFC 3339 section 5.6, * Internet Date/Time Format. The value cannot contain spaces, and date and * time should be separated by T. For example, * 2020-03-22T13:22:13.933Z.

*/ inline const Aws::String& GetCreatedDate() const{ return m_createdDate; } /** *

Indicates when the API was created.

Uses the date-time * format specified in RFC 3339 section 5.6, * Internet Date/Time Format. The value cannot contain spaces, and date and * time should be separated by T. For example, * 2020-03-22T13:22:13.933Z.

*/ inline bool CreatedDateHasBeenSet() const { return m_createdDateHasBeenSet; } /** *

Indicates when the API was created.

Uses the date-time * format specified in RFC 3339 section 5.6, * Internet Date/Time Format. The value cannot contain spaces, and date and * time should be separated by T. For example, * 2020-03-22T13:22:13.933Z.

*/ inline void SetCreatedDate(const Aws::String& value) { m_createdDateHasBeenSet = true; m_createdDate = value; } /** *

Indicates when the API was created.

Uses the date-time * format specified in RFC 3339 section 5.6, * Internet Date/Time Format. The value cannot contain spaces, and date and * time should be separated by T. For example, * 2020-03-22T13:22:13.933Z.

*/ inline void SetCreatedDate(Aws::String&& value) { m_createdDateHasBeenSet = true; m_createdDate = std::move(value); } /** *

Indicates when the API was created.

Uses the date-time * format specified in RFC 3339 section 5.6, * Internet Date/Time Format. The value cannot contain spaces, and date and * time should be separated by T. For example, * 2020-03-22T13:22:13.933Z.

*/ inline void SetCreatedDate(const char* value) { m_createdDateHasBeenSet = true; m_createdDate.assign(value); } /** *

Indicates when the API was created.

Uses the date-time * format specified in RFC 3339 section 5.6, * Internet Date/Time Format. The value cannot contain spaces, and date and * time should be separated by T. For example, * 2020-03-22T13:22:13.933Z.

*/ inline AwsApiGatewayRestApiDetails& WithCreatedDate(const Aws::String& value) { SetCreatedDate(value); return *this;} /** *

Indicates when the API was created.

Uses the date-time * format specified in RFC 3339 section 5.6, * Internet Date/Time Format. The value cannot contain spaces, and date and * time should be separated by T. For example, * 2020-03-22T13:22:13.933Z.

*/ inline AwsApiGatewayRestApiDetails& WithCreatedDate(Aws::String&& value) { SetCreatedDate(std::move(value)); return *this;} /** *

Indicates when the API was created.

Uses the date-time * format specified in RFC 3339 section 5.6, * Internet Date/Time Format. The value cannot contain spaces, and date and * time should be separated by T. For example, * 2020-03-22T13:22:13.933Z.

*/ inline AwsApiGatewayRestApiDetails& WithCreatedDate(const char* value) { SetCreatedDate(value); return *this;} /** *

The version identifier for the REST API.

*/ inline const Aws::String& GetVersion() const{ return m_version; } /** *

The version identifier for the REST API.

*/ inline bool VersionHasBeenSet() const { return m_versionHasBeenSet; } /** *

The version identifier for the REST API.

*/ inline void SetVersion(const Aws::String& value) { m_versionHasBeenSet = true; m_version = value; } /** *

The version identifier for the REST API.

*/ inline void SetVersion(Aws::String&& value) { m_versionHasBeenSet = true; m_version = std::move(value); } /** *

The version identifier for the REST API.

*/ inline void SetVersion(const char* value) { m_versionHasBeenSet = true; m_version.assign(value); } /** *

The version identifier for the REST API.

*/ inline AwsApiGatewayRestApiDetails& WithVersion(const Aws::String& value) { SetVersion(value); return *this;} /** *

The version identifier for the REST API.

*/ inline AwsApiGatewayRestApiDetails& WithVersion(Aws::String&& value) { SetVersion(std::move(value)); return *this;} /** *

The version identifier for the REST API.

*/ inline AwsApiGatewayRestApiDetails& WithVersion(const char* value) { SetVersion(value); return *this;} /** *

The list of binary media types supported by the REST API.

*/ inline const Aws::Vector& GetBinaryMediaTypes() const{ return m_binaryMediaTypes; } /** *

The list of binary media types supported by the REST API.

*/ inline bool BinaryMediaTypesHasBeenSet() const { return m_binaryMediaTypesHasBeenSet; } /** *

The list of binary media types supported by the REST API.

*/ inline void SetBinaryMediaTypes(const Aws::Vector& value) { m_binaryMediaTypesHasBeenSet = true; m_binaryMediaTypes = value; } /** *

The list of binary media types supported by the REST API.

*/ inline void SetBinaryMediaTypes(Aws::Vector&& value) { m_binaryMediaTypesHasBeenSet = true; m_binaryMediaTypes = std::move(value); } /** *

The list of binary media types supported by the REST API.

*/ inline AwsApiGatewayRestApiDetails& WithBinaryMediaTypes(const Aws::Vector& value) { SetBinaryMediaTypes(value); return *this;} /** *

The list of binary media types supported by the REST API.

*/ inline AwsApiGatewayRestApiDetails& WithBinaryMediaTypes(Aws::Vector&& value) { SetBinaryMediaTypes(std::move(value)); return *this;} /** *

The list of binary media types supported by the REST API.

*/ inline AwsApiGatewayRestApiDetails& AddBinaryMediaTypes(const Aws::String& value) { m_binaryMediaTypesHasBeenSet = true; m_binaryMediaTypes.push_back(value); return *this; } /** *

The list of binary media types supported by the REST API.

*/ inline AwsApiGatewayRestApiDetails& AddBinaryMediaTypes(Aws::String&& value) { m_binaryMediaTypesHasBeenSet = true; m_binaryMediaTypes.push_back(std::move(value)); return *this; } /** *

The list of binary media types supported by the REST API.

*/ inline AwsApiGatewayRestApiDetails& AddBinaryMediaTypes(const char* value) { m_binaryMediaTypesHasBeenSet = true; m_binaryMediaTypes.push_back(value); return *this; } /** *

The minimum size in bytes of a payload before compression is enabled.

*

If null, then compression is disabled.

If 0, then all * payloads are compressed.

*/ inline int GetMinimumCompressionSize() const{ return m_minimumCompressionSize; } /** *

The minimum size in bytes of a payload before compression is enabled.

*

If null, then compression is disabled.

If 0, then all * payloads are compressed.

*/ inline bool MinimumCompressionSizeHasBeenSet() const { return m_minimumCompressionSizeHasBeenSet; } /** *

The minimum size in bytes of a payload before compression is enabled.

*

If null, then compression is disabled.

If 0, then all * payloads are compressed.

*/ inline void SetMinimumCompressionSize(int value) { m_minimumCompressionSizeHasBeenSet = true; m_minimumCompressionSize = value; } /** *

The minimum size in bytes of a payload before compression is enabled.

*

If null, then compression is disabled.

If 0, then all * payloads are compressed.

*/ inline AwsApiGatewayRestApiDetails& WithMinimumCompressionSize(int value) { SetMinimumCompressionSize(value); return *this;} /** *

The source of the API key for metering requests according to a usage * plan.

HEADER indicates whether to read the API key from the * X-API-Key header of a request.

AUTHORIZER indicates whether * to read the API key from the UsageIdentifierKey from a custom * authorizer.

*/ inline const Aws::String& GetApiKeySource() const{ return m_apiKeySource; } /** *

The source of the API key for metering requests according to a usage * plan.

HEADER indicates whether to read the API key from the * X-API-Key header of a request.

AUTHORIZER indicates whether * to read the API key from the UsageIdentifierKey from a custom * authorizer.

*/ inline bool ApiKeySourceHasBeenSet() const { return m_apiKeySourceHasBeenSet; } /** *

The source of the API key for metering requests according to a usage * plan.

HEADER indicates whether to read the API key from the * X-API-Key header of a request.

AUTHORIZER indicates whether * to read the API key from the UsageIdentifierKey from a custom * authorizer.

*/ inline void SetApiKeySource(const Aws::String& value) { m_apiKeySourceHasBeenSet = true; m_apiKeySource = value; } /** *

The source of the API key for metering requests according to a usage * plan.

HEADER indicates whether to read the API key from the * X-API-Key header of a request.

AUTHORIZER indicates whether * to read the API key from the UsageIdentifierKey from a custom * authorizer.

*/ inline void SetApiKeySource(Aws::String&& value) { m_apiKeySourceHasBeenSet = true; m_apiKeySource = std::move(value); } /** *

The source of the API key for metering requests according to a usage * plan.

HEADER indicates whether to read the API key from the * X-API-Key header of a request.

AUTHORIZER indicates whether * to read the API key from the UsageIdentifierKey from a custom * authorizer.

*/ inline void SetApiKeySource(const char* value) { m_apiKeySourceHasBeenSet = true; m_apiKeySource.assign(value); } /** *

The source of the API key for metering requests according to a usage * plan.

HEADER indicates whether to read the API key from the * X-API-Key header of a request.

AUTHORIZER indicates whether * to read the API key from the UsageIdentifierKey from a custom * authorizer.

*/ inline AwsApiGatewayRestApiDetails& WithApiKeySource(const Aws::String& value) { SetApiKeySource(value); return *this;} /** *

The source of the API key for metering requests according to a usage * plan.

HEADER indicates whether to read the API key from the * X-API-Key header of a request.

AUTHORIZER indicates whether * to read the API key from the UsageIdentifierKey from a custom * authorizer.

*/ inline AwsApiGatewayRestApiDetails& WithApiKeySource(Aws::String&& value) { SetApiKeySource(std::move(value)); return *this;} /** *

The source of the API key for metering requests according to a usage * plan.

HEADER indicates whether to read the API key from the * X-API-Key header of a request.

AUTHORIZER indicates whether * to read the API key from the UsageIdentifierKey from a custom * authorizer.

*/ inline AwsApiGatewayRestApiDetails& WithApiKeySource(const char* value) { SetApiKeySource(value); return *this;} /** *

The endpoint configuration of the REST API.

*/ inline const AwsApiGatewayEndpointConfiguration& GetEndpointConfiguration() const{ return m_endpointConfiguration; } /** *

The endpoint configuration of the REST API.

*/ inline bool EndpointConfigurationHasBeenSet() const { return m_endpointConfigurationHasBeenSet; } /** *

The endpoint configuration of the REST API.

*/ inline void SetEndpointConfiguration(const AwsApiGatewayEndpointConfiguration& value) { m_endpointConfigurationHasBeenSet = true; m_endpointConfiguration = value; } /** *

The endpoint configuration of the REST API.

*/ inline void SetEndpointConfiguration(AwsApiGatewayEndpointConfiguration&& value) { m_endpointConfigurationHasBeenSet = true; m_endpointConfiguration = std::move(value); } /** *

The endpoint configuration of the REST API.

*/ inline AwsApiGatewayRestApiDetails& WithEndpointConfiguration(const AwsApiGatewayEndpointConfiguration& value) { SetEndpointConfiguration(value); return *this;} /** *

The endpoint configuration of the REST API.

*/ inline AwsApiGatewayRestApiDetails& WithEndpointConfiguration(AwsApiGatewayEndpointConfiguration&& value) { SetEndpointConfiguration(std::move(value)); return *this;} private: Aws::String m_id; bool m_idHasBeenSet = false; Aws::String m_name; bool m_nameHasBeenSet = false; Aws::String m_description; bool m_descriptionHasBeenSet = false; Aws::String m_createdDate; bool m_createdDateHasBeenSet = false; Aws::String m_version; bool m_versionHasBeenSet = false; Aws::Vector m_binaryMediaTypes; bool m_binaryMediaTypesHasBeenSet = false; int m_minimumCompressionSize; bool m_minimumCompressionSizeHasBeenSet = false; Aws::String m_apiKeySource; bool m_apiKeySourceHasBeenSet = false; AwsApiGatewayEndpointConfiguration m_endpointConfiguration; bool m_endpointConfigurationHasBeenSet = false; }; } // namespace Model } // namespace SecurityHub } // namespace Aws