/** * 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 namespace Aws { template class AmazonWebServiceResult; namespace Utils { namespace Json { class JsonValue; } // namespace Json } // namespace Utils namespace LexModelsV2 { namespace Model { class StartImportResult { public: AWS_LEXMODELSV2_API StartImportResult(); AWS_LEXMODELSV2_API StartImportResult(const Aws::AmazonWebServiceResult& result); AWS_LEXMODELSV2_API StartImportResult& operator=(const Aws::AmazonWebServiceResult& result); /** *

A unique identifier for the import.

*/ inline const Aws::String& GetImportId() const{ return m_importId; } /** *

A unique identifier for the import.

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

A unique identifier for the import.

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

A unique identifier for the import.

*/ inline void SetImportId(const char* value) { m_importId.assign(value); } /** *

A unique identifier for the import.

*/ inline StartImportResult& WithImportId(const Aws::String& value) { SetImportId(value); return *this;} /** *

A unique identifier for the import.

*/ inline StartImportResult& WithImportId(Aws::String&& value) { SetImportId(std::move(value)); return *this;} /** *

A unique identifier for the import.

*/ inline StartImportResult& WithImportId(const char* value) { SetImportId(value); return *this;} /** *

The parameters used when importing the resource.

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

The parameters used when importing the resource.

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

The parameters used when importing the resource.

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

The parameters used when importing the resource.

*/ inline StartImportResult& WithResourceSpecification(const ImportResourceSpecification& value) { SetResourceSpecification(value); return *this;} /** *

The parameters used when importing the resource.

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

The strategy used when there was a name conflict between the imported * resource and an existing resource. When the merge strategy is * FailOnConflict existing resources are not overwritten and the * import fails.

*/ inline const MergeStrategy& GetMergeStrategy() const{ return m_mergeStrategy; } /** *

The strategy used when there was a name conflict between the imported * resource and an existing resource. When the merge strategy is * FailOnConflict existing resources are not overwritten and the * import fails.

*/ inline void SetMergeStrategy(const MergeStrategy& value) { m_mergeStrategy = value; } /** *

The strategy used when there was a name conflict between the imported * resource and an existing resource. When the merge strategy is * FailOnConflict existing resources are not overwritten and the * import fails.

*/ inline void SetMergeStrategy(MergeStrategy&& value) { m_mergeStrategy = std::move(value); } /** *

The strategy used when there was a name conflict between the imported * resource and an existing resource. When the merge strategy is * FailOnConflict existing resources are not overwritten and the * import fails.

*/ inline StartImportResult& WithMergeStrategy(const MergeStrategy& value) { SetMergeStrategy(value); return *this;} /** *

The strategy used when there was a name conflict between the imported * resource and an existing resource. When the merge strategy is * FailOnConflict existing resources are not overwritten and the * import fails.

*/ inline StartImportResult& WithMergeStrategy(MergeStrategy&& value) { SetMergeStrategy(std::move(value)); return *this;} /** *

The current status of the import. When the status is Complete * the bot, bot alias, or custom vocabulary is ready to use.

*/ inline const ImportStatus& GetImportStatus() const{ return m_importStatus; } /** *

The current status of the import. When the status is Complete * the bot, bot alias, or custom vocabulary is ready to use.

*/ inline void SetImportStatus(const ImportStatus& value) { m_importStatus = value; } /** *

The current status of the import. When the status is Complete * the bot, bot alias, or custom vocabulary is ready to use.

*/ inline void SetImportStatus(ImportStatus&& value) { m_importStatus = std::move(value); } /** *

The current status of the import. When the status is Complete * the bot, bot alias, or custom vocabulary is ready to use.

*/ inline StartImportResult& WithImportStatus(const ImportStatus& value) { SetImportStatus(value); return *this;} /** *

The current status of the import. When the status is Complete * the bot, bot alias, or custom vocabulary is ready to use.

*/ inline StartImportResult& WithImportStatus(ImportStatus&& value) { SetImportStatus(std::move(value)); return *this;} /** *

The date and time that the import request was created.

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

The date and time that the import request was created.

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

The date and time that the import request was created.

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

The date and time that the import request was created.

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

The date and time that the import request was created.

*/ inline StartImportResult& WithCreationDateTime(Aws::Utils::DateTime&& value) { SetCreationDateTime(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 StartImportResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline StartImportResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline StartImportResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: Aws::String m_importId; ImportResourceSpecification m_resourceSpecification; MergeStrategy m_mergeStrategy; ImportStatus m_importStatus; Aws::Utils::DateTime m_creationDateTime; Aws::String m_requestId; }; } // namespace Model } // namespace LexModelsV2 } // namespace Aws