AWS SDK for C++

AWS SDK for C++ Version 1.11.608

Loading...
Searching...
No Matches
ThrottlingException.h
1
6#pragma once
7#include <aws/ssm-incidents/SSMIncidents_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/ssm-incidents/model/ServiceCode.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace SSMIncidents
23{
24namespace Model
25{
26
34 {
35 public:
36 AWS_SSMINCIDENTS_API ThrottlingException() = default;
37 AWS_SSMINCIDENTS_API ThrottlingException(Aws::Utils::Json::JsonView jsonValue);
39 AWS_SSMINCIDENTS_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
44 inline const Aws::String& GetMessage() const { return m_message; }
45 inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
46 template<typename MessageT = Aws::String>
47 void SetMessage(MessageT&& value) { m_messageHasBeenSet = true; m_message = std::forward<MessageT>(value); }
48 template<typename MessageT = Aws::String>
49 ThrottlingException& WithMessage(MessageT&& value) { SetMessage(std::forward<MessageT>(value)); return *this;}
51
53
56 inline const Aws::String& GetQuotaCode() const { return m_quotaCode; }
57 inline bool QuotaCodeHasBeenSet() const { return m_quotaCodeHasBeenSet; }
58 template<typename QuotaCodeT = Aws::String>
59 void SetQuotaCode(QuotaCodeT&& value) { m_quotaCodeHasBeenSet = true; m_quotaCode = std::forward<QuotaCodeT>(value); }
60 template<typename QuotaCodeT = Aws::String>
61 ThrottlingException& WithQuotaCode(QuotaCodeT&& value) { SetQuotaCode(std::forward<QuotaCodeT>(value)); return *this;}
63
65
68 inline ServiceCode GetServiceCode() const { return m_serviceCode; }
69 inline bool ServiceCodeHasBeenSet() const { return m_serviceCodeHasBeenSet; }
70 inline void SetServiceCode(ServiceCode value) { m_serviceCodeHasBeenSet = true; m_serviceCode = value; }
71 inline ThrottlingException& WithServiceCode(ServiceCode value) { SetServiceCode(value); return *this;}
73 private:
74
75 Aws::String m_message;
76 bool m_messageHasBeenSet = false;
77
78 Aws::String m_quotaCode;
79 bool m_quotaCodeHasBeenSet = false;
80
81 ServiceCode m_serviceCode{ServiceCode::NOT_SET};
82 bool m_serviceCodeHasBeenSet = false;
83 };
84
85} // namespace Model
86} // namespace SSMIncidents
87} // namespace Aws
ThrottlingException & WithMessage(MessageT &&value)
ThrottlingException & WithServiceCode(ServiceCode value)
AWS_SSMINCIDENTS_API ThrottlingException & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_SSMINCIDENTS_API ThrottlingException()=default
AWS_SSMINCIDENTS_API ThrottlingException(Aws::Utils::Json::JsonView jsonValue)
AWS_SSMINCIDENTS_API Aws::Utils::Json::JsonValue Jsonize() const
ThrottlingException & WithQuotaCode(QuotaCodeT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue