/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include An error that is returned when a limit of a specific type has been
* exceeded.See Also:
AWS
* API Reference
The type of limit that was exceeded.
*/ inline const Aws::String& GetLimitType() const{ return m_limitType; } /** *The type of limit that was exceeded.
*/ inline bool LimitTypeHasBeenSet() const { return m_limitTypeHasBeenSet; } /** *The type of limit that was exceeded.
*/ inline void SetLimitType(const Aws::String& value) { m_limitTypeHasBeenSet = true; m_limitType = value; } /** *The type of limit that was exceeded.
*/ inline void SetLimitType(Aws::String&& value) { m_limitTypeHasBeenSet = true; m_limitType = std::move(value); } /** *The type of limit that was exceeded.
*/ inline void SetLimitType(const char* value) { m_limitTypeHasBeenSet = true; m_limitType.assign(value); } /** *The type of limit that was exceeded.
*/ inline TooManyRequestsException& WithLimitType(const Aws::String& value) { SetLimitType(value); return *this;} /** *The type of limit that was exceeded.
*/ inline TooManyRequestsException& WithLimitType(Aws::String&& value) { SetLimitType(std::move(value)); return *this;} /** *The type of limit that was exceeded.
*/ inline TooManyRequestsException& WithLimitType(const char* value) { SetLimitType(value); return *this;} /** *An error message to inform that the request has failed.
*/ inline const Aws::String& GetMessage() const{ return m_message; } /** *An error message to inform that the request has failed.
*/ inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; } /** *An error message to inform that the request has failed.
*/ inline void SetMessage(const Aws::String& value) { m_messageHasBeenSet = true; m_message = value; } /** *An error message to inform that the request has failed.
*/ inline void SetMessage(Aws::String&& value) { m_messageHasBeenSet = true; m_message = std::move(value); } /** *An error message to inform that the request has failed.
*/ inline void SetMessage(const char* value) { m_messageHasBeenSet = true; m_message.assign(value); } /** *An error message to inform that the request has failed.
*/ inline TooManyRequestsException& WithMessage(const Aws::String& value) { SetMessage(value); return *this;} /** *An error message to inform that the request has failed.
*/ inline TooManyRequestsException& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;} /** *An error message to inform that the request has failed.
*/ inline TooManyRequestsException& WithMessage(const char* value) { SetMessage(value); return *this;} private: Aws::String m_limitType; bool m_limitTypeHasBeenSet = false; Aws::String m_message; bool m_messageHasBeenSet = false; }; } // namespace Model } // namespace AmplifyBackend } // namespace Aws