This repository has been archived on 2025-09-14. You can view files and clone it, but cannot push or open issues or pull requests.
Files
pxz-hos-client-cpp-module/support/aws-sdk-cpp-master/aws-cpp-sdk-kendra/include/aws/kendra/model/BatchPutDocumentResult.h

121 lines
5.7 KiB
C
Raw Normal View History

/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/kendra/Kendra_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/kendra/model/BatchPutDocumentResponseFailedDocument.h>
#include <utility>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace kendra
{
namespace Model
{
class AWS_KENDRA_API BatchPutDocumentResult
{
public:
BatchPutDocumentResult();
BatchPutDocumentResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
BatchPutDocumentResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* <p>A list of documents that were not added to the index because the document
* failed a validation check. Each document contains an error message that
* indicates why the document couldn't be added to the index.</p> <p>If there was
* an error adding a document to an index the error is reported in your AWS
* CloudWatch log. For more information, see <a
* href="https://docs.aws.amazon.com/kendra/latest/dg/cloudwatch-logs.html">Monitoring
* Amazon Kendra with Amazon CloudWatch Logs</a> </p>
*/
inline const Aws::Vector<BatchPutDocumentResponseFailedDocument>& GetFailedDocuments() const{ return m_failedDocuments; }
/**
* <p>A list of documents that were not added to the index because the document
* failed a validation check. Each document contains an error message that
* indicates why the document couldn't be added to the index.</p> <p>If there was
* an error adding a document to an index the error is reported in your AWS
* CloudWatch log. For more information, see <a
* href="https://docs.aws.amazon.com/kendra/latest/dg/cloudwatch-logs.html">Monitoring
* Amazon Kendra with Amazon CloudWatch Logs</a> </p>
*/
inline void SetFailedDocuments(const Aws::Vector<BatchPutDocumentResponseFailedDocument>& value) { m_failedDocuments = value; }
/**
* <p>A list of documents that were not added to the index because the document
* failed a validation check. Each document contains an error message that
* indicates why the document couldn't be added to the index.</p> <p>If there was
* an error adding a document to an index the error is reported in your AWS
* CloudWatch log. For more information, see <a
* href="https://docs.aws.amazon.com/kendra/latest/dg/cloudwatch-logs.html">Monitoring
* Amazon Kendra with Amazon CloudWatch Logs</a> </p>
*/
inline void SetFailedDocuments(Aws::Vector<BatchPutDocumentResponseFailedDocument>&& value) { m_failedDocuments = std::move(value); }
/**
* <p>A list of documents that were not added to the index because the document
* failed a validation check. Each document contains an error message that
* indicates why the document couldn't be added to the index.</p> <p>If there was
* an error adding a document to an index the error is reported in your AWS
* CloudWatch log. For more information, see <a
* href="https://docs.aws.amazon.com/kendra/latest/dg/cloudwatch-logs.html">Monitoring
* Amazon Kendra with Amazon CloudWatch Logs</a> </p>
*/
inline BatchPutDocumentResult& WithFailedDocuments(const Aws::Vector<BatchPutDocumentResponseFailedDocument>& value) { SetFailedDocuments(value); return *this;}
/**
* <p>A list of documents that were not added to the index because the document
* failed a validation check. Each document contains an error message that
* indicates why the document couldn't be added to the index.</p> <p>If there was
* an error adding a document to an index the error is reported in your AWS
* CloudWatch log. For more information, see <a
* href="https://docs.aws.amazon.com/kendra/latest/dg/cloudwatch-logs.html">Monitoring
* Amazon Kendra with Amazon CloudWatch Logs</a> </p>
*/
inline BatchPutDocumentResult& WithFailedDocuments(Aws::Vector<BatchPutDocumentResponseFailedDocument>&& value) { SetFailedDocuments(std::move(value)); return *this;}
/**
* <p>A list of documents that were not added to the index because the document
* failed a validation check. Each document contains an error message that
* indicates why the document couldn't be added to the index.</p> <p>If there was
* an error adding a document to an index the error is reported in your AWS
* CloudWatch log. For more information, see <a
* href="https://docs.aws.amazon.com/kendra/latest/dg/cloudwatch-logs.html">Monitoring
* Amazon Kendra with Amazon CloudWatch Logs</a> </p>
*/
inline BatchPutDocumentResult& AddFailedDocuments(const BatchPutDocumentResponseFailedDocument& value) { m_failedDocuments.push_back(value); return *this; }
/**
* <p>A list of documents that were not added to the index because the document
* failed a validation check. Each document contains an error message that
* indicates why the document couldn't be added to the index.</p> <p>If there was
* an error adding a document to an index the error is reported in your AWS
* CloudWatch log. For more information, see <a
* href="https://docs.aws.amazon.com/kendra/latest/dg/cloudwatch-logs.html">Monitoring
* Amazon Kendra with Amazon CloudWatch Logs</a> </p>
*/
inline BatchPutDocumentResult& AddFailedDocuments(BatchPutDocumentResponseFailedDocument&& value) { m_failedDocuments.push_back(std::move(value)); return *this; }
private:
Aws::Vector<BatchPutDocumentResponseFailedDocument> m_failedDocuments;
};
} // namespace Model
} // namespace kendra
} // namespace Aws