AWS SDK for C++  1.9.104
AWS SDK for C++
TooManyRequestsException.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace Utils
15 {
16 namespace Json
17 {
18  class JsonValue;
19  class JsonView;
20 } // namespace Json
21 } // namespace Utils
22 namespace Athena
23 {
24 namespace Model
25 {
26 
33  {
34  public:
39 
40 
41 
42  inline const Aws::String& GetMessage() const{ return m_message; }
43 
44 
45  inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
46 
47 
48  inline void SetMessage(const Aws::String& value) { m_messageHasBeenSet = true; m_message = value; }
49 
50 
51  inline void SetMessage(Aws::String&& value) { m_messageHasBeenSet = true; m_message = std::move(value); }
52 
53 
54  inline void SetMessage(const char* value) { m_messageHasBeenSet = true; m_message.assign(value); }
55 
56 
57  inline TooManyRequestsException& WithMessage(const Aws::String& value) { SetMessage(value); return *this;}
58 
59 
60  inline TooManyRequestsException& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;}
61 
62 
63  inline TooManyRequestsException& WithMessage(const char* value) { SetMessage(value); return *this;}
64 
65 
66 
67  inline const ThrottleReason& GetReason() const{ return m_reason; }
68 
69 
70  inline bool ReasonHasBeenSet() const { return m_reasonHasBeenSet; }
71 
72 
73  inline void SetReason(const ThrottleReason& value) { m_reasonHasBeenSet = true; m_reason = value; }
74 
75 
76  inline void SetReason(ThrottleReason&& value) { m_reasonHasBeenSet = true; m_reason = std::move(value); }
77 
78 
79  inline TooManyRequestsException& WithReason(const ThrottleReason& value) { SetReason(value); return *this;}
80 
81 
82  inline TooManyRequestsException& WithReason(ThrottleReason&& value) { SetReason(std::move(value)); return *this;}
83 
84  private:
85 
86  Aws::String m_message;
87  bool m_messageHasBeenSet;
88 
89  ThrottleReason m_reason;
90  bool m_reasonHasBeenSet;
91  };
92 
93 } // namespace Model
94 } // namespace Athena
95 } // namespace Aws
Aws::Athena::Model::TooManyRequestsException::MessageHasBeenSet
bool MessageHasBeenSet() const
Definition: TooManyRequestsException.h:45
AWS_ATHENA_API
#define AWS_ATHENA_API
Definition: Athena_EXPORTS.h:28
ThrottleReason.h
Aws::Athena::Model::TooManyRequestsException::TooManyRequestsException
TooManyRequestsException(Aws::Utils::Json::JsonView jsonValue)
Aws::Athena::Model::TooManyRequestsException::WithMessage
TooManyRequestsException & WithMessage(Aws::String &&value)
Definition: TooManyRequestsException.h:60
Aws::Athena::Model::TooManyRequestsException::WithReason
TooManyRequestsException & WithReason(const ThrottleReason &value)
Definition: TooManyRequestsException.h:79
Aws::Athena::Model::TooManyRequestsException::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::Athena::Model::TooManyRequestsException::TooManyRequestsException
TooManyRequestsException()
Aws::Athena::Model::TooManyRequestsException::GetReason
const ThrottleReason & GetReason() const
Definition: TooManyRequestsException.h:67
Aws::Athena::Model::TooManyRequestsException::SetMessage
void SetMessage(Aws::String &&value)
Definition: TooManyRequestsException.h:51
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
Aws::Athena::Model::TooManyRequestsException::SetMessage
void SetMessage(const char *value)
Definition: TooManyRequestsException.h:54
AWSString.h
Athena_EXPORTS.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::Athena::Model::TooManyRequestsException::SetMessage
void SetMessage(const Aws::String &value)
Definition: TooManyRequestsException.h:48
Aws::Athena::Model::TooManyRequestsException::WithReason
TooManyRequestsException & WithReason(ThrottleReason &&value)
Definition: TooManyRequestsException.h:82
Aws::Athena::Model::ThrottleReason
ThrottleReason
Definition: ThrottleReason.h:17
Aws::Athena::Model::TooManyRequestsException::SetReason
void SetReason(const ThrottleReason &value)
Definition: TooManyRequestsException.h:73
Aws
Definition: AccessManagementClient.h:15
Aws::Athena::Model::TooManyRequestsException::operator=
TooManyRequestsException & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::Athena::Model::TooManyRequestsException::WithMessage
TooManyRequestsException & WithMessage(const char *value)
Definition: TooManyRequestsException.h:63
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::Athena::Model::TooManyRequestsException::GetMessage
const Aws::String & GetMessage() const
Definition: TooManyRequestsException.h:42
Aws::Athena::Model::TooManyRequestsException::SetReason
void SetReason(ThrottleReason &&value)
Definition: TooManyRequestsException.h:76
Aws::Athena::Model::TooManyRequestsException::WithMessage
TooManyRequestsException & WithMessage(const Aws::String &value)
Definition: TooManyRequestsException.h:57
Aws::Athena::Model::TooManyRequestsException
Definition: TooManyRequestsException.h:33
Aws::Athena::Model::TooManyRequestsException::ReasonHasBeenSet
bool ReasonHasBeenSet() const
Definition: TooManyRequestsException.h:70