/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include Your request exceeded a request rate quota. For example, you might have
* exceeded the amount of times that you can retrieve device or deployment status
* per second.See Also:
AWS
* API Reference
The code for the quota in Service * Quotas.
*/ inline const Aws::String& GetQuotaCode() const{ return m_quotaCode; } /** *The code for the quota in Service * Quotas.
*/ inline bool QuotaCodeHasBeenSet() const { return m_quotaCodeHasBeenSet; } /** *The code for the quota in Service * Quotas.
*/ inline void SetQuotaCode(const Aws::String& value) { m_quotaCodeHasBeenSet = true; m_quotaCode = value; } /** *The code for the quota in Service * Quotas.
*/ inline void SetQuotaCode(Aws::String&& value) { m_quotaCodeHasBeenSet = true; m_quotaCode = std::move(value); } /** *The code for the quota in Service * Quotas.
*/ inline void SetQuotaCode(const char* value) { m_quotaCodeHasBeenSet = true; m_quotaCode.assign(value); } /** *The code for the quota in Service * Quotas.
*/ inline ThrottlingException& WithQuotaCode(const Aws::String& value) { SetQuotaCode(value); return *this;} /** *The code for the quota in Service * Quotas.
*/ inline ThrottlingException& WithQuotaCode(Aws::String&& value) { SetQuotaCode(std::move(value)); return *this;} /** *The code for the quota in Service * Quotas.
*/ inline ThrottlingException& WithQuotaCode(const char* value) { SetQuotaCode(value); return *this;} /** *The code for the service in Service * Quotas.
*/ inline const Aws::String& GetServiceCode() const{ return m_serviceCode; } /** *The code for the service in Service * Quotas.
*/ inline bool ServiceCodeHasBeenSet() const { return m_serviceCodeHasBeenSet; } /** *The code for the service in Service * Quotas.
*/ inline void SetServiceCode(const Aws::String& value) { m_serviceCodeHasBeenSet = true; m_serviceCode = value; } /** *The code for the service in Service * Quotas.
*/ inline void SetServiceCode(Aws::String&& value) { m_serviceCodeHasBeenSet = true; m_serviceCode = std::move(value); } /** *The code for the service in Service * Quotas.
*/ inline void SetServiceCode(const char* value) { m_serviceCodeHasBeenSet = true; m_serviceCode.assign(value); } /** *The code for the service in Service * Quotas.
*/ inline ThrottlingException& WithServiceCode(const Aws::String& value) { SetServiceCode(value); return *this;} /** *The code for the service in Service * Quotas.
*/ inline ThrottlingException& WithServiceCode(Aws::String&& value) { SetServiceCode(std::move(value)); return *this;} /** *The code for the service in Service * Quotas.
*/ inline ThrottlingException& WithServiceCode(const char* value) { SetServiceCode(value); return *this;} /** *The amount of time to wait before you retry the request.
*/ inline int GetRetryAfterSeconds() const{ return m_retryAfterSeconds; } /** *The amount of time to wait before you retry the request.
*/ inline bool RetryAfterSecondsHasBeenSet() const { return m_retryAfterSecondsHasBeenSet; } /** *The amount of time to wait before you retry the request.
*/ inline void SetRetryAfterSeconds(int value) { m_retryAfterSecondsHasBeenSet = true; m_retryAfterSeconds = value; } /** *The amount of time to wait before you retry the request.
*/ inline ThrottlingException& WithRetryAfterSeconds(int value) { SetRetryAfterSeconds(value); return *this;} private: Aws::String m_message; bool m_messageHasBeenSet = false; Aws::String m_quotaCode; bool m_quotaCodeHasBeenSet = false; Aws::String m_serviceCode; bool m_serviceCodeHasBeenSet = false; int m_retryAfterSeconds; bool m_retryAfterSecondsHasBeenSet = false; }; } // namespace Model } // namespace GreengrassV2 } // namespace Aws