AWS SDK for C++  1.9.21
AWS SDK for C++
ServiceUnavailableException.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 APIGateway
22 {
23 namespace Model
24 {
25 
34  {
35  public:
40 
41 
42 
43  inline const Aws::String& GetRetryAfterSeconds() const{ return m_retryAfterSeconds; }
44 
45 
46  inline bool RetryAfterSecondsHasBeenSet() const { return m_retryAfterSecondsHasBeenSet; }
47 
48 
49  inline void SetRetryAfterSeconds(const Aws::String& value) { m_retryAfterSecondsHasBeenSet = true; m_retryAfterSeconds = value; }
50 
51 
52  inline void SetRetryAfterSeconds(Aws::String&& value) { m_retryAfterSecondsHasBeenSet = true; m_retryAfterSeconds = std::move(value); }
53 
54 
55  inline void SetRetryAfterSeconds(const char* value) { m_retryAfterSecondsHasBeenSet = true; m_retryAfterSeconds.assign(value); }
56 
57 
58  inline ServiceUnavailableException& WithRetryAfterSeconds(const Aws::String& value) { SetRetryAfterSeconds(value); return *this;}
59 
60 
61  inline ServiceUnavailableException& WithRetryAfterSeconds(Aws::String&& value) { SetRetryAfterSeconds(std::move(value)); return *this;}
62 
63 
64  inline ServiceUnavailableException& WithRetryAfterSeconds(const char* value) { SetRetryAfterSeconds(value); return *this;}
65 
66 
67 
68  inline const Aws::String& GetMessage() const{ return m_message; }
69 
70 
71  inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
72 
73 
74  inline void SetMessage(const Aws::String& value) { m_messageHasBeenSet = true; m_message = value; }
75 
76 
77  inline void SetMessage(Aws::String&& value) { m_messageHasBeenSet = true; m_message = std::move(value); }
78 
79 
80  inline void SetMessage(const char* value) { m_messageHasBeenSet = true; m_message.assign(value); }
81 
82 
83  inline ServiceUnavailableException& WithMessage(const Aws::String& value) { SetMessage(value); return *this;}
84 
85 
86  inline ServiceUnavailableException& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;}
87 
88 
89  inline ServiceUnavailableException& WithMessage(const char* value) { SetMessage(value); return *this;}
90 
91  private:
92 
93  Aws::String m_retryAfterSeconds;
94  bool m_retryAfterSecondsHasBeenSet;
95 
96  Aws::String m_message;
97  bool m_messageHasBeenSet;
98  };
99 
100 } // namespace Model
101 } // namespace APIGateway
102 } // namespace Aws
Aws::APIGateway::Model::ServiceUnavailableException::SetMessage
void SetMessage(const char *value)
Definition: ServiceUnavailableException.h:80
AWS_APIGATEWAY_API
#define AWS_APIGATEWAY_API
Definition: APIGateway_EXPORTS.h:28
APIGateway_EXPORTS.h
Aws::APIGateway::Model::ServiceUnavailableException::operator=
ServiceUnavailableException & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::APIGateway::Model::ServiceUnavailableException::MessageHasBeenSet
bool MessageHasBeenSet() const
Definition: ServiceUnavailableException.h:71
Aws::APIGateway::Model::ServiceUnavailableException::SetRetryAfterSeconds
void SetRetryAfterSeconds(const char *value)
Definition: ServiceUnavailableException.h:55
Aws::APIGateway::Model::ServiceUnavailableException::GetRetryAfterSeconds
const Aws::String & GetRetryAfterSeconds() const
Definition: ServiceUnavailableException.h:43
Aws::APIGateway::Model::ServiceUnavailableException::WithMessage
ServiceUnavailableException & WithMessage(const Aws::String &value)
Definition: ServiceUnavailableException.h:83
Aws::APIGateway::Model::ServiceUnavailableException::SetRetryAfterSeconds
void SetRetryAfterSeconds(Aws::String &&value)
Definition: ServiceUnavailableException.h:52
Aws::APIGateway::Model::ServiceUnavailableException::ServiceUnavailableException
ServiceUnavailableException(Aws::Utils::Json::JsonView jsonValue)
Aws::APIGateway::Model::ServiceUnavailableException::WithRetryAfterSeconds
ServiceUnavailableException & WithRetryAfterSeconds(Aws::String &&value)
Definition: ServiceUnavailableException.h:61
Aws::APIGateway::Model::ServiceUnavailableException::SetMessage
void SetMessage(const Aws::String &value)
Definition: ServiceUnavailableException.h:74
Aws::APIGateway::Model::ServiceUnavailableException::WithMessage
ServiceUnavailableException & WithMessage(const char *value)
Definition: ServiceUnavailableException.h:89
Aws::APIGateway::Model::ServiceUnavailableException::WithRetryAfterSeconds
ServiceUnavailableException & WithRetryAfterSeconds(const Aws::String &value)
Definition: ServiceUnavailableException.h:58
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:222
Aws::APIGateway::Model::ServiceUnavailableException::GetMessage
const Aws::String & GetMessage() const
Definition: ServiceUnavailableException.h:68
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:30
Aws::APIGateway::Model::ServiceUnavailableException::ServiceUnavailableException
ServiceUnavailableException()
Aws::APIGateway::Model::ServiceUnavailableException::RetryAfterSecondsHasBeenSet
bool RetryAfterSecondsHasBeenSet() const
Definition: ServiceUnavailableException.h:46
Aws::APIGateway::Model::ServiceUnavailableException::WithRetryAfterSeconds
ServiceUnavailableException & WithRetryAfterSeconds(const char *value)
Definition: ServiceUnavailableException.h:64
Aws::APIGateway::Model::ServiceUnavailableException
Definition: ServiceUnavailableException.h:34
Aws
Definition: AccessManagementClient.h:15
Aws::APIGateway::Model::ServiceUnavailableException::SetRetryAfterSeconds
void SetRetryAfterSeconds(const Aws::String &value)
Definition: ServiceUnavailableException.h:49
Aws::APIGateway::Model::ServiceUnavailableException::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::APIGateway::Model::ServiceUnavailableException::WithMessage
ServiceUnavailableException & WithMessage(Aws::String &&value)
Definition: ServiceUnavailableException.h:86
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::APIGateway::Model::ServiceUnavailableException::SetMessage
void SetMessage(Aws::String &&value)
Definition: ServiceUnavailableException.h:77