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

The unique identifier of the described export.

*/ inline const Aws::String& GetExportId() const{ return m_exportId; } /** *

The unique identifier of the described export.

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

The unique identifier of the described export.

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

The unique identifier of the described export.

*/ inline void SetExportId(const char* value) { m_exportId.assign(value); } /** *

The unique identifier of the described export.

*/ inline DescribeExportResult& WithExportId(const Aws::String& value) { SetExportId(value); return *this;} /** *

The unique identifier of the described export.

*/ inline DescribeExportResult& WithExportId(Aws::String&& value) { SetExportId(std::move(value)); return *this;} /** *

The unique identifier of the described export.

*/ inline DescribeExportResult& WithExportId(const char* value) { SetExportId(value); return *this;} /** *

The bot, bot ID, and optional locale ID of the exported bot or bot * locale.

*/ inline const ExportResourceSpecification& GetResourceSpecification() const{ return m_resourceSpecification; } /** *

The bot, bot ID, and optional locale ID of the exported bot or bot * locale.

*/ inline void SetResourceSpecification(const ExportResourceSpecification& value) { m_resourceSpecification = value; } /** *

The bot, bot ID, and optional locale ID of the exported bot or bot * locale.

*/ inline void SetResourceSpecification(ExportResourceSpecification&& value) { m_resourceSpecification = std::move(value); } /** *

The bot, bot ID, and optional locale ID of the exported bot or bot * locale.

*/ inline DescribeExportResult& WithResourceSpecification(const ExportResourceSpecification& value) { SetResourceSpecification(value); return *this;} /** *

The bot, bot ID, and optional locale ID of the exported bot or bot * locale.

*/ inline DescribeExportResult& WithResourceSpecification(ExportResourceSpecification&& value) { SetResourceSpecification(std::move(value)); return *this;} /** *

The file format used in the files that describe the resource.

*/ inline const ImportExportFileFormat& GetFileFormat() const{ return m_fileFormat; } /** *

The file format used in the files that describe the resource.

*/ inline void SetFileFormat(const ImportExportFileFormat& value) { m_fileFormat = value; } /** *

The file format used in the files that describe the resource.

*/ inline void SetFileFormat(ImportExportFileFormat&& value) { m_fileFormat = std::move(value); } /** *

The file format used in the files that describe the resource.

*/ inline DescribeExportResult& WithFileFormat(const ImportExportFileFormat& value) { SetFileFormat(value); return *this;} /** *

The file format used in the files that describe the resource.

*/ inline DescribeExportResult& WithFileFormat(ImportExportFileFormat&& value) { SetFileFormat(std::move(value)); return *this;} /** *

The status of the export. When the status is Complete the export * archive file is available for download.

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

The status of the export. When the status is Complete the export * archive file is available for download.

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

The status of the export. When the status is Complete the export * archive file is available for download.

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

The status of the export. When the status is Complete the export * archive file is available for download.

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

The status of the export. When the status is Complete the export * archive file is available for download.

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

If the exportStatus is failed, contains one or more reasons why * the export could not be completed.

*/ inline const Aws::Vector& GetFailureReasons() const{ return m_failureReasons; } /** *

If the exportStatus is failed, contains one or more reasons why * the export could not be completed.

*/ inline void SetFailureReasons(const Aws::Vector& value) { m_failureReasons = value; } /** *

If the exportStatus is failed, contains one or more reasons why * the export could not be completed.

*/ inline void SetFailureReasons(Aws::Vector&& value) { m_failureReasons = std::move(value); } /** *

If the exportStatus is failed, contains one or more reasons why * the export could not be completed.

*/ inline DescribeExportResult& WithFailureReasons(const Aws::Vector& value) { SetFailureReasons(value); return *this;} /** *

If the exportStatus is failed, contains one or more reasons why * the export could not be completed.

*/ inline DescribeExportResult& WithFailureReasons(Aws::Vector&& value) { SetFailureReasons(std::move(value)); return *this;} /** *

If the exportStatus is failed, contains one or more reasons why * the export could not be completed.

*/ inline DescribeExportResult& AddFailureReasons(const Aws::String& value) { m_failureReasons.push_back(value); return *this; } /** *

If the exportStatus is failed, contains one or more reasons why * the export could not be completed.

*/ inline DescribeExportResult& AddFailureReasons(Aws::String&& value) { m_failureReasons.push_back(std::move(value)); return *this; } /** *

If the exportStatus is failed, contains one or more reasons why * the export could not be completed.

*/ inline DescribeExportResult& AddFailureReasons(const char* value) { m_failureReasons.push_back(value); return *this; } /** *

A pre-signed S3 URL that points to the bot or bot locale archive. The URL is * only available for 5 minutes after calling the DescribeExport * operation.

*/ inline const Aws::String& GetDownloadUrl() const{ return m_downloadUrl; } /** *

A pre-signed S3 URL that points to the bot or bot locale archive. The URL is * only available for 5 minutes after calling the DescribeExport * operation.

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

A pre-signed S3 URL that points to the bot or bot locale archive. The URL is * only available for 5 minutes after calling the DescribeExport * operation.

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

A pre-signed S3 URL that points to the bot or bot locale archive. The URL is * only available for 5 minutes after calling the DescribeExport * operation.

*/ inline void SetDownloadUrl(const char* value) { m_downloadUrl.assign(value); } /** *

A pre-signed S3 URL that points to the bot or bot locale archive. The URL is * only available for 5 minutes after calling the DescribeExport * operation.

*/ inline DescribeExportResult& WithDownloadUrl(const Aws::String& value) { SetDownloadUrl(value); return *this;} /** *

A pre-signed S3 URL that points to the bot or bot locale archive. The URL is * only available for 5 minutes after calling the DescribeExport * operation.

*/ inline DescribeExportResult& WithDownloadUrl(Aws::String&& value) { SetDownloadUrl(std::move(value)); return *this;} /** *

A pre-signed S3 URL that points to the bot or bot locale archive. The URL is * only available for 5 minutes after calling the DescribeExport * operation.

*/ inline DescribeExportResult& WithDownloadUrl(const char* value) { SetDownloadUrl(value); return *this;} /** *

The date and time that the export was created.

*/ inline const Aws::Utils::DateTime& GetCreationDateTime() const{ return m_creationDateTime; } /** *

The date and time that the export was created.

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

The date and time that the export was created.

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

The date and time that the export was created.

*/ inline DescribeExportResult& WithCreationDateTime(const Aws::Utils::DateTime& value) { SetCreationDateTime(value); return *this;} /** *

The date and time that the export was created.

*/ inline DescribeExportResult& WithCreationDateTime(Aws::Utils::DateTime&& value) { SetCreationDateTime(std::move(value)); return *this;} /** *

The last date and time that the export was updated.

*/ inline const Aws::Utils::DateTime& GetLastUpdatedDateTime() const{ return m_lastUpdatedDateTime; } /** *

The last date and time that the export was updated.

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

The last date and time that the export was updated.

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

The last date and time that the export was updated.

*/ inline DescribeExportResult& WithLastUpdatedDateTime(const Aws::Utils::DateTime& value) { SetLastUpdatedDateTime(value); return *this;} /** *

The last date and time that the export was updated.

*/ inline DescribeExportResult& WithLastUpdatedDateTime(Aws::Utils::DateTime&& value) { SetLastUpdatedDateTime(std::move(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 DescribeExportResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline DescribeExportResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline DescribeExportResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: Aws::String m_exportId; ExportResourceSpecification m_resourceSpecification; ImportExportFileFormat m_fileFormat; ExportStatus m_exportStatus; Aws::Vector m_failureReasons; Aws::String m_downloadUrl; Aws::Utils::DateTime m_creationDateTime; Aws::Utils::DateTime m_lastUpdatedDateTime; Aws::String m_requestId; }; } // namespace Model } // namespace LexModelsV2 } // namespace Aws