AWS SDK for C++

AWS SDK for C++ Version 1.11.773

Loading...
Searching...
No Matches
ServiceQuotaExceededException.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/polly/Polly_EXPORTS.h>
9#include <aws/polly/model/QuotaCode.h>
10#include <aws/polly/model/ServiceCode.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace Polly {
22namespace Model {
23
31 public:
32 AWS_POLLY_API ServiceQuotaExceededException() = default;
35 AWS_POLLY_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
39 inline const Aws::String& GetMessage() const { return m_message; }
40 inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
41 template <typename MessageT = Aws::String>
42 void SetMessage(MessageT&& value) {
43 m_messageHasBeenSet = true;
44 m_message = std::forward<MessageT>(value);
45 }
46 template <typename MessageT = Aws::String>
48 SetMessage(std::forward<MessageT>(value));
49 return *this;
50 }
52
54
57 inline QuotaCode GetQuotaCode() const { return m_quotaCode; }
58 inline bool QuotaCodeHasBeenSet() const { return m_quotaCodeHasBeenSet; }
59 inline void SetQuotaCode(QuotaCode value) {
60 m_quotaCodeHasBeenSet = true;
61 m_quotaCode = value;
62 }
64 SetQuotaCode(value);
65 return *this;
66 }
68
70
73 inline ServiceCode GetServiceCode() const { return m_serviceCode; }
74 inline bool ServiceCodeHasBeenSet() const { return m_serviceCodeHasBeenSet; }
75 inline void SetServiceCode(ServiceCode value) {
76 m_serviceCodeHasBeenSet = true;
77 m_serviceCode = value;
78 }
80 SetServiceCode(value);
81 return *this;
82 }
84 private:
85 Aws::String m_message;
86
87 QuotaCode m_quotaCode{QuotaCode::NOT_SET};
88
89 ServiceCode m_serviceCode{ServiceCode::NOT_SET};
90 bool m_messageHasBeenSet = false;
91 bool m_quotaCodeHasBeenSet = false;
92 bool m_serviceCodeHasBeenSet = false;
93};
94
95} // namespace Model
96} // namespace Polly
97} // namespace Aws
AWS_POLLY_API ServiceQuotaExceededException & operator=(Aws::Utils::Json::JsonView jsonValue)
ServiceQuotaExceededException & WithMessage(MessageT &&value)
AWS_POLLY_API ServiceQuotaExceededException(Aws::Utils::Json::JsonView jsonValue)
ServiceQuotaExceededException & WithServiceCode(ServiceCode value)
ServiceQuotaExceededException & WithQuotaCode(QuotaCode value)
AWS_POLLY_API ServiceQuotaExceededException()=default
AWS_POLLY_API Aws::Utils::Json::JsonValue Jsonize() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue