/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include The request was denied due to request throttling.See Also:
* AWS
* API Reference
The identifier for the error.
*/ inline const Aws::String& GetErrorCode() const{ return m_errorCode; } /** *The identifier for the error.
*/ inline bool ErrorCodeHasBeenSet() const { return m_errorCodeHasBeenSet; } /** *The identifier for the error.
*/ inline void SetErrorCode(const Aws::String& value) { m_errorCodeHasBeenSet = true; m_errorCode = value; } /** *The identifier for the error.
*/ inline void SetErrorCode(Aws::String&& value) { m_errorCodeHasBeenSet = true; m_errorCode = std::move(value); } /** *The identifier for the error.
*/ inline void SetErrorCode(const char* value) { m_errorCodeHasBeenSet = true; m_errorCode.assign(value); } /** *The identifier for the error.
*/ inline ThrottlingException& WithErrorCode(const Aws::String& value) { SetErrorCode(value); return *this;} /** *The identifier for the error.
*/ inline ThrottlingException& WithErrorCode(Aws::String&& value) { SetErrorCode(std::move(value)); return *this;} /** *The identifier for the error.
*/ inline ThrottlingException& WithErrorCode(const char* value) { SetErrorCode(value); return *this;} /** *Description of the error.
*/ inline const Aws::String& GetMessage() const{ return m_message; } /** *Description of the error.
*/ inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; } /** *Description of the error.
*/ inline void SetMessage(const Aws::String& value) { m_messageHasBeenSet = true; m_message = value; } /** *Description of the error.
*/ inline void SetMessage(Aws::String&& value) { m_messageHasBeenSet = true; m_message = std::move(value); } /** *Description of the error.
*/ inline void SetMessage(const char* value) { m_messageHasBeenSet = true; m_message.assign(value); } /** *Description of the error.
*/ inline ThrottlingException& WithMessage(const Aws::String& value) { SetMessage(value); return *this;} /** *Description of the error.
*/ inline ThrottlingException& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;} /** *Description of the error.
*/ inline ThrottlingException& WithMessage(const char* value) { SetMessage(value); return *this;} /** *The identifier for the originating quota.
*/ inline const Aws::String& GetQuotaCode() const{ return m_quotaCode; } /** *The identifier for the originating quota.
*/ inline bool QuotaCodeHasBeenSet() const { return m_quotaCodeHasBeenSet; } /** *The identifier for the originating quota.
*/ inline void SetQuotaCode(const Aws::String& value) { m_quotaCodeHasBeenSet = true; m_quotaCode = value; } /** *The identifier for the originating quota.
*/ inline void SetQuotaCode(Aws::String&& value) { m_quotaCodeHasBeenSet = true; m_quotaCode = std::move(value); } /** *The identifier for the originating quota.
*/ inline void SetQuotaCode(const char* value) { m_quotaCodeHasBeenSet = true; m_quotaCode.assign(value); } /** *The identifier for the originating quota.
*/ inline ThrottlingException& WithQuotaCode(const Aws::String& value) { SetQuotaCode(value); return *this;} /** *The identifier for the originating quota.
*/ inline ThrottlingException& WithQuotaCode(Aws::String&& value) { SetQuotaCode(std::move(value)); return *this;} /** *The identifier for the originating quota.
*/ inline ThrottlingException& WithQuotaCode(const char* value) { SetQuotaCode(value); return *this;} /** *The identifier for the originating service.
*/ inline const Aws::String& GetServiceCode() const{ return m_serviceCode; } /** *The identifier for the originating service.
*/ inline bool ServiceCodeHasBeenSet() const { return m_serviceCodeHasBeenSet; } /** *The identifier for the originating service.
*/ inline void SetServiceCode(const Aws::String& value) { m_serviceCodeHasBeenSet = true; m_serviceCode = value; } /** *The identifier for the originating service.
*/ inline void SetServiceCode(Aws::String&& value) { m_serviceCodeHasBeenSet = true; m_serviceCode = std::move(value); } /** *The identifier for the originating service.
*/ inline void SetServiceCode(const char* value) { m_serviceCodeHasBeenSet = true; m_serviceCode.assign(value); } /** *The identifier for the originating service.
*/ inline ThrottlingException& WithServiceCode(const Aws::String& value) { SetServiceCode(value); return *this;} /** *The identifier for the originating service.
*/ inline ThrottlingException& WithServiceCode(Aws::String&& value) { SetServiceCode(std::move(value)); return *this;} /** *The identifier for the originating service.
*/ inline ThrottlingException& WithServiceCode(const char* value) { SetServiceCode(value); return *this;} private: Aws::String m_errorCode; bool m_errorCodeHasBeenSet = false; Aws::String m_message; bool m_messageHasBeenSet = false; Aws::String m_quotaCode; bool m_quotaCodeHasBeenSet = false; Aws::String m_serviceCode; bool m_serviceCodeHasBeenSet = false; }; } // namespace Model } // namespace CodeGuruSecurity } // namespace Aws