/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include Contains information about a REST API in version 1 of Amazon API
* Gateway.See Also:
AWS
* API Reference
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
.
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
.
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
.
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
.
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
.
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
.
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
.
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
.
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::VectorThe 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::VectorThe list of binary media types supported by the REST API.
*/ inline void SetBinaryMediaTypes(Aws::VectorThe list of binary media types supported by the REST API.
*/ inline AwsApiGatewayRestApiDetails& WithBinaryMediaTypes(const Aws::VectorThe list of binary media types supported by the REST API.
*/ inline AwsApiGatewayRestApiDetails& WithBinaryMediaTypes(Aws::VectorThe 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.
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.
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.
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.
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.
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.
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.
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.
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