AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ServiceQuotaExceededException.h
1
6#pragma once
7#include <aws/deadline/Deadline_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/deadline/model/ServiceQuotaExceededExceptionReason.h>
10#include <aws/core/utils/memory/stl/AWSMap.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace deadline
24{
25namespace Model
26{
27
36 {
37 public:
41 AWS_DEADLINE_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
46 inline const Aws::String& GetMessage() const{ return m_message; }
47 inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
48 inline void SetMessage(const Aws::String& value) { m_messageHasBeenSet = true; m_message = value; }
49 inline void SetMessage(Aws::String&& value) { m_messageHasBeenSet = true; m_message = std::move(value); }
50 inline void SetMessage(const char* value) { m_messageHasBeenSet = true; m_message.assign(value); }
51 inline ServiceQuotaExceededException& WithMessage(const Aws::String& value) { SetMessage(value); return *this;}
52 inline ServiceQuotaExceededException& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;}
53 inline ServiceQuotaExceededException& WithMessage(const char* value) { SetMessage(value); return *this;}
55
57
60 inline const ServiceQuotaExceededExceptionReason& GetReason() const{ return m_reason; }
61 inline bool ReasonHasBeenSet() const { return m_reasonHasBeenSet; }
62 inline void SetReason(const ServiceQuotaExceededExceptionReason& value) { m_reasonHasBeenSet = true; m_reason = value; }
63 inline void SetReason(ServiceQuotaExceededExceptionReason&& value) { m_reasonHasBeenSet = true; m_reason = std::move(value); }
67
69
72 inline const Aws::String& GetResourceType() const{ return m_resourceType; }
73 inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; }
74 inline void SetResourceType(const Aws::String& value) { m_resourceTypeHasBeenSet = true; m_resourceType = value; }
75 inline void SetResourceType(Aws::String&& value) { m_resourceTypeHasBeenSet = true; m_resourceType = std::move(value); }
76 inline void SetResourceType(const char* value) { m_resourceTypeHasBeenSet = true; m_resourceType.assign(value); }
77 inline ServiceQuotaExceededException& WithResourceType(const Aws::String& value) { SetResourceType(value); return *this;}
78 inline ServiceQuotaExceededException& WithResourceType(Aws::String&& value) { SetResourceType(std::move(value)); return *this;}
79 inline ServiceQuotaExceededException& WithResourceType(const char* value) { SetResourceType(value); return *this;}
81
83
86 inline const Aws::String& GetServiceCode() const{ return m_serviceCode; }
87 inline bool ServiceCodeHasBeenSet() const { return m_serviceCodeHasBeenSet; }
88 inline void SetServiceCode(const Aws::String& value) { m_serviceCodeHasBeenSet = true; m_serviceCode = value; }
89 inline void SetServiceCode(Aws::String&& value) { m_serviceCodeHasBeenSet = true; m_serviceCode = std::move(value); }
90 inline void SetServiceCode(const char* value) { m_serviceCodeHasBeenSet = true; m_serviceCode.assign(value); }
91 inline ServiceQuotaExceededException& WithServiceCode(const Aws::String& value) { SetServiceCode(value); return *this;}
92 inline ServiceQuotaExceededException& WithServiceCode(Aws::String&& value) { SetServiceCode(std::move(value)); return *this;}
93 inline ServiceQuotaExceededException& WithServiceCode(const char* value) { SetServiceCode(value); return *this;}
95
97
100 inline const Aws::String& GetQuotaCode() const{ return m_quotaCode; }
101 inline bool QuotaCodeHasBeenSet() const { return m_quotaCodeHasBeenSet; }
102 inline void SetQuotaCode(const Aws::String& value) { m_quotaCodeHasBeenSet = true; m_quotaCode = value; }
103 inline void SetQuotaCode(Aws::String&& value) { m_quotaCodeHasBeenSet = true; m_quotaCode = std::move(value); }
104 inline void SetQuotaCode(const char* value) { m_quotaCodeHasBeenSet = true; m_quotaCode.assign(value); }
105 inline ServiceQuotaExceededException& WithQuotaCode(const Aws::String& value) { SetQuotaCode(value); return *this;}
106 inline ServiceQuotaExceededException& WithQuotaCode(Aws::String&& value) { SetQuotaCode(std::move(value)); return *this;}
107 inline ServiceQuotaExceededException& WithQuotaCode(const char* value) { SetQuotaCode(value); return *this;}
109
111
114 inline const Aws::String& GetResourceId() const{ return m_resourceId; }
115 inline bool ResourceIdHasBeenSet() const { return m_resourceIdHasBeenSet; }
116 inline void SetResourceId(const Aws::String& value) { m_resourceIdHasBeenSet = true; m_resourceId = value; }
117 inline void SetResourceId(Aws::String&& value) { m_resourceIdHasBeenSet = true; m_resourceId = std::move(value); }
118 inline void SetResourceId(const char* value) { m_resourceIdHasBeenSet = true; m_resourceId.assign(value); }
119 inline ServiceQuotaExceededException& WithResourceId(const Aws::String& value) { SetResourceId(value); return *this;}
120 inline ServiceQuotaExceededException& WithResourceId(Aws::String&& value) { SetResourceId(std::move(value)); return *this;}
121 inline ServiceQuotaExceededException& WithResourceId(const char* value) { SetResourceId(value); return *this;}
123
125
128 inline const Aws::Map<Aws::String, Aws::String>& GetContext() const{ return m_context; }
129 inline bool ContextHasBeenSet() const { return m_contextHasBeenSet; }
130 inline void SetContext(const Aws::Map<Aws::String, Aws::String>& value) { m_contextHasBeenSet = true; m_context = value; }
131 inline void SetContext(Aws::Map<Aws::String, Aws::String>&& value) { m_contextHasBeenSet = true; m_context = std::move(value); }
134 inline ServiceQuotaExceededException& AddContext(const Aws::String& key, const Aws::String& value) { m_contextHasBeenSet = true; m_context.emplace(key, value); return *this; }
135 inline ServiceQuotaExceededException& AddContext(Aws::String&& key, const Aws::String& value) { m_contextHasBeenSet = true; m_context.emplace(std::move(key), value); return *this; }
136 inline ServiceQuotaExceededException& AddContext(const Aws::String& key, Aws::String&& value) { m_contextHasBeenSet = true; m_context.emplace(key, std::move(value)); return *this; }
137 inline ServiceQuotaExceededException& AddContext(Aws::String&& key, Aws::String&& value) { m_contextHasBeenSet = true; m_context.emplace(std::move(key), std::move(value)); return *this; }
138 inline ServiceQuotaExceededException& AddContext(const char* key, Aws::String&& value) { m_contextHasBeenSet = true; m_context.emplace(key, std::move(value)); return *this; }
139 inline ServiceQuotaExceededException& AddContext(Aws::String&& key, const char* value) { m_contextHasBeenSet = true; m_context.emplace(std::move(key), value); return *this; }
140 inline ServiceQuotaExceededException& AddContext(const char* key, const char* value) { m_contextHasBeenSet = true; m_context.emplace(key, value); return *this; }
142 private:
143
144 Aws::String m_message;
145 bool m_messageHasBeenSet = false;
146
148 bool m_reasonHasBeenSet = false;
149
150 Aws::String m_resourceType;
151 bool m_resourceTypeHasBeenSet = false;
152
153 Aws::String m_serviceCode;
154 bool m_serviceCodeHasBeenSet = false;
155
156 Aws::String m_quotaCode;
157 bool m_quotaCodeHasBeenSet = false;
158
159 Aws::String m_resourceId;
160 bool m_resourceIdHasBeenSet = false;
161
163 bool m_contextHasBeenSet = false;
164 };
165
166} // namespace Model
167} // namespace deadline
168} // namespace Aws
ServiceQuotaExceededException & WithMessage(const Aws::String &value)
ServiceQuotaExceededException & WithQuotaCode(const char *value)
ServiceQuotaExceededException & AddContext(const Aws::String &key, Aws::String &&value)
ServiceQuotaExceededException & WithQuotaCode(const Aws::String &value)
ServiceQuotaExceededException & WithServiceCode(const char *value)
void SetReason(const ServiceQuotaExceededExceptionReason &value)
ServiceQuotaExceededException & AddContext(const char *key, const char *value)
ServiceQuotaExceededException & WithResourceId(const char *value)
ServiceQuotaExceededException & AddContext(const Aws::String &key, const Aws::String &value)
ServiceQuotaExceededException & WithMessage(Aws::String &&value)
const ServiceQuotaExceededExceptionReason & GetReason() const
ServiceQuotaExceededException & AddContext(Aws::String &&key, const char *value)
void SetContext(Aws::Map< Aws::String, Aws::String > &&value)
ServiceQuotaExceededException & WithMessage(const char *value)
ServiceQuotaExceededException & WithServiceCode(Aws::String &&value)
void SetReason(ServiceQuotaExceededExceptionReason &&value)
ServiceQuotaExceededException & AddContext(Aws::String &&key, Aws::String &&value)
AWS_DEADLINE_API Aws::Utils::Json::JsonValue Jsonize() const
void SetContext(const Aws::Map< Aws::String, Aws::String > &value)
ServiceQuotaExceededException & WithQuotaCode(Aws::String &&value)
ServiceQuotaExceededException & WithResourceId(Aws::String &&value)
ServiceQuotaExceededException & WithResourceType(const char *value)
ServiceQuotaExceededException & WithReason(const ServiceQuotaExceededExceptionReason &value)
AWS_DEADLINE_API ServiceQuotaExceededException(Aws::Utils::Json::JsonView jsonValue)
AWS_DEADLINE_API ServiceQuotaExceededException & operator=(Aws::Utils::Json::JsonView jsonValue)
ServiceQuotaExceededException & AddContext(const char *key, Aws::String &&value)
ServiceQuotaExceededException & WithResourceType(const Aws::String &value)
ServiceQuotaExceededException & WithResourceType(Aws::String &&value)
ServiceQuotaExceededException & WithContext(const Aws::Map< Aws::String, Aws::String > &value)
ServiceQuotaExceededException & WithContext(Aws::Map< Aws::String, Aws::String > &&value)
ServiceQuotaExceededException & AddContext(Aws::String &&key, const Aws::String &value)
ServiceQuotaExceededException & WithReason(ServiceQuotaExceededExceptionReason &&value)
ServiceQuotaExceededException & WithResourceId(const Aws::String &value)
ServiceQuotaExceededException & WithServiceCode(const Aws::String &value)
const Aws::Map< Aws::String, Aws::String > & GetContext() const
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue