AWS SDK for C++

AWS SDK for C++ Version 1.11.751

Loading...
Searching...
No Matches
AccessDeniedException.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/detective/Detective_EXPORTS.h>
9#include <aws/detective/model/ErrorCode.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace Detective {
21namespace Model {
22
30 public:
31 AWS_DETECTIVE_API AccessDeniedException() = default;
34 AWS_DETECTIVE_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
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>
47 SetMessage(std::forward<MessageT>(value));
48 return *this;
49 }
51
53
56 inline ErrorCode GetErrorCode() const { return m_errorCode; }
57 inline bool ErrorCodeHasBeenSet() const { return m_errorCodeHasBeenSet; }
58 inline void SetErrorCode(ErrorCode value) {
59 m_errorCodeHasBeenSet = true;
60 m_errorCode = value;
61 }
63 SetErrorCode(value);
64 return *this;
65 }
67
69
72 inline const Aws::String& GetErrorCodeReason() const { return m_errorCodeReason; }
73 inline bool ErrorCodeReasonHasBeenSet() const { return m_errorCodeReasonHasBeenSet; }
74 template <typename ErrorCodeReasonT = Aws::String>
75 void SetErrorCodeReason(ErrorCodeReasonT&& value) {
76 m_errorCodeReasonHasBeenSet = true;
77 m_errorCodeReason = std::forward<ErrorCodeReasonT>(value);
78 }
79 template <typename ErrorCodeReasonT = Aws::String>
80 AccessDeniedException& WithErrorCodeReason(ErrorCodeReasonT&& value) {
81 SetErrorCodeReason(std::forward<ErrorCodeReasonT>(value));
82 return *this;
83 }
85
87
90 inline ErrorCode GetSubErrorCode() const { return m_subErrorCode; }
91 inline bool SubErrorCodeHasBeenSet() const { return m_subErrorCodeHasBeenSet; }
92 inline void SetSubErrorCode(ErrorCode value) {
93 m_subErrorCodeHasBeenSet = true;
94 m_subErrorCode = value;
95 }
97 SetSubErrorCode(value);
98 return *this;
99 }
101
103
106 inline const Aws::String& GetSubErrorCodeReason() const { return m_subErrorCodeReason; }
107 inline bool SubErrorCodeReasonHasBeenSet() const { return m_subErrorCodeReasonHasBeenSet; }
108 template <typename SubErrorCodeReasonT = Aws::String>
109 void SetSubErrorCodeReason(SubErrorCodeReasonT&& value) {
110 m_subErrorCodeReasonHasBeenSet = true;
111 m_subErrorCodeReason = std::forward<SubErrorCodeReasonT>(value);
112 }
113 template <typename SubErrorCodeReasonT = Aws::String>
114 AccessDeniedException& WithSubErrorCodeReason(SubErrorCodeReasonT&& value) {
115 SetSubErrorCodeReason(std::forward<SubErrorCodeReasonT>(value));
116 return *this;
117 }
119 private:
120 Aws::String m_message;
121
122 ErrorCode m_errorCode{ErrorCode::NOT_SET};
123
124 Aws::String m_errorCodeReason;
125
126 ErrorCode m_subErrorCode{ErrorCode::NOT_SET};
127
128 Aws::String m_subErrorCodeReason;
129 bool m_messageHasBeenSet = false;
130 bool m_errorCodeHasBeenSet = false;
131 bool m_errorCodeReasonHasBeenSet = false;
132 bool m_subErrorCodeHasBeenSet = false;
133 bool m_subErrorCodeReasonHasBeenSet = false;
134};
135
136} // namespace Model
137} // namespace Detective
138} // namespace Aws
AWS_DETECTIVE_API Aws::Utils::Json::JsonValue Jsonize() const
void SetSubErrorCodeReason(SubErrorCodeReasonT &&value)
AccessDeniedException & WithErrorCodeReason(ErrorCodeReasonT &&value)
void SetErrorCodeReason(ErrorCodeReasonT &&value)
AccessDeniedException & WithMessage(MessageT &&value)
AWS_DETECTIVE_API AccessDeniedException(Aws::Utils::Json::JsonView jsonValue)
AccessDeniedException & WithSubErrorCode(ErrorCode value)
AccessDeniedException & WithSubErrorCodeReason(SubErrorCodeReasonT &&value)
AWS_DETECTIVE_API AccessDeniedException()=default
AccessDeniedException & WithErrorCode(ErrorCode value)
AWS_DETECTIVE_API AccessDeniedException & operator=(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue