AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
UnprocessableException.h
1
6#pragma once
7#include <aws/neptune-graph/NeptuneGraph_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/neptune-graph/model/UnprocessableExceptionReason.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 NeptuneGraph
23{
24namespace Model
25{
26
34 {
35 public:
36 AWS_NEPTUNEGRAPH_API UnprocessableException();
37 AWS_NEPTUNEGRAPH_API UnprocessableException(Aws::Utils::Json::JsonView jsonValue);
39 AWS_NEPTUNEGRAPH_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
44 inline const Aws::String& GetMessage() const{ return m_message; }
45 inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
46 inline void SetMessage(const Aws::String& value) { m_messageHasBeenSet = true; m_message = value; }
47 inline void SetMessage(Aws::String&& value) { m_messageHasBeenSet = true; m_message = std::move(value); }
48 inline void SetMessage(const char* value) { m_messageHasBeenSet = true; m_message.assign(value); }
49 inline UnprocessableException& WithMessage(const Aws::String& value) { SetMessage(value); return *this;}
50 inline UnprocessableException& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;}
51 inline UnprocessableException& WithMessage(const char* value) { SetMessage(value); return *this;}
53
55
58 inline const UnprocessableExceptionReason& GetReason() const{ return m_reason; }
59 inline bool ReasonHasBeenSet() const { return m_reasonHasBeenSet; }
60 inline void SetReason(const UnprocessableExceptionReason& value) { m_reasonHasBeenSet = true; m_reason = value; }
61 inline void SetReason(UnprocessableExceptionReason&& value) { m_reasonHasBeenSet = true; m_reason = std::move(value); }
62 inline UnprocessableException& WithReason(const UnprocessableExceptionReason& value) { SetReason(value); return *this;}
63 inline UnprocessableException& WithReason(UnprocessableExceptionReason&& value) { SetReason(std::move(value)); return *this;}
65 private:
66
67 Aws::String m_message;
68 bool m_messageHasBeenSet = false;
69
71 bool m_reasonHasBeenSet = false;
72 };
73
74} // namespace Model
75} // namespace NeptuneGraph
76} // namespace Aws
void SetReason(UnprocessableExceptionReason &&value)
const UnprocessableExceptionReason & GetReason() const
UnprocessableException & WithMessage(const Aws::String &value)
AWS_NEPTUNEGRAPH_API UnprocessableException(Aws::Utils::Json::JsonView jsonValue)
UnprocessableException & WithReason(const UnprocessableExceptionReason &value)
AWS_NEPTUNEGRAPH_API UnprocessableException & operator=(Aws::Utils::Json::JsonView jsonValue)
UnprocessableException & WithMessage(const char *value)
AWS_NEPTUNEGRAPH_API Aws::Utils::Json::JsonValue Jsonize() const
void SetReason(const UnprocessableExceptionReason &value)
UnprocessableException & WithReason(UnprocessableExceptionReason &&value)
UnprocessableException & WithMessage(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue