/** * 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 namespace Aws { namespace kendra { namespace Model { /** */ class BatchPutDocumentRequest : public KendraRequest { public: AWS_KENDRA_API BatchPutDocumentRequest(); // Service request name is the Operation name which will send this request out, // each operation should has unique request name, so that we can get operation's name from this request. // Note: this is not true for response, multiple operations may have the same response name, // so we can not get operation's name from response. inline virtual const char* GetServiceRequestName() const override { return "BatchPutDocument"; } AWS_KENDRA_API Aws::String SerializePayload() const override; AWS_KENDRA_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

The identifier of the index to add the documents to. You need to create the * index first using the CreateIndex API.

*/ inline const Aws::String& GetIndexId() const{ return m_indexId; } /** *

The identifier of the index to add the documents to. You need to create the * index first using the CreateIndex API.

*/ inline bool IndexIdHasBeenSet() const { return m_indexIdHasBeenSet; } /** *

The identifier of the index to add the documents to. You need to create the * index first using the CreateIndex API.

*/ inline void SetIndexId(const Aws::String& value) { m_indexIdHasBeenSet = true; m_indexId = value; } /** *

The identifier of the index to add the documents to. You need to create the * index first using the CreateIndex API.

*/ inline void SetIndexId(Aws::String&& value) { m_indexIdHasBeenSet = true; m_indexId = std::move(value); } /** *

The identifier of the index to add the documents to. You need to create the * index first using the CreateIndex API.

*/ inline void SetIndexId(const char* value) { m_indexIdHasBeenSet = true; m_indexId.assign(value); } /** *

The identifier of the index to add the documents to. You need to create the * index first using the CreateIndex API.

*/ inline BatchPutDocumentRequest& WithIndexId(const Aws::String& value) { SetIndexId(value); return *this;} /** *

The identifier of the index to add the documents to. You need to create the * index first using the CreateIndex API.

*/ inline BatchPutDocumentRequest& WithIndexId(Aws::String&& value) { SetIndexId(std::move(value)); return *this;} /** *

The identifier of the index to add the documents to. You need to create the * index first using the CreateIndex API.

*/ inline BatchPutDocumentRequest& WithIndexId(const char* value) { SetIndexId(value); return *this;} /** *

The Amazon Resource Name (ARN) of an IAM role with permission to access your * S3 bucket. For more information, see IAM access * roles for Amazon Kendra.

*/ inline const Aws::String& GetRoleArn() const{ return m_roleArn; } /** *

The Amazon Resource Name (ARN) of an IAM role with permission to access your * S3 bucket. For more information, see IAM access * roles for Amazon Kendra.

*/ inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; } /** *

The Amazon Resource Name (ARN) of an IAM role with permission to access your * S3 bucket. For more information, see IAM access * roles for Amazon Kendra.

*/ inline void SetRoleArn(const Aws::String& value) { m_roleArnHasBeenSet = true; m_roleArn = value; } /** *

The Amazon Resource Name (ARN) of an IAM role with permission to access your * S3 bucket. For more information, see IAM access * roles for Amazon Kendra.

*/ inline void SetRoleArn(Aws::String&& value) { m_roleArnHasBeenSet = true; m_roleArn = std::move(value); } /** *

The Amazon Resource Name (ARN) of an IAM role with permission to access your * S3 bucket. For more information, see IAM access * roles for Amazon Kendra.

*/ inline void SetRoleArn(const char* value) { m_roleArnHasBeenSet = true; m_roleArn.assign(value); } /** *

The Amazon Resource Name (ARN) of an IAM role with permission to access your * S3 bucket. For more information, see IAM access * roles for Amazon Kendra.

*/ inline BatchPutDocumentRequest& WithRoleArn(const Aws::String& value) { SetRoleArn(value); return *this;} /** *

The Amazon Resource Name (ARN) of an IAM role with permission to access your * S3 bucket. For more information, see IAM access * roles for Amazon Kendra.

*/ inline BatchPutDocumentRequest& WithRoleArn(Aws::String&& value) { SetRoleArn(std::move(value)); return *this;} /** *

The Amazon Resource Name (ARN) of an IAM role with permission to access your * S3 bucket. For more information, see IAM access * roles for Amazon Kendra.

*/ inline BatchPutDocumentRequest& WithRoleArn(const char* value) { SetRoleArn(value); return *this;} /** *

One or more documents to add to the index.

Documents have the * following file size limits.

  • 50 MB total size for any file

    *
  • 5 MB extracted text for any file

For more * information, see Quotas.

*/ inline const Aws::Vector& GetDocuments() const{ return m_documents; } /** *

One or more documents to add to the index.

Documents have the * following file size limits.

  • 50 MB total size for any file

    *
  • 5 MB extracted text for any file

For more * information, see Quotas.

*/ inline bool DocumentsHasBeenSet() const { return m_documentsHasBeenSet; } /** *

One or more documents to add to the index.

Documents have the * following file size limits.

  • 50 MB total size for any file

    *
  • 5 MB extracted text for any file

For more * information, see Quotas.

*/ inline void SetDocuments(const Aws::Vector& value) { m_documentsHasBeenSet = true; m_documents = value; } /** *

One or more documents to add to the index.

Documents have the * following file size limits.

  • 50 MB total size for any file

    *
  • 5 MB extracted text for any file

For more * information, see Quotas.

*/ inline void SetDocuments(Aws::Vector&& value) { m_documentsHasBeenSet = true; m_documents = std::move(value); } /** *

One or more documents to add to the index.

Documents have the * following file size limits.

  • 50 MB total size for any file

    *
  • 5 MB extracted text for any file

For more * information, see Quotas.

*/ inline BatchPutDocumentRequest& WithDocuments(const Aws::Vector& value) { SetDocuments(value); return *this;} /** *

One or more documents to add to the index.

Documents have the * following file size limits.

  • 50 MB total size for any file

    *
  • 5 MB extracted text for any file

For more * information, see Quotas.

*/ inline BatchPutDocumentRequest& WithDocuments(Aws::Vector&& value) { SetDocuments(std::move(value)); return *this;} /** *

One or more documents to add to the index.

Documents have the * following file size limits.

  • 50 MB total size for any file

    *
  • 5 MB extracted text for any file

For more * information, see Quotas.

*/ inline BatchPutDocumentRequest& AddDocuments(const Document& value) { m_documentsHasBeenSet = true; m_documents.push_back(value); return *this; } /** *

One or more documents to add to the index.

Documents have the * following file size limits.

  • 50 MB total size for any file

    *
  • 5 MB extracted text for any file

For more * information, see Quotas.

*/ inline BatchPutDocumentRequest& AddDocuments(Document&& value) { m_documentsHasBeenSet = true; m_documents.push_back(std::move(value)); return *this; } /** *

Configuration information for altering your document metadata and content * during the document ingestion process when you use the * BatchPutDocument API.

For more information on how to create, * modify and delete document metadata, or make other content alterations when you * ingest documents into Amazon Kendra, see Customizing * document metadata during the ingestion process.

*/ inline const CustomDocumentEnrichmentConfiguration& GetCustomDocumentEnrichmentConfiguration() const{ return m_customDocumentEnrichmentConfiguration; } /** *

Configuration information for altering your document metadata and content * during the document ingestion process when you use the * BatchPutDocument API.

For more information on how to create, * modify and delete document metadata, or make other content alterations when you * ingest documents into Amazon Kendra, see Customizing * document metadata during the ingestion process.

*/ inline bool CustomDocumentEnrichmentConfigurationHasBeenSet() const { return m_customDocumentEnrichmentConfigurationHasBeenSet; } /** *

Configuration information for altering your document metadata and content * during the document ingestion process when you use the * BatchPutDocument API.

For more information on how to create, * modify and delete document metadata, or make other content alterations when you * ingest documents into Amazon Kendra, see Customizing * document metadata during the ingestion process.

*/ inline void SetCustomDocumentEnrichmentConfiguration(const CustomDocumentEnrichmentConfiguration& value) { m_customDocumentEnrichmentConfigurationHasBeenSet = true; m_customDocumentEnrichmentConfiguration = value; } /** *

Configuration information for altering your document metadata and content * during the document ingestion process when you use the * BatchPutDocument API.

For more information on how to create, * modify and delete document metadata, or make other content alterations when you * ingest documents into Amazon Kendra, see Customizing * document metadata during the ingestion process.

*/ inline void SetCustomDocumentEnrichmentConfiguration(CustomDocumentEnrichmentConfiguration&& value) { m_customDocumentEnrichmentConfigurationHasBeenSet = true; m_customDocumentEnrichmentConfiguration = std::move(value); } /** *

Configuration information for altering your document metadata and content * during the document ingestion process when you use the * BatchPutDocument API.

For more information on how to create, * modify and delete document metadata, or make other content alterations when you * ingest documents into Amazon Kendra, see Customizing * document metadata during the ingestion process.

*/ inline BatchPutDocumentRequest& WithCustomDocumentEnrichmentConfiguration(const CustomDocumentEnrichmentConfiguration& value) { SetCustomDocumentEnrichmentConfiguration(value); return *this;} /** *

Configuration information for altering your document metadata and content * during the document ingestion process when you use the * BatchPutDocument API.

For more information on how to create, * modify and delete document metadata, or make other content alterations when you * ingest documents into Amazon Kendra, see Customizing * document metadata during the ingestion process.

*/ inline BatchPutDocumentRequest& WithCustomDocumentEnrichmentConfiguration(CustomDocumentEnrichmentConfiguration&& value) { SetCustomDocumentEnrichmentConfiguration(std::move(value)); return *this;} private: Aws::String m_indexId; bool m_indexIdHasBeenSet = false; Aws::String m_roleArn; bool m_roleArnHasBeenSet = false; Aws::Vector m_documents; bool m_documentsHasBeenSet = false; CustomDocumentEnrichmentConfiguration m_customDocumentEnrichmentConfiguration; bool m_customDocumentEnrichmentConfigurationHasBeenSet = false; }; } // namespace Model } // namespace kendra } // namespace Aws