AWS SDK for C++

AWS SDK for C++ Version 1.11.763

Loading...
Searching...
No Matches
ServiceQuotaExceededException.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/verifiedpermissions/VerifiedPermissions_EXPORTS.h>
9#include <aws/verifiedpermissions/model/ResourceType.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace VerifiedPermissions {
21namespace Model {
22
30 public:
31 AWS_VERIFIEDPERMISSIONS_API ServiceQuotaExceededException() = default;
32 AWS_VERIFIEDPERMISSIONS_API ServiceQuotaExceededException(Aws::Utils::Json::JsonView jsonValue);
34 AWS_VERIFIEDPERMISSIONS_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
38 inline const Aws::String& GetMessage() const { return m_message; }
39 inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
40 template <typename MessageT = Aws::String>
41 void SetMessage(MessageT&& value) {
42 m_messageHasBeenSet = true;
43 m_message = std::forward<MessageT>(value);
44 }
45 template <typename MessageT = Aws::String>
47 SetMessage(std::forward<MessageT>(value));
48 return *this;
49 }
51
53
56 inline const Aws::String& GetResourceId() const { return m_resourceId; }
57 inline bool ResourceIdHasBeenSet() const { return m_resourceIdHasBeenSet; }
58 template <typename ResourceIdT = Aws::String>
59 void SetResourceId(ResourceIdT&& value) {
60 m_resourceIdHasBeenSet = true;
61 m_resourceId = std::forward<ResourceIdT>(value);
62 }
63 template <typename ResourceIdT = Aws::String>
65 SetResourceId(std::forward<ResourceIdT>(value));
66 return *this;
67 }
69
71
74 inline ResourceType GetResourceType() const { return m_resourceType; }
75 inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; }
76 inline void SetResourceType(ResourceType value) {
77 m_resourceTypeHasBeenSet = true;
78 m_resourceType = value;
79 }
81 SetResourceType(value);
82 return *this;
83 }
85
87
90 inline const Aws::String& GetServiceCode() const { return m_serviceCode; }
91 inline bool ServiceCodeHasBeenSet() const { return m_serviceCodeHasBeenSet; }
92 template <typename ServiceCodeT = Aws::String>
93 void SetServiceCode(ServiceCodeT&& value) {
94 m_serviceCodeHasBeenSet = true;
95 m_serviceCode = std::forward<ServiceCodeT>(value);
96 }
97 template <typename ServiceCodeT = Aws::String>
99 SetServiceCode(std::forward<ServiceCodeT>(value));
100 return *this;
101 }
103
105
109 inline const Aws::String& GetQuotaCode() const { return m_quotaCode; }
110 inline bool QuotaCodeHasBeenSet() const { return m_quotaCodeHasBeenSet; }
111 template <typename QuotaCodeT = Aws::String>
112 void SetQuotaCode(QuotaCodeT&& value) {
113 m_quotaCodeHasBeenSet = true;
114 m_quotaCode = std::forward<QuotaCodeT>(value);
115 }
116 template <typename QuotaCodeT = Aws::String>
118 SetQuotaCode(std::forward<QuotaCodeT>(value));
119 return *this;
120 }
122 private:
123 Aws::String m_message;
124
125 Aws::String m_resourceId;
126
127 ResourceType m_resourceType{ResourceType::NOT_SET};
128
129 Aws::String m_serviceCode;
130
131 Aws::String m_quotaCode;
132 bool m_messageHasBeenSet = false;
133 bool m_resourceIdHasBeenSet = false;
134 bool m_resourceTypeHasBeenSet = false;
135 bool m_serviceCodeHasBeenSet = false;
136 bool m_quotaCodeHasBeenSet = false;
137};
138
139} // namespace Model
140} // namespace VerifiedPermissions
141} // namespace Aws
ServiceQuotaExceededException & WithResourceId(ResourceIdT &&value)
AWS_VERIFIEDPERMISSIONS_API ServiceQuotaExceededException & operator=(Aws::Utils::Json::JsonView jsonValue)
ServiceQuotaExceededException & WithQuotaCode(QuotaCodeT &&value)
ServiceQuotaExceededException & WithResourceType(ResourceType value)
AWS_VERIFIEDPERMISSIONS_API ServiceQuotaExceededException(Aws::Utils::Json::JsonView jsonValue)
ServiceQuotaExceededException & WithServiceCode(ServiceCodeT &&value)
AWS_VERIFIEDPERMISSIONS_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_VERIFIEDPERMISSIONS_API ServiceQuotaExceededException()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue