AWS SDK for C++

AWS SDK for C++ Version 1.11.744

Loading...
Searching...
No Matches
ValidationException.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/neptune-graph/NeptuneGraph_EXPORTS.h>
9#include <aws/neptune-graph/model/ValidationExceptionReason.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace NeptuneGraph {
21namespace Model {
22
29 public:
30 AWS_NEPTUNEGRAPH_API ValidationException() = default;
31 AWS_NEPTUNEGRAPH_API ValidationException(Aws::Utils::Json::JsonView jsonValue);
33 AWS_NEPTUNEGRAPH_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
39 inline const Aws::String& GetMessage() const { return m_message; }
40 inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
41 template <typename MessageT = Aws::String>
42 void SetMessage(MessageT&& value) {
43 m_messageHasBeenSet = true;
44 m_message = std::forward<MessageT>(value);
45 }
46 template <typename MessageT = Aws::String>
47 ValidationException& WithMessage(MessageT&& value) {
48 SetMessage(std::forward<MessageT>(value));
49 return *this;
50 }
52
54
57 inline ValidationExceptionReason GetReason() const { return m_reason; }
58 inline bool ReasonHasBeenSet() const { return m_reasonHasBeenSet; }
60 m_reasonHasBeenSet = true;
61 m_reason = value;
62 }
64 SetReason(value);
65 return *this;
66 }
68 private:
69 Aws::String m_message;
70
72 bool m_messageHasBeenSet = false;
73 bool m_reasonHasBeenSet = false;
74};
75
76} // namespace Model
77} // namespace NeptuneGraph
78} // namespace Aws
ValidationException & WithMessage(MessageT &&value)
AWS_NEPTUNEGRAPH_API ValidationException()=default
AWS_NEPTUNEGRAPH_API ValidationException & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetReason(ValidationExceptionReason value)
AWS_NEPTUNEGRAPH_API Aws::Utils::Json::JsonValue Jsonize() const
ValidationExceptionReason GetReason() const
ValidationException & WithReason(ValidationExceptionReason value)
AWS_NEPTUNEGRAPH_API ValidationException(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue