AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
InternalServerException.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
31 public:
32 AWS_SIGNIN_API InternalServerException() = default;
35 AWS_SIGNIN_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
42 inline OAuth2ErrorCode GetError() const { return m_error; }
43 inline bool ErrorHasBeenSet() const { return m_errorHasBeenSet; }
44 inline void SetError(OAuth2ErrorCode value) {
45 m_errorHasBeenSet = true;
46 m_error = value;
47 }
49 SetError(value);
50 return *this;
51 }
53
55
59 inline const Aws::String& GetMessage() const { return m_message; }
60 inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
61 template <typename MessageT = Aws::String>
62 void SetMessage(MessageT&& value) {
63 m_messageHasBeenSet = true;
64 m_message = std::forward<MessageT>(value);
65 }
66 template <typename MessageT = Aws::String>
68 SetMessage(std::forward<MessageT>(value));
69 return *this;
70 }
72 private:
74
75 Aws::String m_message;
76 bool m_errorHasBeenSet = false;
77 bool m_messageHasBeenSet = false;
78};
79
80} // namespace Model
81} // namespace Signin
82} // namespace Aws
AWS_SIGNIN_API InternalServerException(Aws::Utils::Json::JsonView jsonValue)
AWS_SIGNIN_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_SIGNIN_API InternalServerException & operator=(Aws::Utils::Json::JsonView jsonValue)
InternalServerException & WithError(OAuth2ErrorCode value)
AWS_SIGNIN_API InternalServerException()=default
InternalServerException & WithMessage(MessageT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue