AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetMessage(const Aws::String& value) { m_messageHasBeenSet = true; m_message = value; }
49 inline void SetMessage(Aws::String&& value) { m_messageHasBeenSet = true; m_message = std::move(value); }
50 inline void SetMessage(const char* value) { m_messageHasBeenSet = true; m_message.assign(value); }
51 inline NoSuchEntityException& WithMessage(const Aws::String& value) { SetMessage(value); return *this;}
52 inline NoSuchEntityException& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;}
53 inline NoSuchEntityException& WithMessage(const char* value) { SetMessage(value); return *this;}
55
57
60 inline const NoSuchEntityErrorCode& GetErrorCode() const{ return m_errorCode; }
61 inline bool ErrorCodeHasBeenSet() const { return m_errorCodeHasBeenSet; }
62 inline void SetErrorCode(const NoSuchEntityErrorCode& value) { m_errorCodeHasBeenSet = true; m_errorCode = value; }
63 inline void SetErrorCode(NoSuchEntityErrorCode&& value) { m_errorCodeHasBeenSet = true; m_errorCode = std::move(value); }
64 inline NoSuchEntityException& WithErrorCode(const NoSuchEntityErrorCode& value) { SetErrorCode(value); return *this;}
65 inline NoSuchEntityException& WithErrorCode(NoSuchEntityErrorCode&& value) { SetErrorCode(std::move(value)); return *this;}
67
69
72 inline bool GetCanRetry() const{ return m_canRetry; }
73 inline bool CanRetryHasBeenSet() const { return m_canRetryHasBeenSet; }
74 inline void SetCanRetry(bool value) { m_canRetryHasBeenSet = true; m_canRetry = value; }
75 inline NoSuchEntityException& WithCanRetry(bool value) { SetCanRetry(value); return *this;}
77 private:
78
79 Aws::String m_message;
80 bool m_messageHasBeenSet = false;
81
82 NoSuchEntityErrorCode m_errorCode;
83 bool m_errorCodeHasBeenSet = false;
84
85 bool m_canRetry;
86 bool m_canRetryHasBeenSet = false;
87 };
88
89} // namespace Model
90} // namespace Inspector
91} // namespace Aws
NoSuchEntityException & WithErrorCode(const NoSuchEntityErrorCode &value)
NoSuchEntityException & WithMessage(Aws::String &&value)
NoSuchEntityException & WithCanRetry(bool value)
void SetErrorCode(NoSuchEntityErrorCode &&value)
NoSuchEntityException & WithMessage(const Aws::String &value)
void SetErrorCode(const NoSuchEntityErrorCode &value)
AWS_INSPECTOR_API NoSuchEntityException(Aws::Utils::Json::JsonView jsonValue)
AWS_INSPECTOR_API NoSuchEntityException & operator=(Aws::Utils::Json::JsonView jsonValue)
NoSuchEntityException & WithErrorCode(NoSuchEntityErrorCode &&value)
NoSuchEntityException & WithMessage(const char *value)
const NoSuchEntityErrorCode & GetErrorCode() const
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