/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include namespace Aws { template class AmazonWebServiceResult; namespace Utils { namespace Json { class JsonValue; } // namespace Json } // namespace Utils namespace LexModelBuildingService { namespace Model { class GetExportResult { public: AWS_LEXMODELBUILDINGSERVICE_API GetExportResult(); AWS_LEXMODELBUILDINGSERVICE_API GetExportResult(const Aws::AmazonWebServiceResult& result); AWS_LEXMODELBUILDINGSERVICE_API GetExportResult& operator=(const Aws::AmazonWebServiceResult& result); /** *

The name of the bot being exported.

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

The name of the bot being exported.

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

The name of the bot being exported.

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

The name of the bot being exported.

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

The name of the bot being exported.

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

The name of the bot being exported.

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

The name of the bot being exported.

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

The version of the bot being exported.

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

The version of the bot being exported.

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

The version of the bot being exported.

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

The version of the bot being exported.

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

The version of the bot being exported.

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

The version of the bot being exported.

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

The version of the bot being exported.

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

The type of the exported resource.

*/ inline const ResourceType& GetResourceType() const{ return m_resourceType; } /** *

The type of the exported resource.

*/ inline void SetResourceType(const ResourceType& value) { m_resourceType = value; } /** *

The type of the exported resource.

*/ inline void SetResourceType(ResourceType&& value) { m_resourceType = std::move(value); } /** *

The type of the exported resource.

*/ inline GetExportResult& WithResourceType(const ResourceType& value) { SetResourceType(value); return *this;} /** *

The type of the exported resource.

*/ inline GetExportResult& WithResourceType(ResourceType&& value) { SetResourceType(std::move(value)); return *this;} /** *

The format of the exported data.

*/ inline const ExportType& GetExportType() const{ return m_exportType; } /** *

The format of the exported data.

*/ inline void SetExportType(const ExportType& value) { m_exportType = value; } /** *

The format of the exported data.

*/ inline void SetExportType(ExportType&& value) { m_exportType = std::move(value); } /** *

The format of the exported data.

*/ inline GetExportResult& WithExportType(const ExportType& value) { SetExportType(value); return *this;} /** *

The format of the exported data.

*/ inline GetExportResult& WithExportType(ExportType&& value) { SetExportType(std::move(value)); return *this;} /** *

The status of the export.

  • IN_PROGRESS - The * export is in progress.

  • READY - The export is * complete.

  • FAILED - The export could not be * completed.

*/ inline const ExportStatus& GetExportStatus() const{ return m_exportStatus; } /** *

The status of the export.

  • IN_PROGRESS - The * export is in progress.

  • READY - The export is * complete.

  • FAILED - The export could not be * completed.

*/ inline void SetExportStatus(const ExportStatus& value) { m_exportStatus = value; } /** *

The status of the export.

  • IN_PROGRESS - The * export is in progress.

  • READY - The export is * complete.

  • FAILED - The export could not be * completed.

*/ inline void SetExportStatus(ExportStatus&& value) { m_exportStatus = std::move(value); } /** *

The status of the export.

  • IN_PROGRESS - The * export is in progress.

  • READY - The export is * complete.

  • FAILED - The export could not be * completed.

*/ inline GetExportResult& WithExportStatus(const ExportStatus& value) { SetExportStatus(value); return *this;} /** *

The status of the export.

  • IN_PROGRESS - The * export is in progress.

  • READY - The export is * complete.

  • FAILED - The export could not be * completed.

*/ inline GetExportResult& WithExportStatus(ExportStatus&& value) { SetExportStatus(std::move(value)); return *this;} /** *

If status is FAILED, Amazon Lex provides the reason * that it failed to export the resource.

*/ inline const Aws::String& GetFailureReason() const{ return m_failureReason; } /** *

If status is FAILED, Amazon Lex provides the reason * that it failed to export the resource.

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

If status is FAILED, Amazon Lex provides the reason * that it failed to export the resource.

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

If status is FAILED, Amazon Lex provides the reason * that it failed to export the resource.

*/ inline void SetFailureReason(const char* value) { m_failureReason.assign(value); } /** *

If status is FAILED, Amazon Lex provides the reason * that it failed to export the resource.

*/ inline GetExportResult& WithFailureReason(const Aws::String& value) { SetFailureReason(value); return *this;} /** *

If status is FAILED, Amazon Lex provides the reason * that it failed to export the resource.

*/ inline GetExportResult& WithFailureReason(Aws::String&& value) { SetFailureReason(std::move(value)); return *this;} /** *

If status is FAILED, Amazon Lex provides the reason * that it failed to export the resource.

*/ inline GetExportResult& WithFailureReason(const char* value) { SetFailureReason(value); return *this;} /** *

An S3 pre-signed URL that provides the location of the exported resource. The * exported resource is a ZIP archive that contains the exported resource in JSON * format. The structure of the archive may change. Your code should not rely on * the archive structure.

*/ inline const Aws::String& GetUrl() const{ return m_url; } /** *

An S3 pre-signed URL that provides the location of the exported resource. The * exported resource is a ZIP archive that contains the exported resource in JSON * format. The structure of the archive may change. Your code should not rely on * the archive structure.

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

An S3 pre-signed URL that provides the location of the exported resource. The * exported resource is a ZIP archive that contains the exported resource in JSON * format. The structure of the archive may change. Your code should not rely on * the archive structure.

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

An S3 pre-signed URL that provides the location of the exported resource. The * exported resource is a ZIP archive that contains the exported resource in JSON * format. The structure of the archive may change. Your code should not rely on * the archive structure.

*/ inline void SetUrl(const char* value) { m_url.assign(value); } /** *

An S3 pre-signed URL that provides the location of the exported resource. The * exported resource is a ZIP archive that contains the exported resource in JSON * format. The structure of the archive may change. Your code should not rely on * the archive structure.

*/ inline GetExportResult& WithUrl(const Aws::String& value) { SetUrl(value); return *this;} /** *

An S3 pre-signed URL that provides the location of the exported resource. The * exported resource is a ZIP archive that contains the exported resource in JSON * format. The structure of the archive may change. Your code should not rely on * the archive structure.

*/ inline GetExportResult& WithUrl(Aws::String&& value) { SetUrl(std::move(value)); return *this;} /** *

An S3 pre-signed URL that provides the location of the exported resource. The * exported resource is a ZIP archive that contains the exported resource in JSON * format. The structure of the archive may change. Your code should not rely on * the archive structure.

*/ inline GetExportResult& WithUrl(const char* value) { SetUrl(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 GetExportResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline GetExportResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline GetExportResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: Aws::String m_name; Aws::String m_version; ResourceType m_resourceType; ExportType m_exportType; ExportStatus m_exportStatus; Aws::String m_failureReason; Aws::String m_url; Aws::String m_requestId; }; } // namespace Model } // namespace LexModelBuildingService } // namespace Aws