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/securitylake/SecurityLake_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <utility>
10
11namespace Aws
12{
13namespace Utils
14{
15namespace Json
16{
17 class JsonValue;
18 class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace SecurityLake
22{
23namespace Model
24{
25
37 {
38 public:
39 AWS_SECURITYLAKE_API AccessDeniedException();
40 AWS_SECURITYLAKE_API AccessDeniedException(Aws::Utils::Json::JsonView jsonValue);
42 AWS_SECURITYLAKE_API Aws::Utils::Json::JsonValue Jsonize() const;
43
44
46
50 inline const Aws::String& GetErrorCode() const{ return m_errorCode; }
51 inline bool ErrorCodeHasBeenSet() const { return m_errorCodeHasBeenSet; }
52 inline void SetErrorCode(const Aws::String& value) { m_errorCodeHasBeenSet = true; m_errorCode = value; }
53 inline void SetErrorCode(Aws::String&& value) { m_errorCodeHasBeenSet = true; m_errorCode = std::move(value); }
54 inline void SetErrorCode(const char* value) { m_errorCodeHasBeenSet = true; m_errorCode.assign(value); }
55 inline AccessDeniedException& WithErrorCode(const Aws::String& value) { SetErrorCode(value); return *this;}
56 inline AccessDeniedException& WithErrorCode(Aws::String&& value) { SetErrorCode(std::move(value)); return *this;}
57 inline AccessDeniedException& WithErrorCode(const char* value) { SetErrorCode(value); return *this;}
59
61
62 inline const Aws::String& GetMessage() const{ return m_message; }
63 inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
64 inline void SetMessage(const Aws::String& value) { m_messageHasBeenSet = true; m_message = value; }
65 inline void SetMessage(Aws::String&& value) { m_messageHasBeenSet = true; m_message = std::move(value); }
66 inline void SetMessage(const char* value) { m_messageHasBeenSet = true; m_message.assign(value); }
67 inline AccessDeniedException& WithMessage(const Aws::String& value) { SetMessage(value); return *this;}
68 inline AccessDeniedException& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;}
69 inline AccessDeniedException& WithMessage(const char* value) { SetMessage(value); return *this;}
71 private:
72
73 Aws::String m_errorCode;
74 bool m_errorCodeHasBeenSet = false;
75
76 Aws::String m_message;
77 bool m_messageHasBeenSet = false;
78 };
79
80} // namespace Model
81} // namespace SecurityLake
82} // namespace Aws
AWS_SECURITYLAKE_API Aws::Utils::Json::JsonValue Jsonize() const
AccessDeniedException & WithMessage(const Aws::String &value)
AccessDeniedException & WithMessage(const char *value)
AWS_SECURITYLAKE_API AccessDeniedException(Aws::Utils::Json::JsonView jsonValue)
AccessDeniedException & WithErrorCode(Aws::String &&value)
AWS_SECURITYLAKE_API AccessDeniedException & operator=(Aws::Utils::Json::JsonView jsonValue)
AccessDeniedException & WithMessage(Aws::String &&value)
AccessDeniedException & WithErrorCode(const char *value)
AccessDeniedException & WithErrorCode(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue