AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
ValidationException.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/keyspacesstreams/KeyspacesStreams_EXPORTS.h>
9#include <aws/keyspacesstreams/model/ValidationExceptionType.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace KeyspacesStreams {
21namespace Model {
22
33 public:
34 AWS_KEYSPACESSTREAMS_API ValidationException() = default;
35 AWS_KEYSPACESSTREAMS_API ValidationException(Aws::Utils::Json::JsonView jsonValue);
36 AWS_KEYSPACESSTREAMS_API ValidationException& operator=(Aws::Utils::Json::JsonView jsonValue);
37 AWS_KEYSPACESSTREAMS_API Aws::Utils::Json::JsonValue Jsonize() const;
38
40
44 inline const Aws::String& GetMessage() const { return m_message; }
45 inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
46 template <typename MessageT = Aws::String>
47 void SetMessage(MessageT&& value) {
48 m_messageHasBeenSet = true;
49 m_message = std::forward<MessageT>(value);
50 }
51 template <typename MessageT = Aws::String>
52 ValidationException& WithMessage(MessageT&& value) {
53 SetMessage(std::forward<MessageT>(value));
54 return *this;
55 }
57
59
63 inline ValidationExceptionType GetErrorCode() const { return m_errorCode; }
64 inline bool ErrorCodeHasBeenSet() const { return m_errorCodeHasBeenSet; }
66 m_errorCodeHasBeenSet = true;
67 m_errorCode = value;
68 }
70 SetErrorCode(value);
71 return *this;
72 }
74 private:
75 Aws::String m_message;
76
78 bool m_messageHasBeenSet = false;
79 bool m_errorCodeHasBeenSet = false;
80};
81
82} // namespace Model
83} // namespace KeyspacesStreams
84} // 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