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/detective/Detective_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/detective/model/ErrorCode.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 Detective
23{
24namespace Model
25{
26
34 {
35 public:
36 AWS_DETECTIVE_API AccessDeniedException();
39 AWS_DETECTIVE_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 AccessDeniedException& WithMessage(const Aws::String& value) { SetMessage(value); return *this;}
50 inline AccessDeniedException& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;}
51 inline AccessDeniedException& WithMessage(const char* value) { SetMessage(value); return *this;}
53
55
58 inline const ErrorCode& GetErrorCode() const{ return m_errorCode; }
59 inline bool ErrorCodeHasBeenSet() const { return m_errorCodeHasBeenSet; }
60 inline void SetErrorCode(const ErrorCode& value) { m_errorCodeHasBeenSet = true; m_errorCode = value; }
61 inline void SetErrorCode(ErrorCode&& value) { m_errorCodeHasBeenSet = true; m_errorCode = std::move(value); }
62 inline AccessDeniedException& WithErrorCode(const ErrorCode& value) { SetErrorCode(value); return *this;}
63 inline AccessDeniedException& WithErrorCode(ErrorCode&& value) { SetErrorCode(std::move(value)); return *this;}
65
67
70 inline const Aws::String& GetErrorCodeReason() const{ return m_errorCodeReason; }
71 inline bool ErrorCodeReasonHasBeenSet() const { return m_errorCodeReasonHasBeenSet; }
72 inline void SetErrorCodeReason(const Aws::String& value) { m_errorCodeReasonHasBeenSet = true; m_errorCodeReason = value; }
73 inline void SetErrorCodeReason(Aws::String&& value) { m_errorCodeReasonHasBeenSet = true; m_errorCodeReason = std::move(value); }
74 inline void SetErrorCodeReason(const char* value) { m_errorCodeReasonHasBeenSet = true; m_errorCodeReason.assign(value); }
75 inline AccessDeniedException& WithErrorCodeReason(const Aws::String& value) { SetErrorCodeReason(value); return *this;}
76 inline AccessDeniedException& WithErrorCodeReason(Aws::String&& value) { SetErrorCodeReason(std::move(value)); return *this;}
77 inline AccessDeniedException& WithErrorCodeReason(const char* value) { SetErrorCodeReason(value); return *this;}
79
81
84 inline const ErrorCode& GetSubErrorCode() const{ return m_subErrorCode; }
85 inline bool SubErrorCodeHasBeenSet() const { return m_subErrorCodeHasBeenSet; }
86 inline void SetSubErrorCode(const ErrorCode& value) { m_subErrorCodeHasBeenSet = true; m_subErrorCode = value; }
87 inline void SetSubErrorCode(ErrorCode&& value) { m_subErrorCodeHasBeenSet = true; m_subErrorCode = std::move(value); }
88 inline AccessDeniedException& WithSubErrorCode(const ErrorCode& value) { SetSubErrorCode(value); return *this;}
89 inline AccessDeniedException& WithSubErrorCode(ErrorCode&& value) { SetSubErrorCode(std::move(value)); return *this;}
91
93
96 inline const Aws::String& GetSubErrorCodeReason() const{ return m_subErrorCodeReason; }
97 inline bool SubErrorCodeReasonHasBeenSet() const { return m_subErrorCodeReasonHasBeenSet; }
98 inline void SetSubErrorCodeReason(const Aws::String& value) { m_subErrorCodeReasonHasBeenSet = true; m_subErrorCodeReason = value; }
99 inline void SetSubErrorCodeReason(Aws::String&& value) { m_subErrorCodeReasonHasBeenSet = true; m_subErrorCodeReason = std::move(value); }
100 inline void SetSubErrorCodeReason(const char* value) { m_subErrorCodeReasonHasBeenSet = true; m_subErrorCodeReason.assign(value); }
102 inline AccessDeniedException& WithSubErrorCodeReason(Aws::String&& value) { SetSubErrorCodeReason(std::move(value)); return *this;}
103 inline AccessDeniedException& WithSubErrorCodeReason(const char* value) { SetSubErrorCodeReason(value); return *this;}
105 private:
106
107 Aws::String m_message;
108 bool m_messageHasBeenSet = false;
109
110 ErrorCode m_errorCode;
111 bool m_errorCodeHasBeenSet = false;
112
113 Aws::String m_errorCodeReason;
114 bool m_errorCodeReasonHasBeenSet = false;
115
116 ErrorCode m_subErrorCode;
117 bool m_subErrorCodeHasBeenSet = false;
118
119 Aws::String m_subErrorCodeReason;
120 bool m_subErrorCodeReasonHasBeenSet = false;
121 };
122
123} // namespace Model
124} // namespace Detective
125} // namespace Aws
AccessDeniedException & WithErrorCode(const ErrorCode &value)
AccessDeniedException & WithErrorCode(ErrorCode &&value)
AWS_DETECTIVE_API Aws::Utils::Json::JsonValue Jsonize() const
void SetSubErrorCodeReason(const Aws::String &value)
AccessDeniedException & WithErrorCodeReason(const Aws::String &value)
AccessDeniedException & WithMessage(const Aws::String &value)
AccessDeniedException & WithSubErrorCode(ErrorCode &&value)
AccessDeniedException & WithSubErrorCodeReason(Aws::String &&value)
AccessDeniedException & WithSubErrorCode(const ErrorCode &value)
AccessDeniedException & WithSubErrorCodeReason(const Aws::String &value)
AWS_DETECTIVE_API AccessDeniedException(Aws::Utils::Json::JsonView jsonValue)
AccessDeniedException & WithMessage(Aws::String &&value)
void SetErrorCodeReason(const Aws::String &value)
AWS_DETECTIVE_API AccessDeniedException & operator=(Aws::Utils::Json::JsonView jsonValue)
AccessDeniedException & WithErrorCodeReason(const char *value)
AccessDeniedException & WithSubErrorCodeReason(const char *value)
AccessDeniedException & WithErrorCodeReason(Aws::String &&value)
AccessDeniedException & WithMessage(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue