AWS SDK for C++

AWS SDK for C++ Version 1.11.716

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