AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
GremlinQueryStatusAttributes.h
1
6#pragma once
7#include <aws/neptunedata/Neptunedata_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/Document.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 neptunedata
23{
24namespace Model
25{
26
33 {
34 public:
35 AWS_NEPTUNEDATA_API GremlinQueryStatusAttributes() = default;
38 AWS_NEPTUNEDATA_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
45 inline const Aws::String& GetMessage() const { return m_message; }
46 inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
47 template<typename MessageT = Aws::String>
48 void SetMessage(MessageT&& value) { m_messageHasBeenSet = true; m_message = std::forward<MessageT>(value); }
49 template<typename MessageT = Aws::String>
50 GremlinQueryStatusAttributes& WithMessage(MessageT&& value) { SetMessage(std::forward<MessageT>(value)); return *this;}
52
54
57 inline int GetCode() const { return m_code; }
58 inline bool CodeHasBeenSet() const { return m_codeHasBeenSet; }
59 inline void SetCode(int value) { m_codeHasBeenSet = true; m_code = value; }
60 inline GremlinQueryStatusAttributes& WithCode(int value) { SetCode(value); return *this;}
62
64
67 inline Aws::Utils::DocumentView GetAttributes() const { return m_attributes; }
68 inline bool AttributesHasBeenSet() const { return m_attributesHasBeenSet; }
69 template<typename AttributesT = Aws::Utils::Document>
70 void SetAttributes(AttributesT&& value) { m_attributesHasBeenSet = true; m_attributes = std::forward<AttributesT>(value); }
71 template<typename AttributesT = Aws::Utils::Document>
72 GremlinQueryStatusAttributes& WithAttributes(AttributesT&& value) { SetAttributes(std::forward<AttributesT>(value)); return *this;}
74 private:
75
76 Aws::String m_message;
77 bool m_messageHasBeenSet = false;
78
79 int m_code{0};
80 bool m_codeHasBeenSet = false;
81
82 Aws::Utils::Document m_attributes;
83 bool m_attributesHasBeenSet = false;
84 };
85
86} // namespace Model
87} // namespace neptunedata
88} // 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