AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
ThrottlingException.h
1
6#pragma once
7#include <aws/codeguru-security/CodeGuruSecurity_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace CodeGuruSecurity {
20namespace Model {
21
29 public:
30 AWS_CODEGURUSECURITY_API ThrottlingException() = default;
31 AWS_CODEGURUSECURITY_API ThrottlingException(Aws::Utils::Json::JsonView jsonValue);
32 AWS_CODEGURUSECURITY_API ThrottlingException& operator=(Aws::Utils::Json::JsonView jsonValue);
33 AWS_CODEGURUSECURITY_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
39 inline const Aws::String& GetErrorCode() const { return m_errorCode; }
40 inline bool ErrorCodeHasBeenSet() const { return m_errorCodeHasBeenSet; }
41 template <typename ErrorCodeT = Aws::String>
42 void SetErrorCode(ErrorCodeT&& value) {
43 m_errorCodeHasBeenSet = true;
44 m_errorCode = std::forward<ErrorCodeT>(value);
45 }
46 template <typename ErrorCodeT = Aws::String>
47 ThrottlingException& WithErrorCode(ErrorCodeT&& value) {
48 SetErrorCode(std::forward<ErrorCodeT>(value));
49 return *this;
50 }
52
54
57 inline const Aws::String& GetMessage() const { return m_message; }
58 inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
59 template <typename MessageT = Aws::String>
60 void SetMessage(MessageT&& value) {
61 m_messageHasBeenSet = true;
62 m_message = std::forward<MessageT>(value);
63 }
64 template <typename MessageT = Aws::String>
65 ThrottlingException& WithMessage(MessageT&& value) {
66 SetMessage(std::forward<MessageT>(value));
67 return *this;
68 }
70
72
75 inline const Aws::String& GetServiceCode() const { return m_serviceCode; }
76 inline bool ServiceCodeHasBeenSet() const { return m_serviceCodeHasBeenSet; }
77 template <typename ServiceCodeT = Aws::String>
78 void SetServiceCode(ServiceCodeT&& value) {
79 m_serviceCodeHasBeenSet = true;
80 m_serviceCode = std::forward<ServiceCodeT>(value);
81 }
82 template <typename ServiceCodeT = Aws::String>
83 ThrottlingException& WithServiceCode(ServiceCodeT&& value) {
84 SetServiceCode(std::forward<ServiceCodeT>(value));
85 return *this;
86 }
88
90
93 inline const Aws::String& GetQuotaCode() const { return m_quotaCode; }
94 inline bool QuotaCodeHasBeenSet() const { return m_quotaCodeHasBeenSet; }
95 template <typename QuotaCodeT = Aws::String>
96 void SetQuotaCode(QuotaCodeT&& value) {
97 m_quotaCodeHasBeenSet = true;
98 m_quotaCode = std::forward<QuotaCodeT>(value);
99 }
100 template <typename QuotaCodeT = Aws::String>
101 ThrottlingException& WithQuotaCode(QuotaCodeT&& value) {
102 SetQuotaCode(std::forward<QuotaCodeT>(value));
103 return *this;
104 }
106 private:
107 Aws::String m_errorCode;
108
109 Aws::String m_message;
110
111 Aws::String m_serviceCode;
112
113 Aws::String m_quotaCode;
114 bool m_errorCodeHasBeenSet = false;
115 bool m_messageHasBeenSet = false;
116 bool m_serviceCodeHasBeenSet = false;
117 bool m_quotaCodeHasBeenSet = false;
118};
119
120} // namespace Model
121} // namespace CodeGuruSecurity
122} // namespace Aws
AWS_CODEGURUSECURITY_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_CODEGURUSECURITY_API ThrottlingException()=default
ThrottlingException & WithErrorCode(ErrorCodeT &&value)
AWS_CODEGURUSECURITY_API ThrottlingException & operator=(Aws::Utils::Json::JsonView jsonValue)
ThrottlingException & WithServiceCode(ServiceCodeT &&value)
ThrottlingException & WithMessage(MessageT &&value)
ThrottlingException & WithQuotaCode(QuotaCodeT &&value)
AWS_CODEGURUSECURITY_API ThrottlingException(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue