AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
InternalServerException.h
1
6#pragma once
7#include <aws/inspector-scan/Inspectorscan_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/inspector-scan/model/InternalServerExceptionReason.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace inspectorscan
23{
24namespace Model
25{
26
34 {
35 public:
36 AWS_INSPECTORSCAN_API InternalServerException();
37 AWS_INSPECTORSCAN_API InternalServerException(Aws::Utils::Json::JsonView jsonValue);
39 AWS_INSPECTORSCAN_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
44 inline const Aws::String& GetMessage() const{ return m_message; }
45 inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
46 inline void SetMessage(const Aws::String& value) { m_messageHasBeenSet = true; m_message = value; }
47 inline void SetMessage(Aws::String&& value) { m_messageHasBeenSet = true; m_message = std::move(value); }
48 inline void SetMessage(const char* value) { m_messageHasBeenSet = true; m_message.assign(value); }
49 inline InternalServerException& WithMessage(const Aws::String& value) { SetMessage(value); return *this;}
50 inline InternalServerException& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;}
51 inline InternalServerException& WithMessage(const char* value) { SetMessage(value); return *this;}
53
55
58 inline const InternalServerExceptionReason& GetReason() const{ return m_reason; }
59 inline bool ReasonHasBeenSet() const { return m_reasonHasBeenSet; }
60 inline void SetReason(const InternalServerExceptionReason& value) { m_reasonHasBeenSet = true; m_reason = value; }
61 inline void SetReason(InternalServerExceptionReason&& value) { m_reasonHasBeenSet = true; m_reason = std::move(value); }
62 inline InternalServerException& WithReason(const InternalServerExceptionReason& value) { SetReason(value); return *this;}
63 inline InternalServerException& WithReason(InternalServerExceptionReason&& value) { SetReason(std::move(value)); return *this;}
65
67
70 inline int GetRetryAfterSeconds() const{ return m_retryAfterSeconds; }
71 inline bool RetryAfterSecondsHasBeenSet() const { return m_retryAfterSecondsHasBeenSet; }
72 inline void SetRetryAfterSeconds(int value) { m_retryAfterSecondsHasBeenSet = true; m_retryAfterSeconds = value; }
73 inline InternalServerException& WithRetryAfterSeconds(int value) { SetRetryAfterSeconds(value); return *this;}
75 private:
76
77 Aws::String m_message;
78 bool m_messageHasBeenSet = false;
79
81 bool m_reasonHasBeenSet = false;
82
83 int m_retryAfterSeconds;
84 bool m_retryAfterSecondsHasBeenSet = false;
85 };
86
87} // namespace Model
88} // namespace inspectorscan
89} // namespace Aws
void SetReason(const InternalServerExceptionReason &value)
void SetReason(InternalServerExceptionReason &&value)
InternalServerException & WithMessage(Aws::String &&value)
InternalServerException & WithRetryAfterSeconds(int value)
InternalServerException & WithReason(InternalServerExceptionReason &&value)
AWS_INSPECTORSCAN_API Aws::Utils::Json::JsonValue Jsonize() const
InternalServerException & WithMessage(const char *value)
InternalServerException & WithReason(const InternalServerExceptionReason &value)
InternalServerException & WithMessage(const Aws::String &value)
AWS_INSPECTORSCAN_API InternalServerException & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_INSPECTORSCAN_API InternalServerException(Aws::Utils::Json::JsonView jsonValue)
const InternalServerExceptionReason & GetReason() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue