AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
AccessDeniedException.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/signin/Signin_EXPORTS.h>
9#include <aws/signin/model/OAuth2ErrorCode.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace Signin {
21namespace Model {
22
35 public:
36 AWS_SIGNIN_API AccessDeniedException() = default;
39 AWS_SIGNIN_API Aws::Utils::Json::JsonValue Jsonize() const;
40
42
47 inline OAuth2ErrorCode GetError() const { return m_error; }
48 inline bool ErrorHasBeenSet() const { return m_errorHasBeenSet; }
49 inline void SetError(OAuth2ErrorCode value) {
50 m_errorHasBeenSet = true;
51 m_error = value;
52 }
54 SetError(value);
55 return *this;
56 }
58
60
64 inline const Aws::String& GetMessage() const { return m_message; }
65 inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
66 template <typename MessageT = Aws::String>
67 void SetMessage(MessageT&& value) {
68 m_messageHasBeenSet = true;
69 m_message = std::forward<MessageT>(value);
70 }
71 template <typename MessageT = Aws::String>
73 SetMessage(std::forward<MessageT>(value));
74 return *this;
75 }
77 private:
79
80 Aws::String m_message;
81 bool m_errorHasBeenSet = false;
82 bool m_messageHasBeenSet = false;
83};
84
85} // namespace Model
86} // namespace Signin
87} // namespace Aws
AWS_SIGNIN_API AccessDeniedException(Aws::Utils::Json::JsonView jsonValue)
AWS_SIGNIN_API AccessDeniedException & operator=(Aws::Utils::Json::JsonView jsonValue)
AccessDeniedException & WithError(OAuth2ErrorCode value)
AWS_SIGNIN_API Aws::Utils::Json::JsonValue Jsonize() const
AccessDeniedException & WithMessage(MessageT &&value)
AWS_SIGNIN_API AccessDeniedException()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue