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

Returns information about an error.

See Also:

AWS * API Reference

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

The attribute which caused the error.

*/ inline const Aws::String& GetErrorAttribute() const{ return m_errorAttribute; } /** *

The attribute which caused the error.

*/ inline bool ErrorAttributeHasBeenSet() const { return m_errorAttributeHasBeenSet; } /** *

The attribute which caused the error.

*/ inline void SetErrorAttribute(const Aws::String& value) { m_errorAttributeHasBeenSet = true; m_errorAttribute = value; } /** *

The attribute which caused the error.

*/ inline void SetErrorAttribute(Aws::String&& value) { m_errorAttributeHasBeenSet = true; m_errorAttribute = std::move(value); } /** *

The attribute which caused the error.

*/ inline void SetErrorAttribute(const char* value) { m_errorAttributeHasBeenSet = true; m_errorAttribute.assign(value); } /** *

The attribute which caused the error.

*/ inline InternalServerErrorException& WithErrorAttribute(const Aws::String& value) { SetErrorAttribute(value); return *this;} /** *

The attribute which caused the error.

*/ inline InternalServerErrorException& WithErrorAttribute(Aws::String&& value) { SetErrorAttribute(std::move(value)); return *this;} /** *

The attribute which caused the error.

*/ inline InternalServerErrorException& WithErrorAttribute(const char* value) { SetErrorAttribute(value); return *this;} /** *

The explanation of the error.

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

The explanation of the error.

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

The explanation of the error.

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

The explanation of the error.

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

The explanation of the error.

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

The explanation of the error.

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

The explanation of the error.

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

The explanation of the error.

*/ inline InternalServerErrorException& WithMessage(const char* value) { SetMessage(value); return *this;} private: Aws::String m_errorAttribute; bool m_errorAttributeHasBeenSet = false; Aws::String m_message; bool m_messageHasBeenSet = false; }; } // namespace Model } // namespace MQ } // namespace Aws