/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace kendra { namespace Model { /** *

Maps a batch delete document request to a specific data source sync job. This * is optional and should only be supplied when documents are deleted by a data * source connector.

See Also:

AWS * API Reference

*/ class DataSourceSyncJobMetrics { public: AWS_KENDRA_API DataSourceSyncJobMetrics(); AWS_KENDRA_API DataSourceSyncJobMetrics(Aws::Utils::Json::JsonView jsonValue); AWS_KENDRA_API DataSourceSyncJobMetrics& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_KENDRA_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

The number of documents added from the data source up to now in the data * source sync.

*/ inline const Aws::String& GetDocumentsAdded() const{ return m_documentsAdded; } /** *

The number of documents added from the data source up to now in the data * source sync.

*/ inline bool DocumentsAddedHasBeenSet() const { return m_documentsAddedHasBeenSet; } /** *

The number of documents added from the data source up to now in the data * source sync.

*/ inline void SetDocumentsAdded(const Aws::String& value) { m_documentsAddedHasBeenSet = true; m_documentsAdded = value; } /** *

The number of documents added from the data source up to now in the data * source sync.

*/ inline void SetDocumentsAdded(Aws::String&& value) { m_documentsAddedHasBeenSet = true; m_documentsAdded = std::move(value); } /** *

The number of documents added from the data source up to now in the data * source sync.

*/ inline void SetDocumentsAdded(const char* value) { m_documentsAddedHasBeenSet = true; m_documentsAdded.assign(value); } /** *

The number of documents added from the data source up to now in the data * source sync.

*/ inline DataSourceSyncJobMetrics& WithDocumentsAdded(const Aws::String& value) { SetDocumentsAdded(value); return *this;} /** *

The number of documents added from the data source up to now in the data * source sync.

*/ inline DataSourceSyncJobMetrics& WithDocumentsAdded(Aws::String&& value) { SetDocumentsAdded(std::move(value)); return *this;} /** *

The number of documents added from the data source up to now in the data * source sync.

*/ inline DataSourceSyncJobMetrics& WithDocumentsAdded(const char* value) { SetDocumentsAdded(value); return *this;} /** *

The number of documents modified in the data source up to now in the data * source sync run.

*/ inline const Aws::String& GetDocumentsModified() const{ return m_documentsModified; } /** *

The number of documents modified in the data source up to now in the data * source sync run.

*/ inline bool DocumentsModifiedHasBeenSet() const { return m_documentsModifiedHasBeenSet; } /** *

The number of documents modified in the data source up to now in the data * source sync run.

*/ inline void SetDocumentsModified(const Aws::String& value) { m_documentsModifiedHasBeenSet = true; m_documentsModified = value; } /** *

The number of documents modified in the data source up to now in the data * source sync run.

*/ inline void SetDocumentsModified(Aws::String&& value) { m_documentsModifiedHasBeenSet = true; m_documentsModified = std::move(value); } /** *

The number of documents modified in the data source up to now in the data * source sync run.

*/ inline void SetDocumentsModified(const char* value) { m_documentsModifiedHasBeenSet = true; m_documentsModified.assign(value); } /** *

The number of documents modified in the data source up to now in the data * source sync run.

*/ inline DataSourceSyncJobMetrics& WithDocumentsModified(const Aws::String& value) { SetDocumentsModified(value); return *this;} /** *

The number of documents modified in the data source up to now in the data * source sync run.

*/ inline DataSourceSyncJobMetrics& WithDocumentsModified(Aws::String&& value) { SetDocumentsModified(std::move(value)); return *this;} /** *

The number of documents modified in the data source up to now in the data * source sync run.

*/ inline DataSourceSyncJobMetrics& WithDocumentsModified(const char* value) { SetDocumentsModified(value); return *this;} /** *

The number of documents deleted from the data source up to now in the data * source sync run.

*/ inline const Aws::String& GetDocumentsDeleted() const{ return m_documentsDeleted; } /** *

The number of documents deleted from the data source up to now in the data * source sync run.

*/ inline bool DocumentsDeletedHasBeenSet() const { return m_documentsDeletedHasBeenSet; } /** *

The number of documents deleted from the data source up to now in the data * source sync run.

*/ inline void SetDocumentsDeleted(const Aws::String& value) { m_documentsDeletedHasBeenSet = true; m_documentsDeleted = value; } /** *

The number of documents deleted from the data source up to now in the data * source sync run.

*/ inline void SetDocumentsDeleted(Aws::String&& value) { m_documentsDeletedHasBeenSet = true; m_documentsDeleted = std::move(value); } /** *

The number of documents deleted from the data source up to now in the data * source sync run.

*/ inline void SetDocumentsDeleted(const char* value) { m_documentsDeletedHasBeenSet = true; m_documentsDeleted.assign(value); } /** *

The number of documents deleted from the data source up to now in the data * source sync run.

*/ inline DataSourceSyncJobMetrics& WithDocumentsDeleted(const Aws::String& value) { SetDocumentsDeleted(value); return *this;} /** *

The number of documents deleted from the data source up to now in the data * source sync run.

*/ inline DataSourceSyncJobMetrics& WithDocumentsDeleted(Aws::String&& value) { SetDocumentsDeleted(std::move(value)); return *this;} /** *

The number of documents deleted from the data source up to now in the data * source sync run.

*/ inline DataSourceSyncJobMetrics& WithDocumentsDeleted(const char* value) { SetDocumentsDeleted(value); return *this;} /** *

The number of documents that failed to sync from the data source up to now in * the data source sync run.

*/ inline const Aws::String& GetDocumentsFailed() const{ return m_documentsFailed; } /** *

The number of documents that failed to sync from the data source up to now in * the data source sync run.

*/ inline bool DocumentsFailedHasBeenSet() const { return m_documentsFailedHasBeenSet; } /** *

The number of documents that failed to sync from the data source up to now in * the data source sync run.

*/ inline void SetDocumentsFailed(const Aws::String& value) { m_documentsFailedHasBeenSet = true; m_documentsFailed = value; } /** *

The number of documents that failed to sync from the data source up to now in * the data source sync run.

*/ inline void SetDocumentsFailed(Aws::String&& value) { m_documentsFailedHasBeenSet = true; m_documentsFailed = std::move(value); } /** *

The number of documents that failed to sync from the data source up to now in * the data source sync run.

*/ inline void SetDocumentsFailed(const char* value) { m_documentsFailedHasBeenSet = true; m_documentsFailed.assign(value); } /** *

The number of documents that failed to sync from the data source up to now in * the data source sync run.

*/ inline DataSourceSyncJobMetrics& WithDocumentsFailed(const Aws::String& value) { SetDocumentsFailed(value); return *this;} /** *

The number of documents that failed to sync from the data source up to now in * the data source sync run.

*/ inline DataSourceSyncJobMetrics& WithDocumentsFailed(Aws::String&& value) { SetDocumentsFailed(std::move(value)); return *this;} /** *

The number of documents that failed to sync from the data source up to now in * the data source sync run.

*/ inline DataSourceSyncJobMetrics& WithDocumentsFailed(const char* value) { SetDocumentsFailed(value); return *this;} /** *

The current number of documents crawled by the current sync job in the data * source.

*/ inline const Aws::String& GetDocumentsScanned() const{ return m_documentsScanned; } /** *

The current number of documents crawled by the current sync job in the data * source.

*/ inline bool DocumentsScannedHasBeenSet() const { return m_documentsScannedHasBeenSet; } /** *

The current number of documents crawled by the current sync job in the data * source.

*/ inline void SetDocumentsScanned(const Aws::String& value) { m_documentsScannedHasBeenSet = true; m_documentsScanned = value; } /** *

The current number of documents crawled by the current sync job in the data * source.

*/ inline void SetDocumentsScanned(Aws::String&& value) { m_documentsScannedHasBeenSet = true; m_documentsScanned = std::move(value); } /** *

The current number of documents crawled by the current sync job in the data * source.

*/ inline void SetDocumentsScanned(const char* value) { m_documentsScannedHasBeenSet = true; m_documentsScanned.assign(value); } /** *

The current number of documents crawled by the current sync job in the data * source.

*/ inline DataSourceSyncJobMetrics& WithDocumentsScanned(const Aws::String& value) { SetDocumentsScanned(value); return *this;} /** *

The current number of documents crawled by the current sync job in the data * source.

*/ inline DataSourceSyncJobMetrics& WithDocumentsScanned(Aws::String&& value) { SetDocumentsScanned(std::move(value)); return *this;} /** *

The current number of documents crawled by the current sync job in the data * source.

*/ inline DataSourceSyncJobMetrics& WithDocumentsScanned(const char* value) { SetDocumentsScanned(value); return *this;} private: Aws::String m_documentsAdded; bool m_documentsAddedHasBeenSet = false; Aws::String m_documentsModified; bool m_documentsModifiedHasBeenSet = false; Aws::String m_documentsDeleted; bool m_documentsDeletedHasBeenSet = false; Aws::String m_documentsFailed; bool m_documentsFailedHasBeenSet = false; Aws::String m_documentsScanned; bool m_documentsScannedHasBeenSet = false; }; } // namespace Model } // namespace kendra } // namespace Aws