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

This request cannot be completed for one of the following reasons.

    *
  • The request would cause the number of member accounts in the behavior * graph to exceed the maximum allowed. A behavior graph cannot have more than 1200 * member accounts.

  • The request would cause the data rate for the * behavior graph to exceed the maximum allowed.

  • Detective is * unable to verify the data rate for the member account. This is usually because * the member account is not enrolled in Amazon GuardDuty.

  • *

See Also:

AWS * API Reference

*/ class ServiceQuotaExceededException { public: AWS_DETECTIVE_API ServiceQuotaExceededException(); AWS_DETECTIVE_API ServiceQuotaExceededException(Aws::Utils::Json::JsonView jsonValue); AWS_DETECTIVE_API ServiceQuotaExceededException& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_DETECTIVE_API Aws::Utils::Json::JsonValue Jsonize() const; inline const Aws::String& GetMessage() const{ return m_message; } inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; } inline void SetMessage(const Aws::String& value) { m_messageHasBeenSet = true; m_message = value; } inline void SetMessage(Aws::String&& value) { m_messageHasBeenSet = true; m_message = std::move(value); } inline void SetMessage(const char* value) { m_messageHasBeenSet = true; m_message.assign(value); } inline ServiceQuotaExceededException& WithMessage(const Aws::String& value) { SetMessage(value); return *this;} inline ServiceQuotaExceededException& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;} inline ServiceQuotaExceededException& WithMessage(const char* value) { SetMessage(value); return *this;} /** *

The type of resource that has exceeded the service quota.

*/ inline const Aws::Vector& GetResources() const{ return m_resources; } /** *

The type of resource that has exceeded the service quota.

*/ inline bool ResourcesHasBeenSet() const { return m_resourcesHasBeenSet; } /** *

The type of resource that has exceeded the service quota.

*/ inline void SetResources(const Aws::Vector& value) { m_resourcesHasBeenSet = true; m_resources = value; } /** *

The type of resource that has exceeded the service quota.

*/ inline void SetResources(Aws::Vector&& value) { m_resourcesHasBeenSet = true; m_resources = std::move(value); } /** *

The type of resource that has exceeded the service quota.

*/ inline ServiceQuotaExceededException& WithResources(const Aws::Vector& value) { SetResources(value); return *this;} /** *

The type of resource that has exceeded the service quota.

*/ inline ServiceQuotaExceededException& WithResources(Aws::Vector&& value) { SetResources(std::move(value)); return *this;} /** *

The type of resource that has exceeded the service quota.

*/ inline ServiceQuotaExceededException& AddResources(const Aws::String& value) { m_resourcesHasBeenSet = true; m_resources.push_back(value); return *this; } /** *

The type of resource that has exceeded the service quota.

*/ inline ServiceQuotaExceededException& AddResources(Aws::String&& value) { m_resourcesHasBeenSet = true; m_resources.push_back(std::move(value)); return *this; } /** *

The type of resource that has exceeded the service quota.

*/ inline ServiceQuotaExceededException& AddResources(const char* value) { m_resourcesHasBeenSet = true; m_resources.push_back(value); return *this; } private: Aws::String m_message; bool m_messageHasBeenSet = false; Aws::Vector m_resources; bool m_resourcesHasBeenSet = false; }; } // namespace Model } // namespace Detective } // namespace Aws