7#include <aws/deadline/Deadline_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSMap.h>
45 template<
typename MessageT = Aws::String>
46 void SetMessage(MessageT&& value) { m_messageHasBeenSet =
true; m_message = std::forward<MessageT>(value); }
47 template<
typename MessageT = Aws::String>
57 template<
typename ServiceCodeT = Aws::String>
58 void SetServiceCode(ServiceCodeT&& value) { m_serviceCodeHasBeenSet =
true; m_serviceCode = std::forward<ServiceCodeT>(value); }
59 template<
typename ServiceCodeT = Aws::String>
69 template<
typename QuotaCodeT = Aws::String>
70 void SetQuotaCode(QuotaCodeT&& value) { m_quotaCodeHasBeenSet =
true; m_quotaCode = std::forward<QuotaCodeT>(value); }
71 template<
typename QuotaCodeT = Aws::String>
81 inline void SetRetryAfterSeconds(
int value) { m_retryAfterSecondsHasBeenSet =
true; m_retryAfterSeconds = value; }
91 template<
typename ContextT = Aws::Map<Aws::String, Aws::String>>
92 void SetContext(ContextT&& value) { m_contextHasBeenSet =
true; m_context = std::forward<ContextT>(value); }
93 template<
typename ContextT = Aws::Map<Aws::String, Aws::String>>
95 template<
typename ContextKeyT = Aws::String,
typename ContextValueT = Aws::String>
97 m_contextHasBeenSet =
true; m_context.emplace(std::forward<ContextKeyT>(key), std::forward<ContextValueT>(value));
return *
this;
103 bool m_messageHasBeenSet =
false;
106 bool m_serviceCodeHasBeenSet =
false;
109 bool m_quotaCodeHasBeenSet =
false;
111 int m_retryAfterSeconds{0};
112 bool m_retryAfterSecondsHasBeenSet =
false;
115 bool m_contextHasBeenSet =
false;
bool RetryAfterSecondsHasBeenSet() const
ThrottlingException & WithServiceCode(ServiceCodeT &&value)
void SetServiceCode(ServiceCodeT &&value)
ThrottlingException & WithQuotaCode(QuotaCodeT &&value)
ThrottlingException & AddContext(ContextKeyT &&key, ContextValueT &&value)
const Aws::Map< Aws::String, Aws::String > & GetContext() const
AWS_DEADLINE_API ThrottlingException(Aws::Utils::Json::JsonView jsonValue)
bool QuotaCodeHasBeenSet() const
AWS_DEADLINE_API ThrottlingException()=default
void SetQuotaCode(QuotaCodeT &&value)
bool ContextHasBeenSet() const
AWS_DEADLINE_API Aws::Utils::Json::JsonValue Jsonize() const
bool MessageHasBeenSet() const
AWS_DEADLINE_API ThrottlingException & operator=(Aws::Utils::Json::JsonView jsonValue)
int GetRetryAfterSeconds() const
const Aws::String & GetQuotaCode() const
void SetContext(ContextT &&value)
bool ServiceCodeHasBeenSet() const
ThrottlingException & WithMessage(MessageT &&value)
void SetMessage(MessageT &&value)
ThrottlingException & WithRetryAfterSeconds(int value)
const Aws::String & GetMessage() const
const Aws::String & GetServiceCode() const
void SetRetryAfterSeconds(int value)
ThrottlingException & WithContext(ContextT &&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