/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include Provides information about the status of documents submitted for
* indexing.See Also:
AWS API
* Reference
The identifier of the document.
*/ inline const Aws::String& GetDocumentId() const{ return m_documentId; } /** *The identifier of the document.
*/ inline bool DocumentIdHasBeenSet() const { return m_documentIdHasBeenSet; } /** *The identifier of the document.
*/ inline void SetDocumentId(const Aws::String& value) { m_documentIdHasBeenSet = true; m_documentId = value; } /** *The identifier of the document.
*/ inline void SetDocumentId(Aws::String&& value) { m_documentIdHasBeenSet = true; m_documentId = std::move(value); } /** *The identifier of the document.
*/ inline void SetDocumentId(const char* value) { m_documentIdHasBeenSet = true; m_documentId.assign(value); } /** *The identifier of the document.
*/ inline Status& WithDocumentId(const Aws::String& value) { SetDocumentId(value); return *this;} /** *The identifier of the document.
*/ inline Status& WithDocumentId(Aws::String&& value) { SetDocumentId(std::move(value)); return *this;} /** *The identifier of the document.
*/ inline Status& WithDocumentId(const char* value) { SetDocumentId(value); return *this;} /** *The current status of a document.
If the document was submitted for
* deletion, the status is NOT_FOUND
after the document is
* deleted.
The current status of a document.
If the document was submitted for
* deletion, the status is NOT_FOUND
after the document is
* deleted.
The current status of a document.
If the document was submitted for
* deletion, the status is NOT_FOUND
after the document is
* deleted.
The current status of a document.
If the document was submitted for
* deletion, the status is NOT_FOUND
after the document is
* deleted.
The current status of a document.
If the document was submitted for
* deletion, the status is NOT_FOUND
after the document is
* deleted.
The current status of a document.
If the document was submitted for
* deletion, the status is NOT_FOUND
after the document is
* deleted.
Indicates the source of the error.
*/ inline const Aws::String& GetFailureCode() const{ return m_failureCode; } /** *Indicates the source of the error.
*/ inline bool FailureCodeHasBeenSet() const { return m_failureCodeHasBeenSet; } /** *Indicates the source of the error.
*/ inline void SetFailureCode(const Aws::String& value) { m_failureCodeHasBeenSet = true; m_failureCode = value; } /** *Indicates the source of the error.
*/ inline void SetFailureCode(Aws::String&& value) { m_failureCodeHasBeenSet = true; m_failureCode = std::move(value); } /** *Indicates the source of the error.
*/ inline void SetFailureCode(const char* value) { m_failureCodeHasBeenSet = true; m_failureCode.assign(value); } /** *Indicates the source of the error.
*/ inline Status& WithFailureCode(const Aws::String& value) { SetFailureCode(value); return *this;} /** *Indicates the source of the error.
*/ inline Status& WithFailureCode(Aws::String&& value) { SetFailureCode(std::move(value)); return *this;} /** *Indicates the source of the error.
*/ inline Status& WithFailureCode(const char* value) { SetFailureCode(value); return *this;} /** *Provides detailed information about why the document couldn't be indexed. Use * this information to correct the error before you resubmit the document for * indexing.
*/ inline const Aws::String& GetFailureReason() const{ return m_failureReason; } /** *Provides detailed information about why the document couldn't be indexed. Use * this information to correct the error before you resubmit the document for * indexing.
*/ inline bool FailureReasonHasBeenSet() const { return m_failureReasonHasBeenSet; } /** *Provides detailed information about why the document couldn't be indexed. Use * this information to correct the error before you resubmit the document for * indexing.
*/ inline void SetFailureReason(const Aws::String& value) { m_failureReasonHasBeenSet = true; m_failureReason = value; } /** *Provides detailed information about why the document couldn't be indexed. Use * this information to correct the error before you resubmit the document for * indexing.
*/ inline void SetFailureReason(Aws::String&& value) { m_failureReasonHasBeenSet = true; m_failureReason = std::move(value); } /** *Provides detailed information about why the document couldn't be indexed. Use * this information to correct the error before you resubmit the document for * indexing.
*/ inline void SetFailureReason(const char* value) { m_failureReasonHasBeenSet = true; m_failureReason.assign(value); } /** *Provides detailed information about why the document couldn't be indexed. Use * this information to correct the error before you resubmit the document for * indexing.
*/ inline Status& WithFailureReason(const Aws::String& value) { SetFailureReason(value); return *this;} /** *Provides detailed information about why the document couldn't be indexed. Use * this information to correct the error before you resubmit the document for * indexing.
*/ inline Status& WithFailureReason(Aws::String&& value) { SetFailureReason(std::move(value)); return *this;} /** *Provides detailed information about why the document couldn't be indexed. Use * this information to correct the error before you resubmit the document for * indexing.
*/ inline Status& WithFailureReason(const char* value) { SetFailureReason(value); return *this;} private: Aws::String m_documentId; bool m_documentIdHasBeenSet = false; DocumentStatus m_documentStatus; bool m_documentStatusHasBeenSet = false; Aws::String m_failureCode; bool m_failureCodeHasBeenSet = false; Aws::String m_failureReason; bool m_failureReasonHasBeenSet = false; }; } // namespace Model } // namespace kendra } // namespace Aws