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

The name given to the import job.

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

The name given to the import job.

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

The name given to the import job.

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

The name given to the import job.

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

The name given to the import job.

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

The name given to the import job.

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

The name given to the import job.

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

The type of resource to import.

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

The type of resource to import.

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

The type of resource to import.

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

The type of resource to import.

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

The type of resource to import.

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

The action to take when there is a merge conflict.

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

The action to take when there is a merge conflict.

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

The action to take when there is a merge conflict.

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

The action to take when there is a merge conflict.

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

The action to take when there is a merge conflict.

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

The identifier for the specific import job.

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

The identifier for the specific import job.

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

The identifier for the specific import job.

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

The identifier for the specific import job.

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

The identifier for the specific import job.

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

The identifier for the specific import job.

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

The identifier for the specific import job.

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

The status of the import job. If the status is FAILED, you can * get the reason for the failure using the GetImport operation.

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

The status of the import job. If the status is FAILED, you can * get the reason for the failure using the GetImport operation.

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

The status of the import job. If the status is FAILED, you can * get the reason for the failure using the GetImport operation.

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

The status of the import job. If the status is FAILED, you can * get the reason for the failure using the GetImport operation.

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

The status of the import job. If the status is FAILED, you can * get the reason for the failure using the GetImport operation.

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

A list of tags added to the imported bot.

*/ inline const Aws::Vector& GetTags() const{ return m_tags; } /** *

A list of tags added to the imported bot.

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

A list of tags added to the imported bot.

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

A list of tags added to the imported bot.

*/ inline StartImportResult& WithTags(const Aws::Vector& value) { SetTags(value); return *this;} /** *

A list of tags added to the imported bot.

*/ inline StartImportResult& WithTags(Aws::Vector&& value) { SetTags(std::move(value)); return *this;} /** *

A list of tags added to the imported bot.

*/ inline StartImportResult& AddTags(const Tag& value) { m_tags.push_back(value); return *this; } /** *

A list of tags added to the imported bot.

*/ inline StartImportResult& AddTags(Tag&& value) { m_tags.push_back(std::move(value)); return *this; } /** *

A timestamp for the date and time that the import job was requested.

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

A timestamp for the date and time that the import job was requested.

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

A timestamp for the date and time that the import job was requested.

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

A timestamp for the date and time that the import job was requested.

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

A timestamp for the date and time that the import job was requested.

*/ inline StartImportResult& WithCreatedDate(Aws::Utils::DateTime&& value) { SetCreatedDate(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_name; ResourceType m_resourceType; MergeStrategy m_mergeStrategy; Aws::String m_importId; ImportStatus m_importStatus; Aws::Vector m_tags; Aws::Utils::DateTime m_createdDate; Aws::String m_requestId; }; } // namespace Model } // namespace LexModelBuildingService } // namespace Aws