AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
ValidationException.h
1
6#pragma once
7#include <aws/keyspacesstreams/KeyspacesStreams_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/keyspacesstreams/model/ValidationExceptionType.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace KeyspacesStreams
23{
24namespace Model
25{
26
37 {
38 public:
39 AWS_KEYSPACESSTREAMS_API ValidationException() = default;
40 AWS_KEYSPACESSTREAMS_API ValidationException(Aws::Utils::Json::JsonView jsonValue);
41 AWS_KEYSPACESSTREAMS_API ValidationException& operator=(Aws::Utils::Json::JsonView jsonValue);
42 AWS_KEYSPACESSTREAMS_API Aws::Utils::Json::JsonValue Jsonize() const;
43
44
46
50 inline const Aws::String& GetMessage() const { return m_message; }
51 inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
52 template<typename MessageT = Aws::String>
53 void SetMessage(MessageT&& value) { m_messageHasBeenSet = true; m_message = std::forward<MessageT>(value); }
54 template<typename MessageT = Aws::String>
55 ValidationException& WithMessage(MessageT&& value) { SetMessage(std::forward<MessageT>(value)); return *this;}
57
59
63 inline ValidationExceptionType GetErrorCode() const { return m_errorCode; }
64 inline bool ErrorCodeHasBeenSet() const { return m_errorCodeHasBeenSet; }
65 inline void SetErrorCode(ValidationExceptionType value) { m_errorCodeHasBeenSet = true; m_errorCode = value; }
68 private:
69
70 Aws::String m_message;
71 bool m_messageHasBeenSet = false;
72
74 bool m_errorCodeHasBeenSet = false;
75 };
76
77} // namespace Model
78} // namespace KeyspacesStreams
79} // namespace Aws
AWS_KEYSPACESSTREAMS_API ValidationException(Aws::Utils::Json::JsonView jsonValue)
ValidationException & WithErrorCode(ValidationExceptionType value)
AWS_KEYSPACESSTREAMS_API ValidationException()=default
AWS_KEYSPACESSTREAMS_API Aws::Utils::Json::JsonValue Jsonize() const
ValidationException & WithMessage(MessageT &&value)
void SetErrorCode(ValidationExceptionType value)
AWS_KEYSPACESSTREAMS_API ValidationException & operator=(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue