/** * 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 AWS_MQ_API BadRequestException { public: BadRequestException(); BadRequestException(Aws::Utils::Json::JsonView jsonValue); BadRequestException& operator=(Aws::Utils::Json::JsonView jsonValue); 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 BadRequestException& WithErrorAttribute(const Aws::String& value) { SetErrorAttribute(value); return *this;} /** * The attribute which caused the error. */ inline BadRequestException& WithErrorAttribute(Aws::String&& value) { SetErrorAttribute(std::move(value)); return *this;} /** * The attribute which caused the error. */ inline BadRequestException& 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 BadRequestException& WithMessage(const Aws::String& value) { SetMessage(value); return *this;} /** * The explanation of the error. */ inline BadRequestException& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;} /** * The explanation of the error. */ inline BadRequestException& WithMessage(const char* value) { SetMessage(value); return *this;} private: Aws::String m_errorAttribute; bool m_errorAttributeHasBeenSet; Aws::String m_message; bool m_messageHasBeenSet; }; } // namespace Model } // namespace MQ } // namespace Aws