AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
NoSuchEntityException.h
1
6#pragma once
7#include <aws/inspector/Inspector_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/inspector/model/NoSuchEntityErrorCode.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 Inspector
23{
24namespace Model
25{
26
34 {
35 public:
36 AWS_INSPECTOR_API NoSuchEntityException() = default;
39 AWS_INSPECTOR_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
46 inline const Aws::String& GetMessage() const { return m_message; }
47 inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
48 template<typename MessageT = Aws::String>
49 void SetMessage(MessageT&& value) { m_messageHasBeenSet = true; m_message = std::forward<MessageT>(value); }
50 template<typename MessageT = Aws::String>
51 NoSuchEntityException& WithMessage(MessageT&& value) { SetMessage(std::forward<MessageT>(value)); return *this;}
53
55
58 inline NoSuchEntityErrorCode GetErrorCode() const { return m_errorCode; }
59 inline bool ErrorCodeHasBeenSet() const { return m_errorCodeHasBeenSet; }
60 inline void SetErrorCode(NoSuchEntityErrorCode value) { m_errorCodeHasBeenSet = true; m_errorCode = value; }
63
65
68 inline bool GetCanRetry() const { return m_canRetry; }
69 inline bool CanRetryHasBeenSet() const { return m_canRetryHasBeenSet; }
70 inline void SetCanRetry(bool value) { m_canRetryHasBeenSet = true; m_canRetry = value; }
71 inline NoSuchEntityException& WithCanRetry(bool value) { SetCanRetry(value); return *this;}
73 private:
74
75 Aws::String m_message;
76 bool m_messageHasBeenSet = false;
77
79 bool m_errorCodeHasBeenSet = false;
80
81 bool m_canRetry{false};
82 bool m_canRetryHasBeenSet = false;
83 };
84
85} // namespace Model
86} // namespace Inspector
87} // namespace Aws
NoSuchEntityException & WithMessage(MessageT &&value)
NoSuchEntityException & WithCanRetry(bool value)
NoSuchEntityException & WithErrorCode(NoSuchEntityErrorCode value)
void SetErrorCode(NoSuchEntityErrorCode value)
AWS_INSPECTOR_API NoSuchEntityException(Aws::Utils::Json::JsonView jsonValue)
AWS_INSPECTOR_API NoSuchEntityException()=default
AWS_INSPECTOR_API NoSuchEntityException & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_INSPECTOR_API Aws::Utils::Json::JsonValue Jsonize() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue