AWS SDK for C++  1.9.123
AWS SDK for C++
InternalServerException.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 GreengrassV2
22 {
23 namespace Model
24 {
25 
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 InternalServerException& WithMessage(const Aws::String& value) { SetMessage(value); return *this;}
58 
59 
60  inline InternalServerException& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;}
61 
62 
63  inline InternalServerException& WithMessage(const char* value) { SetMessage(value); return *this;}
64 
65 
69  inline int GetRetryAfterSeconds() const{ return m_retryAfterSeconds; }
70 
74  inline bool RetryAfterSecondsHasBeenSet() const { return m_retryAfterSecondsHasBeenSet; }
75 
79  inline void SetRetryAfterSeconds(int value) { m_retryAfterSecondsHasBeenSet = true; m_retryAfterSeconds = value; }
80 
84  inline InternalServerException& WithRetryAfterSeconds(int value) { SetRetryAfterSeconds(value); return *this;}
85 
86  private:
87 
88  Aws::String m_message;
89  bool m_messageHasBeenSet;
90 
91  int m_retryAfterSeconds;
92  bool m_retryAfterSecondsHasBeenSet;
93  };
94 
95 } // namespace Model
96 } // namespace GreengrassV2
97 } // namespace Aws
Aws::GreengrassV2::Model::InternalServerException::SetMessage
void SetMessage(Aws::String &&value)
Definition: InternalServerException.h:51
Aws::GreengrassV2::Model::InternalServerException::WithMessage
InternalServerException & WithMessage(const char *value)
Definition: InternalServerException.h:63
GreengrassV2_EXPORTS.h
Aws::GreengrassV2::Model::InternalServerException::GetRetryAfterSeconds
int GetRetryAfterSeconds() const
Definition: InternalServerException.h:69
Aws::GreengrassV2::Model::InternalServerException::InternalServerException
InternalServerException()
Aws::GreengrassV2::Model::InternalServerException
Definition: InternalServerException.h:33
AWS_GREENGRASSV2_API
#define AWS_GREENGRASSV2_API
Definition: GreengrassV2_EXPORTS.h:28
Aws::GreengrassV2::Model::InternalServerException::SetRetryAfterSeconds
void SetRetryAfterSeconds(int value)
Definition: InternalServerException.h:79
Aws::GreengrassV2::Model::InternalServerException::SetMessage
void SetMessage(const char *value)
Definition: InternalServerException.h:54
Aws::GreengrassV2::Model::InternalServerException::WithMessage
InternalServerException & WithMessage(const Aws::String &value)
Definition: InternalServerException.h:57
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::GreengrassV2::Model::InternalServerException::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::GreengrassV2::Model::InternalServerException::WithRetryAfterSeconds
InternalServerException & WithRetryAfterSeconds(int value)
Definition: InternalServerException.h:84
Aws::GreengrassV2::Model::InternalServerException::GetMessage
const Aws::String & GetMessage() const
Definition: InternalServerException.h:42
Aws::GreengrassV2::Model::InternalServerException::MessageHasBeenSet
bool MessageHasBeenSet() const
Definition: InternalServerException.h:45
Aws
Definition: AccessManagementClient.h:15
Aws::GreengrassV2::Model::InternalServerException::RetryAfterSecondsHasBeenSet
bool RetryAfterSecondsHasBeenSet() const
Definition: InternalServerException.h:74
Aws::GreengrassV2::Model::InternalServerException::InternalServerException
InternalServerException(Aws::Utils::Json::JsonView jsonValue)
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::GreengrassV2::Model::InternalServerException::operator=
InternalServerException & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::GreengrassV2::Model::InternalServerException::SetMessage
void SetMessage(const Aws::String &value)
Definition: InternalServerException.h:48
Aws::GreengrassV2::Model::InternalServerException::WithMessage
InternalServerException & WithMessage(Aws::String &&value)
Definition: InternalServerException.h:60