/** * 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 LexModelBuildingService { namespace Model { class GetImportResult { public: AWS_LEXMODELBUILDINGSERVICE_API GetImportResult(); AWS_LEXMODELBUILDINGSERVICE_API GetImportResult(const Aws::AmazonWebServiceResult& result); AWS_LEXMODELBUILDINGSERVICE_API GetImportResult& 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 GetImportResult& WithName(const Aws::String& value) { SetName(value); return *this;} /** *

The name given to the import job.

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

The name given to the import job.

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

The type of resource imported.

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

The type of resource imported.

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

The type of resource imported.

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

The type of resource imported.

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

The type of resource imported.

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

The action taken when there was a conflict between an existing resource and a * resource in the import file.

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

The action taken when there was a conflict between an existing resource and a * resource in the import file.

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

The action taken when there was a conflict between an existing resource and a * resource in the import file.

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

The action taken when there was a conflict between an existing resource and a * resource in the import file.

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

The action taken when there was a conflict between an existing resource and a * resource in the import file.

*/ inline GetImportResult& 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 GetImportResult& WithImportId(const Aws::String& value) { SetImportId(value); return *this;} /** *

The identifier for the specific import job.

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

The identifier for the specific import job.

*/ inline GetImportResult& 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 from the failureReason field.

*/ 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 from the failureReason field.

*/ 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 from the failureReason field.

*/ 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 from the failureReason field.

*/ inline GetImportResult& 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 from the failureReason field.

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

A string that describes why an import job failed to complete.

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

A string that describes why an import job failed to complete.

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

A string that describes why an import job failed to complete.

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

A string that describes why an import job failed to complete.

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

A string that describes why an import job failed to complete.

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

A string that describes why an import job failed to complete.

*/ inline GetImportResult& AddFailureReason(const Aws::String& value) { m_failureReason.push_back(value); return *this; } /** *

A string that describes why an import job failed to complete.

*/ inline GetImportResult& AddFailureReason(Aws::String&& value) { m_failureReason.push_back(std::move(value)); return *this; } /** *

A string that describes why an import job failed to complete.

*/ inline GetImportResult& AddFailureReason(const char* value) { m_failureReason.push_back(value); return *this; } /** *

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

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

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

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

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

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

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

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

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

*/ inline GetImportResult& 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 GetImportResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline GetImportResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline GetImportResult& 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_failureReason; Aws::Utils::DateTime m_createdDate; Aws::String m_requestId; }; } // namespace Model } // namespace LexModelBuildingService } // namespace Aws