/** * 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 { namespace kendra { namespace Model { /** */ class BatchDeleteDocumentRequest : public KendraRequest { public: AWS_KENDRA_API BatchDeleteDocumentRequest(); // 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 "BatchDeleteDocument"; } AWS_KENDRA_API Aws::String SerializePayload() const override; AWS_KENDRA_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

The identifier of the index that contains the documents to delete.

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

The identifier of the index that contains the documents to delete.

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

The identifier of the index that contains the documents to delete.

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

The identifier of the index that contains the documents to delete.

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

The identifier of the index that contains the documents to delete.

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

The identifier of the index that contains the documents to delete.

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

The identifier of the index that contains the documents to delete.

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

The identifier of the index that contains the documents to delete.

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

One or more identifiers for documents to delete from the index.

*/ inline const Aws::Vector& GetDocumentIdList() const{ return m_documentIdList; } /** *

One or more identifiers for documents to delete from the index.

*/ inline bool DocumentIdListHasBeenSet() const { return m_documentIdListHasBeenSet; } /** *

One or more identifiers for documents to delete from the index.

*/ inline void SetDocumentIdList(const Aws::Vector& value) { m_documentIdListHasBeenSet = true; m_documentIdList = value; } /** *

One or more identifiers for documents to delete from the index.

*/ inline void SetDocumentIdList(Aws::Vector&& value) { m_documentIdListHasBeenSet = true; m_documentIdList = std::move(value); } /** *

One or more identifiers for documents to delete from the index.

*/ inline BatchDeleteDocumentRequest& WithDocumentIdList(const Aws::Vector& value) { SetDocumentIdList(value); return *this;} /** *

One or more identifiers for documents to delete from the index.

*/ inline BatchDeleteDocumentRequest& WithDocumentIdList(Aws::Vector&& value) { SetDocumentIdList(std::move(value)); return *this;} /** *

One or more identifiers for documents to delete from the index.

*/ inline BatchDeleteDocumentRequest& AddDocumentIdList(const Aws::String& value) { m_documentIdListHasBeenSet = true; m_documentIdList.push_back(value); return *this; } /** *

One or more identifiers for documents to delete from the index.

*/ inline BatchDeleteDocumentRequest& AddDocumentIdList(Aws::String&& value) { m_documentIdListHasBeenSet = true; m_documentIdList.push_back(std::move(value)); return *this; } /** *

One or more identifiers for documents to delete from the index.

*/ inline BatchDeleteDocumentRequest& AddDocumentIdList(const char* value) { m_documentIdListHasBeenSet = true; m_documentIdList.push_back(value); return *this; } inline const DataSourceSyncJobMetricTarget& GetDataSourceSyncJobMetricTarget() const{ return m_dataSourceSyncJobMetricTarget; } inline bool DataSourceSyncJobMetricTargetHasBeenSet() const { return m_dataSourceSyncJobMetricTargetHasBeenSet; } inline void SetDataSourceSyncJobMetricTarget(const DataSourceSyncJobMetricTarget& value) { m_dataSourceSyncJobMetricTargetHasBeenSet = true; m_dataSourceSyncJobMetricTarget = value; } inline void SetDataSourceSyncJobMetricTarget(DataSourceSyncJobMetricTarget&& value) { m_dataSourceSyncJobMetricTargetHasBeenSet = true; m_dataSourceSyncJobMetricTarget = std::move(value); } inline BatchDeleteDocumentRequest& WithDataSourceSyncJobMetricTarget(const DataSourceSyncJobMetricTarget& value) { SetDataSourceSyncJobMetricTarget(value); return *this;} inline BatchDeleteDocumentRequest& WithDataSourceSyncJobMetricTarget(DataSourceSyncJobMetricTarget&& value) { SetDataSourceSyncJobMetricTarget(std::move(value)); return *this;} private: Aws::String m_indexId; bool m_indexIdHasBeenSet = false; Aws::Vector m_documentIdList; bool m_documentIdListHasBeenSet = false; DataSourceSyncJobMetricTarget m_dataSourceSyncJobMetricTarget; bool m_dataSourceSyncJobMetricTargetHasBeenSet = false; }; } // namespace Model } // namespace kendra } // namespace Aws