AWS SDK for C++  1.9.157
AWS SDK for C++
ThrottlingException.h
Go to the documentation of this file.
1 
6 #pragma once
9 #include <utility>
10 
11 namespace Aws
12 {
13 namespace Utils
14 {
15 namespace Json
16 {
17  class JsonValue;
18  class JsonView;
19 } // namespace Json
20 } // namespace Utils
21 namespace AccessAnalyzer
22 {
23 namespace Model
24 {
25 
32  {
33  public:
38 
39 
40 
41  inline const Aws::String& GetMessage() const{ return m_message; }
42 
43 
44  inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
45 
46 
47  inline void SetMessage(const Aws::String& value) { m_messageHasBeenSet = true; m_message = value; }
48 
49 
50  inline void SetMessage(Aws::String&& value) { m_messageHasBeenSet = true; m_message = std::move(value); }
51 
52 
53  inline void SetMessage(const char* value) { m_messageHasBeenSet = true; m_message.assign(value); }
54 
55 
56  inline ThrottlingException& WithMessage(const Aws::String& value) { SetMessage(value); return *this;}
57 
58 
59  inline ThrottlingException& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;}
60 
61 
62  inline ThrottlingException& WithMessage(const char* value) { SetMessage(value); return *this;}
63 
64 
68  inline int GetRetryAfterSeconds() const{ return m_retryAfterSeconds; }
69 
73  inline bool RetryAfterSecondsHasBeenSet() const { return m_retryAfterSecondsHasBeenSet; }
74 
78  inline void SetRetryAfterSeconds(int value) { m_retryAfterSecondsHasBeenSet = true; m_retryAfterSeconds = value; }
79 
83  inline ThrottlingException& WithRetryAfterSeconds(int value) { SetRetryAfterSeconds(value); return *this;}
84 
85  private:
86 
87  Aws::String m_message;
88  bool m_messageHasBeenSet;
89 
90  int m_retryAfterSeconds;
91  bool m_retryAfterSecondsHasBeenSet;
92  };
93 
94 } // namespace Model
95 } // namespace AccessAnalyzer
96 } // namespace Aws
AccessAnalyzer_EXPORTS.h
Aws::AccessAnalyzer::Model::ThrottlingException::SetRetryAfterSeconds
void SetRetryAfterSeconds(int value)
Definition: ThrottlingException.h:78
Aws::AccessAnalyzer::Model::ThrottlingException::GetMessage
const Aws::String & GetMessage() const
Definition: ThrottlingException.h:41
Aws::AccessAnalyzer::Model::ThrottlingException::GetRetryAfterSeconds
int GetRetryAfterSeconds() const
Definition: ThrottlingException.h:68
Aws::AccessAnalyzer::Model::ThrottlingException::MessageHasBeenSet
bool MessageHasBeenSet() const
Definition: ThrottlingException.h:44
Aws::AccessAnalyzer::Model::ThrottlingException::WithMessage
ThrottlingException & WithMessage(const char *value)
Definition: ThrottlingException.h:62
Aws::AccessAnalyzer::Model::ThrottlingException::WithMessage
ThrottlingException & WithMessage(const Aws::String &value)
Definition: ThrottlingException.h:56
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::AccessAnalyzer::Model::ThrottlingException::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::AccessAnalyzer::Model::ThrottlingException::ThrottlingException
ThrottlingException()
Aws::AccessAnalyzer::Model::ThrottlingException::WithMessage
ThrottlingException & WithMessage(Aws::String &&value)
Definition: ThrottlingException.h:59
Aws::AccessAnalyzer::Model::ThrottlingException::SetMessage
void SetMessage(Aws::String &&value)
Definition: ThrottlingException.h:50
Aws::AccessAnalyzer::Model::ThrottlingException::operator=
ThrottlingException & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::MigrationHubStrategyRecommendations::Model::OutputFormat::NOT_SET
@ NOT_SET
Aws
Definition: AccessManagementClient.h:15
AWS_ACCESSANALYZER_API
#define AWS_ACCESSANALYZER_API
Definition: AccessAnalyzer_EXPORTS.h:28
Aws::AccessAnalyzer::Model::ThrottlingException::SetMessage
void SetMessage(const Aws::String &value)
Definition: ThrottlingException.h:47
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::AccessAnalyzer::Model::ThrottlingException::RetryAfterSecondsHasBeenSet
bool RetryAfterSecondsHasBeenSet() const
Definition: ThrottlingException.h:73
Aws::AccessAnalyzer::Model::ThrottlingException
Definition: ThrottlingException.h:32
Aws::AccessAnalyzer::Model::ThrottlingException::SetMessage
void SetMessage(const char *value)
Definition: ThrottlingException.h:53
Aws::AccessAnalyzer::Model::ThrottlingException::WithRetryAfterSeconds
ThrottlingException & WithRetryAfterSeconds(int value)
Definition: ThrottlingException.h:83
Aws::AccessAnalyzer::Model::ThrottlingException::ThrottlingException
ThrottlingException(Aws::Utils::Json::JsonView jsonValue)