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

A list of documents that Amazon Kendra couldn't get the status for. The list * includes the ID of the document and the reason that the status couldn't be * found.

*/ inline const Aws::Vector& GetErrors() const{ return m_errors; } /** *

A list of documents that Amazon Kendra couldn't get the status for. The list * includes the ID of the document and the reason that the status couldn't be * found.

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

A list of documents that Amazon Kendra couldn't get the status for. The list * includes the ID of the document and the reason that the status couldn't be * found.

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

A list of documents that Amazon Kendra couldn't get the status for. The list * includes the ID of the document and the reason that the status couldn't be * found.

*/ inline BatchGetDocumentStatusResult& WithErrors(const Aws::Vector& value) { SetErrors(value); return *this;} /** *

A list of documents that Amazon Kendra couldn't get the status for. The list * includes the ID of the document and the reason that the status couldn't be * found.

*/ inline BatchGetDocumentStatusResult& WithErrors(Aws::Vector&& value) { SetErrors(std::move(value)); return *this;} /** *

A list of documents that Amazon Kendra couldn't get the status for. The list * includes the ID of the document and the reason that the status couldn't be * found.

*/ inline BatchGetDocumentStatusResult& AddErrors(const BatchGetDocumentStatusResponseError& value) { m_errors.push_back(value); return *this; } /** *

A list of documents that Amazon Kendra couldn't get the status for. The list * includes the ID of the document and the reason that the status couldn't be * found.

*/ inline BatchGetDocumentStatusResult& AddErrors(BatchGetDocumentStatusResponseError&& value) { m_errors.push_back(std::move(value)); return *this; } /** *

The status of documents. The status indicates if the document is waiting to * be indexed, is in the process of indexing, has completed indexing, or failed * indexing. If a document failed indexing, the status provides the reason why.

*/ inline const Aws::Vector& GetDocumentStatusList() const{ return m_documentStatusList; } /** *

The status of documents. The status indicates if the document is waiting to * be indexed, is in the process of indexing, has completed indexing, or failed * indexing. If a document failed indexing, the status provides the reason why.

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

The status of documents. The status indicates if the document is waiting to * be indexed, is in the process of indexing, has completed indexing, or failed * indexing. If a document failed indexing, the status provides the reason why.

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

The status of documents. The status indicates if the document is waiting to * be indexed, is in the process of indexing, has completed indexing, or failed * indexing. If a document failed indexing, the status provides the reason why.

*/ inline BatchGetDocumentStatusResult& WithDocumentStatusList(const Aws::Vector& value) { SetDocumentStatusList(value); return *this;} /** *

The status of documents. The status indicates if the document is waiting to * be indexed, is in the process of indexing, has completed indexing, or failed * indexing. If a document failed indexing, the status provides the reason why.

*/ inline BatchGetDocumentStatusResult& WithDocumentStatusList(Aws::Vector&& value) { SetDocumentStatusList(std::move(value)); return *this;} /** *

The status of documents. The status indicates if the document is waiting to * be indexed, is in the process of indexing, has completed indexing, or failed * indexing. If a document failed indexing, the status provides the reason why.

*/ inline BatchGetDocumentStatusResult& AddDocumentStatusList(const Status& value) { m_documentStatusList.push_back(value); return *this; } /** *

The status of documents. The status indicates if the document is waiting to * be indexed, is in the process of indexing, has completed indexing, or failed * indexing. If a document failed indexing, the status provides the reason why.

*/ inline BatchGetDocumentStatusResult& AddDocumentStatusList(Status&& value) { m_documentStatusList.push_back(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 BatchGetDocumentStatusResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline BatchGetDocumentStatusResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline BatchGetDocumentStatusResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: Aws::Vector m_errors; Aws::Vector m_documentStatusList; Aws::String m_requestId; }; } // namespace Model } // namespace kendra } // namespace Aws