AWS SDK for C++

AWS SDK for C++ Version 1.11.930

Loading...
Searching...
No Matches
ServiceQuotaExceededException.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/opensearchmemory/OpenSearchMemory_EXPORTS.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace OpenSearchMemory {
20namespace Model {
21
29 public:
30 AWS_OPENSEARCHMEMORY_API ServiceQuotaExceededException() = default;
31 AWS_OPENSEARCHMEMORY_API ServiceQuotaExceededException(Aws::Utils::Json::JsonView jsonValue);
33 AWS_OPENSEARCHMEMORY_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
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
58 inline const Aws::String& GetQuotaCode() const { return m_quotaCode; }
59 inline bool QuotaCodeHasBeenSet() const { return m_quotaCodeHasBeenSet; }
60 template <typename QuotaCodeT = Aws::String>
61 void SetQuotaCode(QuotaCodeT&& value) {
62 m_quotaCodeHasBeenSet = true;
63 m_quotaCode = std::forward<QuotaCodeT>(value);
64 }
65 template <typename QuotaCodeT = Aws::String>
67 SetQuotaCode(std::forward<QuotaCodeT>(value));
68 return *this;
69 }
71
73
76 inline const Aws::String& GetServiceCode() const { return m_serviceCode; }
77 inline bool ServiceCodeHasBeenSet() const { return m_serviceCodeHasBeenSet; }
78 template <typename ServiceCodeT = Aws::String>
79 void SetServiceCode(ServiceCodeT&& value) {
80 m_serviceCodeHasBeenSet = true;
81 m_serviceCode = std::forward<ServiceCodeT>(value);
82 }
83 template <typename ServiceCodeT = Aws::String>
85 SetServiceCode(std::forward<ServiceCodeT>(value));
86 return *this;
87 }
89 private:
90 Aws::String m_message;
91
92 Aws::String m_quotaCode;
93
94 Aws::String m_serviceCode;
95 bool m_messageHasBeenSet = false;
96 bool m_quotaCodeHasBeenSet = false;
97 bool m_serviceCodeHasBeenSet = false;
98};
99
100} // namespace Model
101} // namespace OpenSearchMemory
102} // namespace Aws
ServiceQuotaExceededException & WithMessage(MessageT &&value)
ServiceQuotaExceededException & WithServiceCode(ServiceCodeT &&value)
AWS_OPENSEARCHMEMORY_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_OPENSEARCHMEMORY_API ServiceQuotaExceededException(Aws::Utils::Json::JsonView jsonValue)
AWS_OPENSEARCHMEMORY_API ServiceQuotaExceededException & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_OPENSEARCHMEMORY_API ServiceQuotaExceededException()=default
ServiceQuotaExceededException & WithQuotaCode(QuotaCodeT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue