/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include The POST Request to add a new RestApi resource to your
* collection.See Also:
AWS
* API Reference
The name of the RestApi.
*/ inline const Aws::String& GetName() const{ return m_name; } /** *The name of the RestApi.
*/ inline bool NameHasBeenSet() const { return m_nameHasBeenSet; } /** *The name of the RestApi.
*/ inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; } /** *The name of the RestApi.
*/ inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); } /** *The name of the RestApi.
*/ inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); } /** *The name of the RestApi.
*/ inline CreateRestApiRequest& WithName(const Aws::String& value) { SetName(value); return *this;} /** *The name of the RestApi.
*/ inline CreateRestApiRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;} /** *The name of the RestApi.
*/ inline CreateRestApiRequest& WithName(const char* value) { SetName(value); return *this;} /** *The description of the RestApi.
*/ inline const Aws::String& GetDescription() const{ return m_description; } /** *The description of the RestApi.
*/ inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; } /** *The description of the RestApi.
*/ inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; } /** *The description of the RestApi.
*/ inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); } /** *The description of the RestApi.
*/ inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); } /** *The description of the RestApi.
*/ inline CreateRestApiRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;} /** *The description of the RestApi.
*/ inline CreateRestApiRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;} /** *The description of the RestApi.
*/ inline CreateRestApiRequest& WithDescription(const char* value) { SetDescription(value); return *this;} /** *A version identifier for the API.
*/ inline const Aws::String& GetVersion() const{ return m_version; } /** *A version identifier for the API.
*/ inline bool VersionHasBeenSet() const { return m_versionHasBeenSet; } /** *A version identifier for the API.
*/ inline void SetVersion(const Aws::String& value) { m_versionHasBeenSet = true; m_version = value; } /** *A version identifier for the API.
*/ inline void SetVersion(Aws::String&& value) { m_versionHasBeenSet = true; m_version = std::move(value); } /** *A version identifier for the API.
*/ inline void SetVersion(const char* value) { m_versionHasBeenSet = true; m_version.assign(value); } /** *A version identifier for the API.
*/ inline CreateRestApiRequest& WithVersion(const Aws::String& value) { SetVersion(value); return *this;} /** *A version identifier for the API.
*/ inline CreateRestApiRequest& WithVersion(Aws::String&& value) { SetVersion(std::move(value)); return *this;} /** *A version identifier for the API.
*/ inline CreateRestApiRequest& WithVersion(const char* value) { SetVersion(value); return *this;} /** *The ID of the RestApi that you want to clone from.
*/ inline const Aws::String& GetCloneFrom() const{ return m_cloneFrom; } /** *The ID of the RestApi that you want to clone from.
*/ inline bool CloneFromHasBeenSet() const { return m_cloneFromHasBeenSet; } /** *The ID of the RestApi that you want to clone from.
*/ inline void SetCloneFrom(const Aws::String& value) { m_cloneFromHasBeenSet = true; m_cloneFrom = value; } /** *The ID of the RestApi that you want to clone from.
*/ inline void SetCloneFrom(Aws::String&& value) { m_cloneFromHasBeenSet = true; m_cloneFrom = std::move(value); } /** *The ID of the RestApi that you want to clone from.
*/ inline void SetCloneFrom(const char* value) { m_cloneFromHasBeenSet = true; m_cloneFrom.assign(value); } /** *The ID of the RestApi that you want to clone from.
*/ inline CreateRestApiRequest& WithCloneFrom(const Aws::String& value) { SetCloneFrom(value); return *this;} /** *The ID of the RestApi that you want to clone from.
*/ inline CreateRestApiRequest& WithCloneFrom(Aws::String&& value) { SetCloneFrom(std::move(value)); return *this;} /** *The ID of the RestApi that you want to clone from.
*/ inline CreateRestApiRequest& WithCloneFrom(const char* value) { SetCloneFrom(value); return *this;} /** *The list of binary media types supported by the RestApi. By default, the * RestApi supports only UTF-8-encoded text payloads.
*/ inline const Aws::VectorThe list of binary media types supported by the RestApi. By default, the * RestApi supports only UTF-8-encoded text payloads.
*/ inline bool BinaryMediaTypesHasBeenSet() const { return m_binaryMediaTypesHasBeenSet; } /** *The list of binary media types supported by the RestApi. By default, the * RestApi supports only UTF-8-encoded text payloads.
*/ inline void SetBinaryMediaTypes(const Aws::VectorThe list of binary media types supported by the RestApi. By default, the * RestApi supports only UTF-8-encoded text payloads.
*/ inline void SetBinaryMediaTypes(Aws::VectorThe list of binary media types supported by the RestApi. By default, the * RestApi supports only UTF-8-encoded text payloads.
*/ inline CreateRestApiRequest& WithBinaryMediaTypes(const Aws::VectorThe list of binary media types supported by the RestApi. By default, the * RestApi supports only UTF-8-encoded text payloads.
*/ inline CreateRestApiRequest& WithBinaryMediaTypes(Aws::VectorThe list of binary media types supported by the RestApi. By default, the * RestApi supports only UTF-8-encoded text payloads.
*/ inline CreateRestApiRequest& AddBinaryMediaTypes(const Aws::String& value) { m_binaryMediaTypesHasBeenSet = true; m_binaryMediaTypes.push_back(value); return *this; } /** *The list of binary media types supported by the RestApi. By default, the * RestApi supports only UTF-8-encoded text payloads.
*/ inline CreateRestApiRequest& 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 RestApi. By default, the * RestApi supports only UTF-8-encoded text payloads.
*/ inline CreateRestApiRequest& AddBinaryMediaTypes(const char* value) { m_binaryMediaTypesHasBeenSet = true; m_binaryMediaTypes.push_back(value); return *this; } /** *A nullable integer that is used to enable compression (with non-negative * between 0 and 10485760 (10M) bytes, inclusive) or disable compression (with a * null value) on an API. When compression is enabled, compression or decompression * is not applied on the payload if the payload size is smaller than this value. * Setting it to zero allows compression for any payload size.
*/ inline int GetMinimumCompressionSize() const{ return m_minimumCompressionSize; } /** *A nullable integer that is used to enable compression (with non-negative * between 0 and 10485760 (10M) bytes, inclusive) or disable compression (with a * null value) on an API. When compression is enabled, compression or decompression * is not applied on the payload if the payload size is smaller than this value. * Setting it to zero allows compression for any payload size.
*/ inline bool MinimumCompressionSizeHasBeenSet() const { return m_minimumCompressionSizeHasBeenSet; } /** *A nullable integer that is used to enable compression (with non-negative * between 0 and 10485760 (10M) bytes, inclusive) or disable compression (with a * null value) on an API. When compression is enabled, compression or decompression * is not applied on the payload if the payload size is smaller than this value. * Setting it to zero allows compression for any payload size.
*/ inline void SetMinimumCompressionSize(int value) { m_minimumCompressionSizeHasBeenSet = true; m_minimumCompressionSize = value; } /** *A nullable integer that is used to enable compression (with non-negative * between 0 and 10485760 (10M) bytes, inclusive) or disable compression (with a * null value) on an API. When compression is enabled, compression or decompression * is not applied on the payload if the payload size is smaller than this value. * Setting it to zero allows compression for any payload size.
*/ inline CreateRestApiRequest& WithMinimumCompressionSize(int value) { SetMinimumCompressionSize(value); return *this;} /** *The source of the API key for metering requests according to a usage plan.
* Valid values are: >HEADER
to read the API key from the
* X-API-Key
header of a request. AUTHORIZER
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.
* Valid values are: >HEADER
to read the API key from the
* X-API-Key
header of a request. AUTHORIZER
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.
* Valid values are: >HEADER
to read the API key from the
* X-API-Key
header of a request. AUTHORIZER
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.
* Valid values are: >HEADER
to read the API key from the
* X-API-Key
header of a request. AUTHORIZER
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.
* Valid values are: >HEADER
to read the API key from the
* X-API-Key
header of a request. AUTHORIZER
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.
* Valid values are: >HEADER
to read the API key from the
* X-API-Key
header of a request. AUTHORIZER
to read the
* API key from the UsageIdentifierKey
from a custom authorizer.
The endpoint configuration of this RestApi showing the endpoint types of the * API.
*/ inline const EndpointConfiguration& GetEndpointConfiguration() const{ return m_endpointConfiguration; } /** *The endpoint configuration of this RestApi showing the endpoint types of the * API.
*/ inline bool EndpointConfigurationHasBeenSet() const { return m_endpointConfigurationHasBeenSet; } /** *The endpoint configuration of this RestApi showing the endpoint types of the * API.
*/ inline void SetEndpointConfiguration(const EndpointConfiguration& value) { m_endpointConfigurationHasBeenSet = true; m_endpointConfiguration = value; } /** *The endpoint configuration of this RestApi showing the endpoint types of the * API.
*/ inline void SetEndpointConfiguration(EndpointConfiguration&& value) { m_endpointConfigurationHasBeenSet = true; m_endpointConfiguration = std::move(value); } /** *The endpoint configuration of this RestApi showing the endpoint types of the * API.
*/ inline CreateRestApiRequest& WithEndpointConfiguration(const EndpointConfiguration& value) { SetEndpointConfiguration(value); return *this;} /** *The endpoint configuration of this RestApi showing the endpoint types of the * API.
*/ inline CreateRestApiRequest& WithEndpointConfiguration(EndpointConfiguration&& value) { SetEndpointConfiguration(std::move(value)); return *this;} /** *A stringified JSON policy document that applies to this RestApi regardless of * the caller and Method configuration.
*/ inline const Aws::String& GetPolicy() const{ return m_policy; } /** *A stringified JSON policy document that applies to this RestApi regardless of * the caller and Method configuration.
*/ inline bool PolicyHasBeenSet() const { return m_policyHasBeenSet; } /** *A stringified JSON policy document that applies to this RestApi regardless of * the caller and Method configuration.
*/ inline void SetPolicy(const Aws::String& value) { m_policyHasBeenSet = true; m_policy = value; } /** *A stringified JSON policy document that applies to this RestApi regardless of * the caller and Method configuration.
*/ inline void SetPolicy(Aws::String&& value) { m_policyHasBeenSet = true; m_policy = std::move(value); } /** *A stringified JSON policy document that applies to this RestApi regardless of * the caller and Method configuration.
*/ inline void SetPolicy(const char* value) { m_policyHasBeenSet = true; m_policy.assign(value); } /** *A stringified JSON policy document that applies to this RestApi regardless of * the caller and Method configuration.
*/ inline CreateRestApiRequest& WithPolicy(const Aws::String& value) { SetPolicy(value); return *this;} /** *A stringified JSON policy document that applies to this RestApi regardless of * the caller and Method configuration.
*/ inline CreateRestApiRequest& WithPolicy(Aws::String&& value) { SetPolicy(std::move(value)); return *this;} /** *A stringified JSON policy document that applies to this RestApi regardless of * the caller and Method configuration.
*/ inline CreateRestApiRequest& WithPolicy(const char* value) { SetPolicy(value); return *this;} /** *The key-value map of strings. The valid character set is [a-zA-Z+-=._:/]. The
* tag key can be up to 128 characters and must not start with aws:
.
* The tag value can be up to 256 characters.
The key-value map of strings. The valid character set is [a-zA-Z+-=._:/]. The
* tag key can be up to 128 characters and must not start with aws:
.
* The tag value can be up to 256 characters.
The key-value map of strings. The valid character set is [a-zA-Z+-=._:/]. The
* tag key can be up to 128 characters and must not start with aws:
.
* The tag value can be up to 256 characters.
The key-value map of strings. The valid character set is [a-zA-Z+-=._:/]. The
* tag key can be up to 128 characters and must not start with aws:
.
* The tag value can be up to 256 characters.
The key-value map of strings. The valid character set is [a-zA-Z+-=._:/]. The
* tag key can be up to 128 characters and must not start with aws:
.
* The tag value can be up to 256 characters.
The key-value map of strings. The valid character set is [a-zA-Z+-=._:/]. The
* tag key can be up to 128 characters and must not start with aws:
.
* The tag value can be up to 256 characters.
The key-value map of strings. The valid character set is [a-zA-Z+-=._:/]. The
* tag key can be up to 128 characters and must not start with aws:
.
* The tag value can be up to 256 characters.
The key-value map of strings. The valid character set is [a-zA-Z+-=._:/]. The
* tag key can be up to 128 characters and must not start with aws:
.
* The tag value can be up to 256 characters.
The key-value map of strings. The valid character set is [a-zA-Z+-=._:/]. The
* tag key can be up to 128 characters and must not start with aws:
.
* The tag value can be up to 256 characters.
The key-value map of strings. The valid character set is [a-zA-Z+-=._:/]. The
* tag key can be up to 128 characters and must not start with aws:
.
* The tag value can be up to 256 characters.
The key-value map of strings. The valid character set is [a-zA-Z+-=._:/]. The
* tag key can be up to 128 characters and must not start with aws:
.
* The tag value can be up to 256 characters.
The key-value map of strings. The valid character set is [a-zA-Z+-=._:/]. The
* tag key can be up to 128 characters and must not start with aws:
.
* The tag value can be up to 256 characters.
The key-value map of strings. The valid character set is [a-zA-Z+-=._:/]. The
* tag key can be up to 128 characters and must not start with aws:
.
* The tag value can be up to 256 characters.
Specifies whether clients can invoke your API by using the default
* execute-api
endpoint. By default, clients can invoke your API with
* the default https://{api_id}.execute-api.{region}.amazonaws.com
* endpoint. To require that clients use a custom domain name to invoke your API,
* disable the default endpoint
Specifies whether clients can invoke your API by using the default
* execute-api
endpoint. By default, clients can invoke your API with
* the default https://{api_id}.execute-api.{region}.amazonaws.com
* endpoint. To require that clients use a custom domain name to invoke your API,
* disable the default endpoint
Specifies whether clients can invoke your API by using the default
* execute-api
endpoint. By default, clients can invoke your API with
* the default https://{api_id}.execute-api.{region}.amazonaws.com
* endpoint. To require that clients use a custom domain name to invoke your API,
* disable the default endpoint
Specifies whether clients can invoke your API by using the default
* execute-api
endpoint. By default, clients can invoke your API with
* the default https://{api_id}.execute-api.{region}.amazonaws.com
* endpoint. To require that clients use a custom domain name to invoke your API,
* disable the default endpoint