/** * 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 CloudSearchDomain { namespace Model { /** *

Information about any problems encountered while processing an upload * request.

See Also:

AWS * API Reference

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

The return status of a document upload request, error or * success.

*/ inline const Aws::String& GetStatus() const{ return m_status; } /** *

The return status of a document upload request, error or * success.

*/ inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; } /** *

The return status of a document upload request, error or * success.

*/ inline void SetStatus(const Aws::String& value) { m_statusHasBeenSet = true; m_status = value; } /** *

The return status of a document upload request, error or * success.

*/ inline void SetStatus(Aws::String&& value) { m_statusHasBeenSet = true; m_status = std::move(value); } /** *

The return status of a document upload request, error or * success.

*/ inline void SetStatus(const char* value) { m_statusHasBeenSet = true; m_status.assign(value); } /** *

The return status of a document upload request, error or * success.

*/ inline DocumentServiceException& WithStatus(const Aws::String& value) { SetStatus(value); return *this;} /** *

The return status of a document upload request, error or * success.

*/ inline DocumentServiceException& WithStatus(Aws::String&& value) { SetStatus(std::move(value)); return *this;} /** *

The return status of a document upload request, error or * success.

*/ inline DocumentServiceException& WithStatus(const char* value) { SetStatus(value); return *this;} /** *

The description of the errors returned by the document service.

*/ inline const Aws::String& GetMessage() const{ return m_message; } /** *

The description of the errors returned by the document service.

*/ inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; } /** *

The description of the errors returned by the document service.

*/ inline void SetMessage(const Aws::String& value) { m_messageHasBeenSet = true; m_message = value; } /** *

The description of the errors returned by the document service.

*/ inline void SetMessage(Aws::String&& value) { m_messageHasBeenSet = true; m_message = std::move(value); } /** *

The description of the errors returned by the document service.

*/ inline void SetMessage(const char* value) { m_messageHasBeenSet = true; m_message.assign(value); } /** *

The description of the errors returned by the document service.

*/ inline DocumentServiceException& WithMessage(const Aws::String& value) { SetMessage(value); return *this;} /** *

The description of the errors returned by the document service.

*/ inline DocumentServiceException& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;} /** *

The description of the errors returned by the document service.

*/ inline DocumentServiceException& WithMessage(const char* value) { SetMessage(value); return *this;} private: Aws::String m_status; bool m_statusHasBeenSet = false; Aws::String m_message; bool m_messageHasBeenSet = false; }; } // namespace Model } // namespace CloudSearchDomain } // namespace Aws