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

The structure with error messages.

See Also:

AWS * API Reference

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

The text of the error message.

*/ inline const Aws::String& GetErrorMessage() const{ return m_errorMessage; } /** *

The text of the error message.

*/ inline bool ErrorMessageHasBeenSet() const { return m_errorMessageHasBeenSet; } /** *

The text of the error message.

*/ inline void SetErrorMessage(const Aws::String& value) { m_errorMessageHasBeenSet = true; m_errorMessage = value; } /** *

The text of the error message.

*/ inline void SetErrorMessage(Aws::String&& value) { m_errorMessageHasBeenSet = true; m_errorMessage = std::move(value); } /** *

The text of the error message.

*/ inline void SetErrorMessage(const char* value) { m_errorMessageHasBeenSet = true; m_errorMessage.assign(value); } /** *

The text of the error message.

*/ inline DataViewErrorInfo& WithErrorMessage(const Aws::String& value) { SetErrorMessage(value); return *this;} /** *

The text of the error message.

*/ inline DataViewErrorInfo& WithErrorMessage(Aws::String&& value) { SetErrorMessage(std::move(value)); return *this;} /** *

The text of the error message.

*/ inline DataViewErrorInfo& WithErrorMessage(const char* value) { SetErrorMessage(value); return *this;} /** *

The category of the error.

  • VALIDATION – The * inputs to this request are invalid.

  • * SERVICE_QUOTA_EXCEEDED – Service quotas have been exceeded. Please * contact AWS support to increase quotas.

  • * ACCESS_DENIED – Missing required permission to perform this * request.

  • RESOURCE_NOT_FOUND – One or more inputs * to this request were not found.

  • THROTTLING – The * system temporarily lacks sufficient resources to process the request.

  • *
  • INTERNAL_SERVICE_EXCEPTION – An internal service error has * occurred.

  • CANCELLED – Cancelled.

  • *

    USER_RECOVERABLE – A user recoverable error has occurred.

    *
*/ inline const ErrorCategory& GetErrorCategory() const{ return m_errorCategory; } /** *

The category of the error.

  • VALIDATION – The * inputs to this request are invalid.

  • * SERVICE_QUOTA_EXCEEDED – Service quotas have been exceeded. Please * contact AWS support to increase quotas.

  • * ACCESS_DENIED – Missing required permission to perform this * request.

  • RESOURCE_NOT_FOUND – One or more inputs * to this request were not found.

  • THROTTLING – The * system temporarily lacks sufficient resources to process the request.

  • *
  • INTERNAL_SERVICE_EXCEPTION – An internal service error has * occurred.

  • CANCELLED – Cancelled.

  • *

    USER_RECOVERABLE – A user recoverable error has occurred.

    *
*/ inline bool ErrorCategoryHasBeenSet() const { return m_errorCategoryHasBeenSet; } /** *

The category of the error.

  • VALIDATION – The * inputs to this request are invalid.

  • * SERVICE_QUOTA_EXCEEDED – Service quotas have been exceeded. Please * contact AWS support to increase quotas.

  • * ACCESS_DENIED – Missing required permission to perform this * request.

  • RESOURCE_NOT_FOUND – One or more inputs * to this request were not found.

  • THROTTLING – The * system temporarily lacks sufficient resources to process the request.

  • *
  • INTERNAL_SERVICE_EXCEPTION – An internal service error has * occurred.

  • CANCELLED – Cancelled.

  • *

    USER_RECOVERABLE – A user recoverable error has occurred.

    *
*/ inline void SetErrorCategory(const ErrorCategory& value) { m_errorCategoryHasBeenSet = true; m_errorCategory = value; } /** *

The category of the error.

  • VALIDATION – The * inputs to this request are invalid.

  • * SERVICE_QUOTA_EXCEEDED – Service quotas have been exceeded. Please * contact AWS support to increase quotas.

  • * ACCESS_DENIED – Missing required permission to perform this * request.

  • RESOURCE_NOT_FOUND – One or more inputs * to this request were not found.

  • THROTTLING – The * system temporarily lacks sufficient resources to process the request.

  • *
  • INTERNAL_SERVICE_EXCEPTION – An internal service error has * occurred.

  • CANCELLED – Cancelled.

  • *

    USER_RECOVERABLE – A user recoverable error has occurred.

    *
*/ inline void SetErrorCategory(ErrorCategory&& value) { m_errorCategoryHasBeenSet = true; m_errorCategory = std::move(value); } /** *

The category of the error.

  • VALIDATION – The * inputs to this request are invalid.

  • * SERVICE_QUOTA_EXCEEDED – Service quotas have been exceeded. Please * contact AWS support to increase quotas.

  • * ACCESS_DENIED – Missing required permission to perform this * request.

  • RESOURCE_NOT_FOUND – One or more inputs * to this request were not found.

  • THROTTLING – The * system temporarily lacks sufficient resources to process the request.

  • *
  • INTERNAL_SERVICE_EXCEPTION – An internal service error has * occurred.

  • CANCELLED – Cancelled.

  • *

    USER_RECOVERABLE – A user recoverable error has occurred.

    *
*/ inline DataViewErrorInfo& WithErrorCategory(const ErrorCategory& value) { SetErrorCategory(value); return *this;} /** *

The category of the error.

  • VALIDATION – The * inputs to this request are invalid.

  • * SERVICE_QUOTA_EXCEEDED – Service quotas have been exceeded. Please * contact AWS support to increase quotas.

  • * ACCESS_DENIED – Missing required permission to perform this * request.

  • RESOURCE_NOT_FOUND – One or more inputs * to this request were not found.

  • THROTTLING – The * system temporarily lacks sufficient resources to process the request.

  • *
  • INTERNAL_SERVICE_EXCEPTION – An internal service error has * occurred.

  • CANCELLED – Cancelled.

  • *

    USER_RECOVERABLE – A user recoverable error has occurred.

    *
*/ inline DataViewErrorInfo& WithErrorCategory(ErrorCategory&& value) { SetErrorCategory(std::move(value)); return *this;} private: Aws::String m_errorMessage; bool m_errorMessageHasBeenSet = false; ErrorCategory m_errorCategory; bool m_errorCategoryHasBeenSet = false; }; } // namespace Model } // namespace FinSpaceData } // namespace Aws