AWS SDK for C++

AWS SDK for C++ Version 1.11.757

Loading...
Searching...
No Matches
ServiceQuotaExceededException.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/pcs/PCS_EXPORTS.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace PCS {
20namespace Model {
21
37 public:
38 AWS_PCS_API ServiceQuotaExceededException() = default;
42
44
45 inline const Aws::String& GetMessage() const { return m_message; }
46 inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
47 template <typename MessageT = Aws::String>
48 void SetMessage(MessageT&& value) {
49 m_messageHasBeenSet = true;
50 m_message = std::forward<MessageT>(value);
51 }
52 template <typename MessageT = Aws::String>
54 SetMessage(std::forward<MessageT>(value));
55 return *this;
56 }
58
60
63 inline const Aws::String& GetServiceCode() const { return m_serviceCode; }
64 inline bool ServiceCodeHasBeenSet() const { return m_serviceCodeHasBeenSet; }
65 template <typename ServiceCodeT = Aws::String>
66 void SetServiceCode(ServiceCodeT&& value) {
67 m_serviceCodeHasBeenSet = true;
68 m_serviceCode = std::forward<ServiceCodeT>(value);
69 }
70 template <typename ServiceCodeT = Aws::String>
72 SetServiceCode(std::forward<ServiceCodeT>(value));
73 return *this;
74 }
76
78
82 inline const Aws::String& GetResourceId() const { return m_resourceId; }
83 inline bool ResourceIdHasBeenSet() const { return m_resourceIdHasBeenSet; }
84 template <typename ResourceIdT = Aws::String>
85 void SetResourceId(ResourceIdT&& value) {
86 m_resourceIdHasBeenSet = true;
87 m_resourceId = std::forward<ResourceIdT>(value);
88 }
89 template <typename ResourceIdT = Aws::String>
91 SetResourceId(std::forward<ResourceIdT>(value));
92 return *this;
93 }
95
97
101 inline const Aws::String& GetResourceType() const { return m_resourceType; }
102 inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; }
103 template <typename ResourceTypeT = Aws::String>
104 void SetResourceType(ResourceTypeT&& value) {
105 m_resourceTypeHasBeenSet = true;
106 m_resourceType = std::forward<ResourceTypeT>(value);
107 }
108 template <typename ResourceTypeT = Aws::String>
110 SetResourceType(std::forward<ResourceTypeT>(value));
111 return *this;
112 }
114
116
119 inline const Aws::String& GetQuotaCode() const { return m_quotaCode; }
120 inline bool QuotaCodeHasBeenSet() const { return m_quotaCodeHasBeenSet; }
121 template <typename QuotaCodeT = Aws::String>
122 void SetQuotaCode(QuotaCodeT&& value) {
123 m_quotaCodeHasBeenSet = true;
124 m_quotaCode = std::forward<QuotaCodeT>(value);
125 }
126 template <typename QuotaCodeT = Aws::String>
128 SetQuotaCode(std::forward<QuotaCodeT>(value));
129 return *this;
130 }
132 private:
133 Aws::String m_message;
134
135 Aws::String m_serviceCode;
136
137 Aws::String m_resourceId;
138
139 Aws::String m_resourceType;
140
141 Aws::String m_quotaCode;
142 bool m_messageHasBeenSet = false;
143 bool m_serviceCodeHasBeenSet = false;
144 bool m_resourceIdHasBeenSet = false;
145 bool m_resourceTypeHasBeenSet = false;
146 bool m_quotaCodeHasBeenSet = false;
147};
148
149} // namespace Model
150} // namespace PCS
151} // namespace Aws
ServiceQuotaExceededException & WithResourceId(ResourceIdT &&value)
AWS_PCS_API Aws::Utils::Json::JsonValue Jsonize() const
ServiceQuotaExceededException & WithServiceCode(ServiceCodeT &&value)
ServiceQuotaExceededException & WithMessage(MessageT &&value)
ServiceQuotaExceededException & WithQuotaCode(QuotaCodeT &&value)
AWS_PCS_API ServiceQuotaExceededException & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_PCS_API ServiceQuotaExceededException(Aws::Utils::Json::JsonView jsonValue)
ServiceQuotaExceededException & WithResourceType(ResourceTypeT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue