AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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:
38 AWS_DEADLINE_API ServiceQuotaExceededException() = default;
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 template<typename MessageT = Aws::String>
49 void SetMessage(MessageT&& value) { m_messageHasBeenSet = true; m_message = std::forward<MessageT>(value); }
50 template<typename MessageT = Aws::String>
51 ServiceQuotaExceededException& WithMessage(MessageT&& value) { SetMessage(std::forward<MessageT>(value)); return *this;}
53
55
58 inline ServiceQuotaExceededExceptionReason GetReason() const { return m_reason; }
59 inline bool ReasonHasBeenSet() const { return m_reasonHasBeenSet; }
60 inline void SetReason(ServiceQuotaExceededExceptionReason value) { m_reasonHasBeenSet = true; m_reason = value; }
63
65
68 inline const Aws::String& GetResourceType() const { return m_resourceType; }
69 inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; }
70 template<typename ResourceTypeT = Aws::String>
71 void SetResourceType(ResourceTypeT&& value) { m_resourceTypeHasBeenSet = true; m_resourceType = std::forward<ResourceTypeT>(value); }
72 template<typename ResourceTypeT = Aws::String>
73 ServiceQuotaExceededException& WithResourceType(ResourceTypeT&& value) { SetResourceType(std::forward<ResourceTypeT>(value)); return *this;}
75
77
80 inline const Aws::String& GetServiceCode() const { return m_serviceCode; }
81 inline bool ServiceCodeHasBeenSet() const { return m_serviceCodeHasBeenSet; }
82 template<typename ServiceCodeT = Aws::String>
83 void SetServiceCode(ServiceCodeT&& value) { m_serviceCodeHasBeenSet = true; m_serviceCode = std::forward<ServiceCodeT>(value); }
84 template<typename ServiceCodeT = Aws::String>
85 ServiceQuotaExceededException& WithServiceCode(ServiceCodeT&& value) { SetServiceCode(std::forward<ServiceCodeT>(value)); return *this;}
87
89
92 inline const Aws::String& GetQuotaCode() const { return m_quotaCode; }
93 inline bool QuotaCodeHasBeenSet() const { return m_quotaCodeHasBeenSet; }
94 template<typename QuotaCodeT = Aws::String>
95 void SetQuotaCode(QuotaCodeT&& value) { m_quotaCodeHasBeenSet = true; m_quotaCode = std::forward<QuotaCodeT>(value); }
96 template<typename QuotaCodeT = Aws::String>
97 ServiceQuotaExceededException& WithQuotaCode(QuotaCodeT&& value) { SetQuotaCode(std::forward<QuotaCodeT>(value)); return *this;}
99
101
104 inline const Aws::String& GetResourceId() const { return m_resourceId; }
105 inline bool ResourceIdHasBeenSet() const { return m_resourceIdHasBeenSet; }
106 template<typename ResourceIdT = Aws::String>
107 void SetResourceId(ResourceIdT&& value) { m_resourceIdHasBeenSet = true; m_resourceId = std::forward<ResourceIdT>(value); }
108 template<typename ResourceIdT = Aws::String>
109 ServiceQuotaExceededException& WithResourceId(ResourceIdT&& value) { SetResourceId(std::forward<ResourceIdT>(value)); return *this;}
111
113
116 inline const Aws::Map<Aws::String, Aws::String>& GetContext() const { return m_context; }
117 inline bool ContextHasBeenSet() const { return m_contextHasBeenSet; }
118 template<typename ContextT = Aws::Map<Aws::String, Aws::String>>
119 void SetContext(ContextT&& value) { m_contextHasBeenSet = true; m_context = std::forward<ContextT>(value); }
120 template<typename ContextT = Aws::Map<Aws::String, Aws::String>>
121 ServiceQuotaExceededException& WithContext(ContextT&& value) { SetContext(std::forward<ContextT>(value)); return *this;}
122 template<typename ContextKeyT = Aws::String, typename ContextValueT = Aws::String>
123 ServiceQuotaExceededException& AddContext(ContextKeyT&& key, ContextValueT&& value) {
124 m_contextHasBeenSet = true; m_context.emplace(std::forward<ContextKeyT>(key), std::forward<ContextValueT>(value)); return *this;
125 }
127 private:
128
129 Aws::String m_message;
130 bool m_messageHasBeenSet = false;
131
133 bool m_reasonHasBeenSet = false;
134
135 Aws::String m_resourceType;
136 bool m_resourceTypeHasBeenSet = false;
137
138 Aws::String m_serviceCode;
139 bool m_serviceCodeHasBeenSet = false;
140
141 Aws::String m_quotaCode;
142 bool m_quotaCodeHasBeenSet = false;
143
144 Aws::String m_resourceId;
145 bool m_resourceIdHasBeenSet = false;
146
148 bool m_contextHasBeenSet = false;
149 };
150
151} // namespace Model
152} // namespace deadline
153} // namespace Aws
ServiceQuotaExceededException & AddContext(ContextKeyT &&key, ContextValueT &&value)
ServiceQuotaExceededException & WithResourceId(ResourceIdT &&value)
ServiceQuotaExceededExceptionReason GetReason() const
ServiceQuotaExceededException & WithReason(ServiceQuotaExceededExceptionReason value)
AWS_DEADLINE_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_DEADLINE_API ServiceQuotaExceededException()=default
AWS_DEADLINE_API ServiceQuotaExceededException(Aws::Utils::Json::JsonView jsonValue)
AWS_DEADLINE_API ServiceQuotaExceededException & operator=(Aws::Utils::Json::JsonView jsonValue)
ServiceQuotaExceededException & WithMessage(MessageT &&value)
void SetReason(ServiceQuotaExceededExceptionReason value)
ServiceQuotaExceededException & WithQuotaCode(QuotaCodeT &&value)
ServiceQuotaExceededException & WithResourceType(ResourceTypeT &&value)
const Aws::Map< Aws::String, Aws::String > & GetContext() const
ServiceQuotaExceededException & WithContext(ContextT &&value)
ServiceQuotaExceededException & WithServiceCode(ServiceCodeT &&value)
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