AWS SDK for C++

AWS SDK for C++ Version 1.11.943

Loading...
Searching...
No Matches
ServiceQuotaExceededException.h
1
6#pragma once
7#include <aws/context/Context_EXPORTS.h>
8#include <aws/context/model/ResourceType.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/crt/cbor/Cbor.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Cbor {
17class CborValue;
18} // namespace Cbor
19} // namespace Utils
20namespace Context {
21namespace Model {
22
31 public:
32 AWS_CONTEXT_API ServiceQuotaExceededException() = default;
33 AWS_CONTEXT_API ServiceQuotaExceededException(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
34 AWS_CONTEXT_API ServiceQuotaExceededException& operator=(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
35 AWS_CONTEXT_API void CborEncode(Aws::Crt::Cbor::CborEncoder& encoder) const;
36
38
41 inline const Aws::String& GetMessage() const { return m_message; }
42 inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
43 template <typename MessageT = Aws::String>
44 void SetMessage(MessageT&& value) {
45 m_messageHasBeenSet = true;
46 m_message = std::forward<MessageT>(value);
47 }
48 template <typename MessageT = Aws::String>
50 SetMessage(std::forward<MessageT>(value));
51 return *this;
52 }
54
56
59 inline const Aws::String& GetQuotaCode() const { return m_quotaCode; }
60 inline bool QuotaCodeHasBeenSet() const { return m_quotaCodeHasBeenSet; }
61 template <typename QuotaCodeT = Aws::String>
62 void SetQuotaCode(QuotaCodeT&& value) {
63 m_quotaCodeHasBeenSet = true;
64 m_quotaCode = std::forward<QuotaCodeT>(value);
65 }
66 template <typename QuotaCodeT = Aws::String>
68 SetQuotaCode(std::forward<QuotaCodeT>(value));
69 return *this;
70 }
72
74
77 inline const Aws::String& GetServiceCode() const { return m_serviceCode; }
78 inline bool ServiceCodeHasBeenSet() const { return m_serviceCodeHasBeenSet; }
79 template <typename ServiceCodeT = Aws::String>
80 void SetServiceCode(ServiceCodeT&& value) {
81 m_serviceCodeHasBeenSet = true;
82 m_serviceCode = std::forward<ServiceCodeT>(value);
83 }
84 template <typename ServiceCodeT = Aws::String>
86 SetServiceCode(std::forward<ServiceCodeT>(value));
87 return *this;
88 }
90
92
95 inline const Aws::String& GetResourceId() const { return m_resourceId; }
96 inline bool ResourceIdHasBeenSet() const { return m_resourceIdHasBeenSet; }
97 template <typename ResourceIdT = Aws::String>
98 void SetResourceId(ResourceIdT&& value) {
99 m_resourceIdHasBeenSet = true;
100 m_resourceId = std::forward<ResourceIdT>(value);
101 }
102 template <typename ResourceIdT = Aws::String>
104 SetResourceId(std::forward<ResourceIdT>(value));
105 return *this;
106 }
108
110
120 inline ResourceType GetResourceType() const { return m_resourceType; }
121 inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; }
122 inline void SetResourceType(ResourceType value) {
123 m_resourceTypeHasBeenSet = true;
124 m_resourceType = value;
125 }
127 SetResourceType(value);
128 return *this;
129 }
131 private:
132 Aws::String m_message;
133
134 Aws::String m_quotaCode;
135
136 Aws::String m_serviceCode;
137
138 Aws::String m_resourceId;
139
140 ResourceType m_resourceType{ResourceType::NOT_SET};
141 bool m_messageHasBeenSet = false;
142 bool m_quotaCodeHasBeenSet = false;
143 bool m_serviceCodeHasBeenSet = false;
144 bool m_resourceIdHasBeenSet = false;
145 bool m_resourceTypeHasBeenSet = false;
146};
147
148} // namespace Model
149} // namespace Context
150} // namespace Aws
AWS_CONTEXT_API ServiceQuotaExceededException(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
AWS_CONTEXT_API void CborEncode(Aws::Crt::Cbor::CborEncoder &encoder) const
ServiceQuotaExceededException & WithResourceType(ResourceType value)
ServiceQuotaExceededException & WithMessage(MessageT &&value)
AWS_CONTEXT_API ServiceQuotaExceededException & operator=(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
ServiceQuotaExceededException & WithQuotaCode(QuotaCodeT &&value)
ServiceQuotaExceededException & WithResourceId(ResourceIdT &&value)
ServiceQuotaExceededException & WithServiceCode(ServiceCodeT &&value)
AWS_CONTEXT_API ServiceQuotaExceededException()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String