AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
AccessDeniedException.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/AccessDeniedErrorCode.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 AccessDeniedException();
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 AccessDeniedException& WithMessage(const Aws::String& value) { SetMessage(value); return *this;}
52 inline AccessDeniedException& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;}
53 inline AccessDeniedException& WithMessage(const char* value) { SetMessage(value); return *this;}
55
57
60 inline const AccessDeniedErrorCode& GetErrorCode() const{ return m_errorCode; }
61 inline bool ErrorCodeHasBeenSet() const { return m_errorCodeHasBeenSet; }
62 inline void SetErrorCode(const AccessDeniedErrorCode& value) { m_errorCodeHasBeenSet = true; m_errorCode = value; }
63 inline void SetErrorCode(AccessDeniedErrorCode&& value) { m_errorCodeHasBeenSet = true; m_errorCode = std::move(value); }
64 inline AccessDeniedException& WithErrorCode(const AccessDeniedErrorCode& value) { SetErrorCode(value); return *this;}
65 inline AccessDeniedException& WithErrorCode(AccessDeniedErrorCode&& 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 AccessDeniedException& WithCanRetry(bool value) { SetCanRetry(value); return *this;}
77 private:
78
79 Aws::String m_message;
80 bool m_messageHasBeenSet = false;
81
82 AccessDeniedErrorCode 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
AccessDeniedException & WithMessage(Aws::String &&value)
AccessDeniedException & WithErrorCode(AccessDeniedErrorCode &&value)
AccessDeniedException & WithMessage(const char *value)
AccessDeniedException & WithMessage(const Aws::String &value)
AWS_INSPECTOR_API Aws::Utils::Json::JsonValue Jsonize() const
AccessDeniedException & WithCanRetry(bool value)
AWS_INSPECTOR_API AccessDeniedException & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetErrorCode(const AccessDeniedErrorCode &value)
const AccessDeniedErrorCode & GetErrorCode() const
AWS_INSPECTOR_API AccessDeniedException(Aws::Utils::Json::JsonView jsonValue)
AccessDeniedException & WithErrorCode(const AccessDeniedErrorCode &value)
void SetErrorCode(AccessDeniedErrorCode &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue