/** * 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 DescribeImportResult { public: AWS_LEXMODELSV2_API DescribeImportResult(); AWS_LEXMODELSV2_API DescribeImportResult(const Aws::AmazonWebServiceResult& result); AWS_LEXMODELSV2_API DescribeImportResult& operator=(const Aws::AmazonWebServiceResult& result); /** *

The unique identifier of the described import.

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

The unique identifier of the described import.

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

The unique identifier of the described import.

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

The unique identifier of the described import.

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

The unique identifier of the described import.

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

The unique identifier of the described import.

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

The unique identifier of the described import.

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

The specifications of the imported bot, bot locale, or custom vocabulary.

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

The specifications of the imported bot, bot locale, or custom vocabulary.

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

The specifications of the imported bot, bot locale, or custom vocabulary.

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

The specifications of the imported bot, bot locale, or custom vocabulary.

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

The specifications of the imported bot, bot locale, or custom vocabulary.

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

The unique identifier that Amazon Lex assigned to the resource created by the * import.

*/ inline const Aws::String& GetImportedResourceId() const{ return m_importedResourceId; } /** *

The unique identifier that Amazon Lex assigned to the resource created by the * import.

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

The unique identifier that Amazon Lex assigned to the resource created by the * import.

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

The unique identifier that Amazon Lex assigned to the resource created by the * import.

*/ inline void SetImportedResourceId(const char* value) { m_importedResourceId.assign(value); } /** *

The unique identifier that Amazon Lex assigned to the resource created by the * import.

*/ inline DescribeImportResult& WithImportedResourceId(const Aws::String& value) { SetImportedResourceId(value); return *this;} /** *

The unique identifier that Amazon Lex assigned to the resource created by the * import.

*/ inline DescribeImportResult& WithImportedResourceId(Aws::String&& value) { SetImportedResourceId(std::move(value)); return *this;} /** *

The unique identifier that Amazon Lex assigned to the resource created by the * import.

*/ inline DescribeImportResult& WithImportedResourceId(const char* value) { SetImportedResourceId(value); return *this;} /** *

The name of the imported resource.

*/ inline const Aws::String& GetImportedResourceName() const{ return m_importedResourceName; } /** *

The name of the imported resource.

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

The name of the imported resource.

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

The name of the imported resource.

*/ inline void SetImportedResourceName(const char* value) { m_importedResourceName.assign(value); } /** *

The name of the imported resource.

*/ inline DescribeImportResult& WithImportedResourceName(const Aws::String& value) { SetImportedResourceName(value); return *this;} /** *

The name of the imported resource.

*/ inline DescribeImportResult& WithImportedResourceName(Aws::String&& value) { SetImportedResourceName(std::move(value)); return *this;} /** *

The name of the imported resource.

*/ inline DescribeImportResult& WithImportedResourceName(const char* value) { SetImportedResourceName(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 DescribeImportResult& 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 DescribeImportResult& WithMergeStrategy(MergeStrategy&& value) { SetMergeStrategy(std::move(value)); return *this;} /** *

The status of the import process. When the status is Completed * the resource is imported and ready for use.

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

The status of the import process. When the status is Completed * the resource is imported and ready for use.

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

The status of the import process. When the status is Completed * the resource is imported and ready for use.

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

The status of the import process. When the status is Completed * the resource is imported and ready for use.

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

The status of the import process. When the status is Completed * the resource is imported and ready for use.

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

If the importStatus field is Failed, this provides * one or more reasons for the failure.

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

If the importStatus field is Failed, this provides * one or more reasons for the failure.

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

If the importStatus field is Failed, this provides * one or more reasons for the failure.

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

If the importStatus field is Failed, this provides * one or more reasons for the failure.

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

If the importStatus field is Failed, this provides * one or more reasons for the failure.

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

If the importStatus field is Failed, this provides * one or more reasons for the failure.

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

If the importStatus field is Failed, this provides * one or more reasons for the failure.

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

If the importStatus field is Failed, this provides * one or more reasons for the failure.

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

The date and time that the import was created.

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

The date and time that the import was created.

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

The date and time that the import was created.

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

The date and time that the import was created.

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

The date and time that the import was created.

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

The date and time that the import was last updated.

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

The date and time that the import was last updated.

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

The date and time that the import was last updated.

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

The date and time that the import was last updated.

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

The date and time that the import was last updated.

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