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>
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>
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>
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>
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>
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>
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>>
122 template<
typename ContextKeyT = Aws::String,
typename ContextValueT = Aws::String>
124 m_contextHasBeenSet =
true; m_context.emplace(std::forward<ContextKeyT>(key), std::forward<ContextValueT>(value));
return *
this;
130 bool m_messageHasBeenSet =
false;
133 bool m_reasonHasBeenSet =
false;
136 bool m_resourceTypeHasBeenSet =
false;
139 bool m_serviceCodeHasBeenSet =
false;
142 bool m_quotaCodeHasBeenSet =
false;
145 bool m_resourceIdHasBeenSet =
false;
148 bool m_contextHasBeenSet =
false;
ServiceQuotaExceededException & AddContext(ContextKeyT &&key, ContextValueT &&value)
ServiceQuotaExceededException & WithResourceId(ResourceIdT &&value)
bool MessageHasBeenSet() const
bool ContextHasBeenSet() const
const Aws::String & GetQuotaCode() const
ServiceQuotaExceededExceptionReason GetReason() const
bool ServiceCodeHasBeenSet() const
bool ResourceIdHasBeenSet() const
void SetContext(ContextT &&value)
void SetServiceCode(ServiceCodeT &&value)
void SetResourceId(ResourceIdT &&value)
void SetMessage(MessageT &&value)
ServiceQuotaExceededException & WithReason(ServiceQuotaExceededExceptionReason value)
bool QuotaCodeHasBeenSet() const
const Aws::String & GetServiceCode() const
AWS_DEADLINE_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_DEADLINE_API ServiceQuotaExceededException()=default
const Aws::String & GetResourceId() const
bool ResourceTypeHasBeenSet() const
const Aws::String & GetMessage() const
AWS_DEADLINE_API ServiceQuotaExceededException(Aws::Utils::Json::JsonView jsonValue)
AWS_DEADLINE_API ServiceQuotaExceededException & operator=(Aws::Utils::Json::JsonView jsonValue)
ServiceQuotaExceededException & WithMessage(MessageT &&value)
const Aws::String & GetResourceType() const
void SetReason(ServiceQuotaExceededExceptionReason value)
ServiceQuotaExceededException & WithQuotaCode(QuotaCodeT &&value)
void SetQuotaCode(QuotaCodeT &&value)
ServiceQuotaExceededException & WithResourceType(ResourceTypeT &&value)
const Aws::Map< Aws::String, Aws::String > & GetContext() const
bool ReasonHasBeenSet() const
ServiceQuotaExceededException & WithContext(ContextT &&value)
void SetResourceType(ResourceTypeT &&value)
ServiceQuotaExceededException & WithServiceCode(ServiceCodeT &&value)
ServiceQuotaExceededExceptionReason
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