/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include Represents a REST API.See Also:
AWS
* API Reference
The API's identifier. This identifier is unique across all of your APIs in * API Gateway.
*/ inline const Aws::String& GetId() const{ return m_id; } inline void SetId(const Aws::String& value) { m_id = value; } inline void SetId(Aws::String&& value) { m_id = std::move(value); } inline void SetId(const char* value) { m_id.assign(value); } inline UpdateRestApiResult& WithId(const Aws::String& value) { SetId(value); return *this;} inline UpdateRestApiResult& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;} inline UpdateRestApiResult& WithId(const char* value) { SetId(value); return *this;} ///@} ///@{ /** *The API's name.
*/ inline const Aws::String& GetName() const{ return m_name; } inline void SetName(const Aws::String& value) { m_name = value; } inline void SetName(Aws::String&& value) { m_name = std::move(value); } inline void SetName(const char* value) { m_name.assign(value); } inline UpdateRestApiResult& WithName(const Aws::String& value) { SetName(value); return *this;} inline UpdateRestApiResult& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;} inline UpdateRestApiResult& WithName(const char* value) { SetName(value); return *this;} ///@} ///@{ /** *The API's description.
*/ inline const Aws::String& GetDescription() const{ return m_description; } inline void SetDescription(const Aws::String& value) { m_description = value; } inline void SetDescription(Aws::String&& value) { m_description = std::move(value); } inline void SetDescription(const char* value) { m_description.assign(value); } inline UpdateRestApiResult& WithDescription(const Aws::String& value) { SetDescription(value); return *this;} inline UpdateRestApiResult& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;} inline UpdateRestApiResult& WithDescription(const char* value) { SetDescription(value); return *this;} ///@} ///@{ /** *The timestamp when the API was created.
*/ inline const Aws::Utils::DateTime& GetCreatedDate() const{ return m_createdDate; } inline void SetCreatedDate(const Aws::Utils::DateTime& value) { m_createdDate = value; } inline void SetCreatedDate(Aws::Utils::DateTime&& value) { m_createdDate = std::move(value); } inline UpdateRestApiResult& WithCreatedDate(const Aws::Utils::DateTime& value) { SetCreatedDate(value); return *this;} inline UpdateRestApiResult& WithCreatedDate(Aws::Utils::DateTime&& value) { SetCreatedDate(std::move(value)); return *this;} ///@} ///@{ /** *A version identifier for the API.
*/ inline const Aws::String& GetVersion() const{ return m_version; } inline void SetVersion(const Aws::String& value) { m_version = value; } inline void SetVersion(Aws::String&& value) { m_version = std::move(value); } inline void SetVersion(const char* value) { m_version.assign(value); } inline UpdateRestApiResult& WithVersion(const Aws::String& value) { SetVersion(value); return *this;} inline UpdateRestApiResult& WithVersion(Aws::String&& value) { SetVersion(std::move(value)); return *this;} inline UpdateRestApiResult& WithVersion(const char* value) { SetVersion(value); return *this;} ///@} ///@{ /** *The warning messages reported when failonwarnings is turned on
* during API import.
The list of binary media types supported by the RestApi. By default, the * RestApi supports only UTF-8-encoded text payloads.
*/ inline const Aws::VectorA 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; } inline void SetMinimumCompressionSize(int value) { m_minimumCompressionSize = value; } inline UpdateRestApiResult& 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 endpoint configuration of this RestApi showing the endpoint types of the * API.
*/ inline const EndpointConfiguration& GetEndpointConfiguration() const{ return m_endpointConfiguration; } inline void SetEndpointConfiguration(const EndpointConfiguration& value) { m_endpointConfiguration = value; } inline void SetEndpointConfiguration(EndpointConfiguration&& value) { m_endpointConfiguration = std::move(value); } inline UpdateRestApiResult& WithEndpointConfiguration(const EndpointConfiguration& value) { SetEndpointConfiguration(value); return *this;} inline UpdateRestApiResult& 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; } inline void SetPolicy(const Aws::String& value) { m_policy = value; } inline void SetPolicy(Aws::String&& value) { m_policy = std::move(value); } inline void SetPolicy(const char* value) { m_policy.assign(value); } inline UpdateRestApiResult& WithPolicy(const Aws::String& value) { SetPolicy(value); return *this;} inline UpdateRestApiResult& WithPolicy(Aws::String&& value) { SetPolicy(std::move(value)); return *this;} inline UpdateRestApiResult& WithPolicy(const char* value) { SetPolicy(value); return *this;} ///@} ///@{ /** *The collection of tags. Each tag element is associated with a given * resource.
*/ inline const Aws::MapSpecifies 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.
The API's root resource ID.
*/ inline const Aws::String& GetRootResourceId() const{ return m_rootResourceId; } inline void SetRootResourceId(const Aws::String& value) { m_rootResourceId = value; } inline void SetRootResourceId(Aws::String&& value) { m_rootResourceId = std::move(value); } inline void SetRootResourceId(const char* value) { m_rootResourceId.assign(value); } inline UpdateRestApiResult& WithRootResourceId(const Aws::String& value) { SetRootResourceId(value); return *this;} inline UpdateRestApiResult& WithRootResourceId(Aws::String&& value) { SetRootResourceId(std::move(value)); return *this;} inline UpdateRestApiResult& WithRootResourceId(const char* value) { SetRootResourceId(value); return *this;} ///@} ///@{ inline const Aws::String& GetRequestId() const{ return m_requestId; } inline void SetRequestId(const Aws::String& value) { m_requestId = value; } inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); } inline void SetRequestId(const char* value) { m_requestId.assign(value); } inline UpdateRestApiResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline UpdateRestApiResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline UpdateRestApiResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} ///@} private: Aws::String m_id; Aws::String m_name; Aws::String m_description; Aws::Utils::DateTime m_createdDate; Aws::String m_version; Aws::Vector