/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include namespace Aws { template class AmazonWebServiceResult; namespace Utils { namespace Json { class JsonValue; } // namespace Json } // namespace Utils namespace APIGateway { namespace Model { /** *

A snapshot of the documentation of an API.

See Also:

AWS * API Reference

*/ class CreateDocumentationVersionResult { public: AWS_APIGATEWAY_API CreateDocumentationVersionResult(); AWS_APIGATEWAY_API CreateDocumentationVersionResult(const Aws::AmazonWebServiceResult& result); AWS_APIGATEWAY_API CreateDocumentationVersionResult& operator=(const Aws::AmazonWebServiceResult& result); /** *

The version identifier of the API documentation snapshot.

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

The version identifier of the API documentation snapshot.

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

The version identifier of the API documentation snapshot.

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

The version identifier of the API documentation snapshot.

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

The version identifier of the API documentation snapshot.

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

The version identifier of the API documentation snapshot.

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

The version identifier of the API documentation snapshot.

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

The date when the API documentation snapshot is created.

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

The date when the API documentation snapshot is created.

*/ inline void SetCreatedDate(const Aws::Utils::DateTime& value) { m_createdDate = value; } /** *

The date when the API documentation snapshot is created.

*/ inline void SetCreatedDate(Aws::Utils::DateTime&& value) { m_createdDate = std::move(value); } /** *

The date when the API documentation snapshot is created.

*/ inline CreateDocumentationVersionResult& WithCreatedDate(const Aws::Utils::DateTime& value) { SetCreatedDate(value); return *this;} /** *

The date when the API documentation snapshot is created.

*/ inline CreateDocumentationVersionResult& WithCreatedDate(Aws::Utils::DateTime&& value) { SetCreatedDate(std::move(value)); return *this;} /** *

The description of the API documentation snapshot.

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

The description of the API documentation snapshot.

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

The description of the API documentation snapshot.

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

The description of the API documentation snapshot.

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

The description of the API documentation snapshot.

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

The description of the API documentation snapshot.

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

The description of the API documentation snapshot.

*/ inline CreateDocumentationVersionResult& WithDescription(const char* value) { SetDescription(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 CreateDocumentationVersionResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline CreateDocumentationVersionResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline CreateDocumentationVersionResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: Aws::String m_version; Aws::Utils::DateTime m_createdDate; Aws::String m_description; Aws::String m_requestId; }; } // namespace Model } // namespace APIGateway } // namespace Aws