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

The request has exceeded the quotas imposed by the service.

See * Also:

AWS * API Reference

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

The name of the quota that was exceeded.

*/ inline const LimitName& GetLimitName() const{ return m_limitName; } /** *

The name of the quota that was exceeded.

*/ inline bool LimitNameHasBeenSet() const { return m_limitNameHasBeenSet; } /** *

The name of the quota that was exceeded.

*/ inline void SetLimitName(const LimitName& value) { m_limitNameHasBeenSet = true; m_limitName = value; } /** *

The name of the quota that was exceeded.

*/ inline void SetLimitName(LimitName&& value) { m_limitNameHasBeenSet = true; m_limitName = std::move(value); } /** *

The name of the quota that was exceeded.

*/ inline ServiceLimitExceededException& WithLimitName(const LimitName& value) { SetLimitName(value); return *this;} /** *

The name of the quota that was exceeded.

*/ inline ServiceLimitExceededException& WithLimitName(LimitName&& value) { SetLimitName(std::move(value)); return *this;} /** *

The maximum value for the service-specific limit.

*/ inline double GetLimitValue() const{ return m_limitValue; } /** *

The maximum value for the service-specific limit.

*/ inline bool LimitValueHasBeenSet() const { return m_limitValueHasBeenSet; } /** *

The maximum value for the service-specific limit.

*/ inline void SetLimitValue(double value) { m_limitValueHasBeenSet = true; m_limitValue = value; } /** *

The maximum value for the service-specific limit.

*/ inline ServiceLimitExceededException& WithLimitValue(double value) { SetLimitValue(value); return *this;} /** *

The request has exceeded the quotas imposed by the service.

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

The request has exceeded the quotas imposed by the service.

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

The request has exceeded the quotas imposed by the service.

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

The request has exceeded the quotas imposed by the service.

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

The request has exceeded the quotas imposed by the service.

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

The request has exceeded the quotas imposed by the service.

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

The request has exceeded the quotas imposed by the service.

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

The request has exceeded the quotas imposed by the service.

*/ inline ServiceLimitExceededException& WithMessage(const char* value) { SetMessage(value); return *this;} private: LimitName m_limitName; bool m_limitNameHasBeenSet; double m_limitValue; bool m_limitValueHasBeenSet; Aws::String m_message; bool m_messageHasBeenSet; }; } // namespace Model } // namespace DataExchange } // namespace Aws