AWS SDK for C++

AWS SDK for C++ Version 1.11.760

Loading...
Searching...
No Matches
GremlinQueryStatusAttributes.h
1
6#pragma once
7#include <aws/core/utils/Document.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/neptunedata/Neptunedata_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace neptunedata {
21namespace Model {
22
29 public:
30 AWS_NEPTUNEDATA_API GremlinQueryStatusAttributes() = default;
33 AWS_NEPTUNEDATA_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>
48 SetMessage(std::forward<MessageT>(value));
49 return *this;
50 }
52
54
57 inline int GetCode() const { return m_code; }
58 inline bool CodeHasBeenSet() const { return m_codeHasBeenSet; }
59 inline void SetCode(int value) {
60 m_codeHasBeenSet = true;
61 m_code = value;
62 }
64 SetCode(value);
65 return *this;
66 }
68
70
73 inline Aws::Utils::DocumentView GetAttributes() const { return m_attributes; }
74 inline bool AttributesHasBeenSet() const { return m_attributesHasBeenSet; }
75 template <typename AttributesT = Aws::Utils::Document>
76 void SetAttributes(AttributesT&& value) {
77 m_attributesHasBeenSet = true;
78 m_attributes = std::forward<AttributesT>(value);
79 }
80 template <typename AttributesT = Aws::Utils::Document>
82 SetAttributes(std::forward<AttributesT>(value));
83 return *this;
84 }
86 private:
87 Aws::String m_message;
88
89 int m_code{0};
90
91 Aws::Utils::Document m_attributes;
92 bool m_messageHasBeenSet = false;
93 bool m_codeHasBeenSet = false;
94 bool m_attributesHasBeenSet = false;
95};
96
97} // namespace Model
98} // namespace neptunedata
99} // namespace Aws
AWS_NEPTUNEDATA_API GremlinQueryStatusAttributes()=default
AWS_NEPTUNEDATA_API GremlinQueryStatusAttributes(Aws::Utils::Json::JsonView jsonValue)
GremlinQueryStatusAttributes & WithMessage(MessageT &&value)
AWS_NEPTUNEDATA_API GremlinQueryStatusAttributes & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_NEPTUNEDATA_API Aws::Utils::Json::JsonValue Jsonize() const
GremlinQueryStatusAttributes & WithAttributes(AttributesT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue