/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include Provides a response when the status of a document could not be
* retrieved.See Also:
AWS
* API Reference
The identifier of the document whose status could not be retrieved.
*/ inline const Aws::String& GetDocumentId() const{ return m_documentId; } /** *The identifier of the document whose status could not be retrieved.
*/ inline bool DocumentIdHasBeenSet() const { return m_documentIdHasBeenSet; } /** *The identifier of the document whose status could not be retrieved.
*/ inline void SetDocumentId(const Aws::String& value) { m_documentIdHasBeenSet = true; m_documentId = value; } /** *The identifier of the document whose status could not be retrieved.
*/ inline void SetDocumentId(Aws::String&& value) { m_documentIdHasBeenSet = true; m_documentId = std::move(value); } /** *The identifier of the document whose status could not be retrieved.
*/ inline void SetDocumentId(const char* value) { m_documentIdHasBeenSet = true; m_documentId.assign(value); } /** *The identifier of the document whose status could not be retrieved.
*/ inline BatchGetDocumentStatusResponseError& WithDocumentId(const Aws::String& value) { SetDocumentId(value); return *this;} /** *The identifier of the document whose status could not be retrieved.
*/ inline BatchGetDocumentStatusResponseError& WithDocumentId(Aws::String&& value) { SetDocumentId(std::move(value)); return *this;} /** *The identifier of the document whose status could not be retrieved.
*/ inline BatchGetDocumentStatusResponseError& WithDocumentId(const char* value) { SetDocumentId(value); return *this;} /** *Indicates the source of the error.
*/ inline const ErrorCode& GetErrorCode() const{ return m_errorCode; } /** *Indicates the source of the error.
*/ inline bool ErrorCodeHasBeenSet() const { return m_errorCodeHasBeenSet; } /** *Indicates the source of the error.
*/ inline void SetErrorCode(const ErrorCode& value) { m_errorCodeHasBeenSet = true; m_errorCode = value; } /** *Indicates the source of the error.
*/ inline void SetErrorCode(ErrorCode&& value) { m_errorCodeHasBeenSet = true; m_errorCode = std::move(value); } /** *Indicates the source of the error.
*/ inline BatchGetDocumentStatusResponseError& WithErrorCode(const ErrorCode& value) { SetErrorCode(value); return *this;} /** *Indicates the source of the error.
*/ inline BatchGetDocumentStatusResponseError& WithErrorCode(ErrorCode&& value) { SetErrorCode(std::move(value)); return *this;} /** *States that the API could not get the status of a document. This could be * because the request is not valid or there is a system error.
*/ inline const Aws::String& GetErrorMessage() const{ return m_errorMessage; } /** *States that the API could not get the status of a document. This could be * because the request is not valid or there is a system error.
*/ inline bool ErrorMessageHasBeenSet() const { return m_errorMessageHasBeenSet; } /** *States that the API could not get the status of a document. This could be * because the request is not valid or there is a system error.
*/ inline void SetErrorMessage(const Aws::String& value) { m_errorMessageHasBeenSet = true; m_errorMessage = value; } /** *States that the API could not get the status of a document. This could be * because the request is not valid or there is a system error.
*/ inline void SetErrorMessage(Aws::String&& value) { m_errorMessageHasBeenSet = true; m_errorMessage = std::move(value); } /** *States that the API could not get the status of a document. This could be * because the request is not valid or there is a system error.
*/ inline void SetErrorMessage(const char* value) { m_errorMessageHasBeenSet = true; m_errorMessage.assign(value); } /** *States that the API could not get the status of a document. This could be * because the request is not valid or there is a system error.
*/ inline BatchGetDocumentStatusResponseError& WithErrorMessage(const Aws::String& value) { SetErrorMessage(value); return *this;} /** *States that the API could not get the status of a document. This could be * because the request is not valid or there is a system error.
*/ inline BatchGetDocumentStatusResponseError& WithErrorMessage(Aws::String&& value) { SetErrorMessage(std::move(value)); return *this;} /** *States that the API could not get the status of a document. This could be * because the request is not valid or there is a system error.
*/ inline BatchGetDocumentStatusResponseError& WithErrorMessage(const char* value) { SetErrorMessage(value); return *this;} private: Aws::String m_documentId; bool m_documentIdHasBeenSet = false; ErrorCode m_errorCode; bool m_errorCodeHasBeenSet = false; Aws::String m_errorMessage; bool m_errorMessageHasBeenSet = false; }; } // namespace Model } // namespace kendra } // namespace Aws