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

A limit has been exceeded. See the accompanying error message for * details.

See Also:

AWS * API Reference

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

The limit type.

*/ inline const Aws::String& GetLimitType() const{ return m_limitType; } /** *

The limit type.

*/ inline bool LimitTypeHasBeenSet() const { return m_limitTypeHasBeenSet; } /** *

The limit type.

*/ inline void SetLimitType(const Aws::String& value) { m_limitTypeHasBeenSet = true; m_limitType = value; } /** *

The limit type.

*/ inline void SetLimitType(Aws::String&& value) { m_limitTypeHasBeenSet = true; m_limitType = std::move(value); } /** *

The limit type.

*/ inline void SetLimitType(const char* value) { m_limitTypeHasBeenSet = true; m_limitType.assign(value); } /** *

The limit type.

*/ inline TooManyRequestsException& WithLimitType(const Aws::String& value) { SetLimitType(value); return *this;} /** *

The limit type.

*/ inline TooManyRequestsException& WithLimitType(Aws::String&& value) { SetLimitType(std::move(value)); return *this;} /** *

The limit type.

*/ inline TooManyRequestsException& WithLimitType(const char* value) { SetLimitType(value); return *this;} /** *

Describes the error encountered.

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

Describes the error encountered.

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

Describes the error encountered.

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

Describes the error encountered.

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

Describes the error encountered.

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

Describes the error encountered.

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

Describes the error encountered.

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

Describes the error encountered.

*/ 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 ApiGatewayV2 } // namespace Aws