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/core/utils/memory/stl/AWSString.h>
8#include <aws/crt/cbor/Cbor.h>
9#include <aws/workspaces/WorkSpaces_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Cbor {
16class CborValue;
17} // namespace Cbor
18} // namespace Utils
19namespace WorkSpaces {
20namespace Model {
21
29 public:
30 AWS_WORKSPACES_API ServiceQuotaExceededException() = default;
31 AWS_WORKSPACES_API ServiceQuotaExceededException(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
32 AWS_WORKSPACES_API ServiceQuotaExceededException& operator=(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
33 AWS_WORKSPACES_API void CborEncode(Aws::Crt::Cbor::CborEncoder& encoder) 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& GetResourceId() const { return m_resourceId; }
59 inline bool ResourceIdHasBeenSet() const { return m_resourceIdHasBeenSet; }
60 template <typename ResourceIdT = Aws::String>
61 void SetResourceId(ResourceIdT&& value) {
62 m_resourceIdHasBeenSet = true;
63 m_resourceId = std::forward<ResourceIdT>(value);
64 }
65 template <typename ResourceIdT = Aws::String>
67 SetResourceId(std::forward<ResourceIdT>(value));
68 return *this;
69 }
71
73
77 inline const Aws::String& GetResourceType() const { return m_resourceType; }
78 inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; }
79 template <typename ResourceTypeT = Aws::String>
80 void SetResourceType(ResourceTypeT&& value) {
81 m_resourceTypeHasBeenSet = true;
82 m_resourceType = std::forward<ResourceTypeT>(value);
83 }
84 template <typename ResourceTypeT = Aws::String>
86 SetResourceType(std::forward<ResourceTypeT>(value));
87 return *this;
88 }
90
92
96 inline const Aws::String& GetServiceCode() const { return m_serviceCode; }
97 inline bool ServiceCodeHasBeenSet() const { return m_serviceCodeHasBeenSet; }
98 template <typename ServiceCodeT = Aws::String>
99 void SetServiceCode(ServiceCodeT&& value) {
100 m_serviceCodeHasBeenSet = true;
101 m_serviceCode = std::forward<ServiceCodeT>(value);
102 }
103 template <typename ServiceCodeT = Aws::String>
105 SetServiceCode(std::forward<ServiceCodeT>(value));
106 return *this;
107 }
109
111
115 inline const Aws::String& GetQuotaCode() const { return m_quotaCode; }
116 inline bool QuotaCodeHasBeenSet() const { return m_quotaCodeHasBeenSet; }
117 template <typename QuotaCodeT = Aws::String>
118 void SetQuotaCode(QuotaCodeT&& value) {
119 m_quotaCodeHasBeenSet = true;
120 m_quotaCode = std::forward<QuotaCodeT>(value);
121 }
122 template <typename QuotaCodeT = Aws::String>
124 SetQuotaCode(std::forward<QuotaCodeT>(value));
125 return *this;
126 }
128 private:
129 Aws::String m_message;
130
131 Aws::String m_resourceId;
132
133 Aws::String m_resourceType;
134
135 Aws::String m_serviceCode;
136
137 Aws::String m_quotaCode;
138 bool m_messageHasBeenSet = false;
139 bool m_resourceIdHasBeenSet = false;
140 bool m_resourceTypeHasBeenSet = false;
141 bool m_serviceCodeHasBeenSet = false;
142 bool m_quotaCodeHasBeenSet = false;
143};
144
145} // namespace Model
146} // namespace WorkSpaces
147} // namespace Aws
ServiceQuotaExceededException & WithQuotaCode(QuotaCodeT &&value)
AWS_WORKSPACES_API ServiceQuotaExceededException(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
ServiceQuotaExceededException & WithResourceType(ResourceTypeT &&value)
AWS_WORKSPACES_API ServiceQuotaExceededException()=default
ServiceQuotaExceededException & WithResourceId(ResourceIdT &&value)
AWS_WORKSPACES_API ServiceQuotaExceededException & operator=(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
ServiceQuotaExceededException & WithServiceCode(ServiceCodeT &&value)
AWS_WORKSPACES_API void CborEncode(Aws::Crt::Cbor::CborEncoder &encoder) const
ServiceQuotaExceededException & WithMessage(MessageT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String