AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
InternalException.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/inspector/Inspector_EXPORTS.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace Inspector {
20namespace Model {
21
28 public:
29 AWS_INSPECTOR_API InternalException() = default;
30 AWS_INSPECTOR_API InternalException(Aws::Utils::Json::JsonView jsonValue);
32 AWS_INSPECTOR_API Aws::Utils::Json::JsonValue Jsonize() const;
33
35
38 inline const Aws::String& GetMessage() const { return m_message; }
39 inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
40 template <typename MessageT = Aws::String>
41 void SetMessage(MessageT&& value) {
42 m_messageHasBeenSet = true;
43 m_message = std::forward<MessageT>(value);
44 }
45 template <typename MessageT = Aws::String>
46 InternalException& WithMessage(MessageT&& value) {
47 SetMessage(std::forward<MessageT>(value));
48 return *this;
49 }
51
53
56 inline bool GetCanRetry() const { return m_canRetry; }
57 inline bool CanRetryHasBeenSet() const { return m_canRetryHasBeenSet; }
58 inline void SetCanRetry(bool value) {
59 m_canRetryHasBeenSet = true;
60 m_canRetry = value;
61 }
62 inline InternalException& WithCanRetry(bool value) {
63 SetCanRetry(value);
64 return *this;
65 }
67 private:
68 Aws::String m_message;
69
70 bool m_canRetry{false};
71 bool m_messageHasBeenSet = false;
72 bool m_canRetryHasBeenSet = false;
73};
74
75} // namespace Model
76} // namespace Inspector
77} // namespace Aws
AWS_INSPECTOR_API Aws::Utils::Json::JsonValue Jsonize() const
InternalException & WithMessage(MessageT &&value)
AWS_INSPECTOR_API InternalException(Aws::Utils::Json::JsonView jsonValue)
AWS_INSPECTOR_API InternalException()=default
InternalException & WithCanRetry(bool value)
AWS_INSPECTOR_API InternalException & operator=(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue