AWS SDK for C++

AWS SDK for C++ Version 1.11.608

Loading...
Searching...
No Matches
GetQueryResult.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/QueryState.h>
10#include <utility>
11
12namespace Aws
13{
14template<typename RESULT_TYPE>
15class AmazonWebServiceResult;
16
17namespace Utils
18{
19namespace Json
20{
21 class JsonValue;
22} // namespace Json
23} // namespace Utils
24namespace NeptuneGraph
25{
26namespace Model
27{
29 {
30 public:
31 AWS_NEPTUNEGRAPH_API GetQueryResult() = default;
34
35
37
40 inline const Aws::String& GetId() const { return m_id; }
41 template<typename IdT = Aws::String>
42 void SetId(IdT&& value) { m_idHasBeenSet = true; m_id = std::forward<IdT>(value); }
43 template<typename IdT = Aws::String>
44 GetQueryResult& WithId(IdT&& value) { SetId(std::forward<IdT>(value)); return *this;}
46
48
51 inline const Aws::String& GetQueryString() const { return m_queryString; }
52 template<typename QueryStringT = Aws::String>
53 void SetQueryString(QueryStringT&& value) { m_queryStringHasBeenSet = true; m_queryString = std::forward<QueryStringT>(value); }
54 template<typename QueryStringT = Aws::String>
55 GetQueryResult& WithQueryString(QueryStringT&& value) { SetQueryString(std::forward<QueryStringT>(value)); return *this;}
57
59
62 inline int GetWaited() const { return m_waited; }
63 inline void SetWaited(int value) { m_waitedHasBeenSet = true; m_waited = value; }
64 inline GetQueryResult& WithWaited(int value) { SetWaited(value); return *this;}
66
68
71 inline int GetElapsed() const { return m_elapsed; }
72 inline void SetElapsed(int value) { m_elapsedHasBeenSet = true; m_elapsed = value; }
73 inline GetQueryResult& WithElapsed(int value) { SetElapsed(value); return *this;}
75
77
80 inline QueryState GetState() const { return m_state; }
81 inline void SetState(QueryState value) { m_stateHasBeenSet = true; m_state = value; }
82 inline GetQueryResult& WithState(QueryState value) { SetState(value); return *this;}
84
86
87 inline const Aws::String& GetRequestId() const { return m_requestId; }
88 template<typename RequestIdT = Aws::String>
89 void SetRequestId(RequestIdT&& value) { m_requestIdHasBeenSet = true; m_requestId = std::forward<RequestIdT>(value); }
90 template<typename RequestIdT = Aws::String>
91 GetQueryResult& WithRequestId(RequestIdT&& value) { SetRequestId(std::forward<RequestIdT>(value)); return *this;}
93 private:
94
95 Aws::String m_id;
96 bool m_idHasBeenSet = false;
97
98 Aws::String m_queryString;
99 bool m_queryStringHasBeenSet = false;
100
101 int m_waited{0};
102 bool m_waitedHasBeenSet = false;
103
104 int m_elapsed{0};
105 bool m_elapsedHasBeenSet = false;
106
108 bool m_stateHasBeenSet = false;
109
110 Aws::String m_requestId;
111 bool m_requestIdHasBeenSet = false;
112 };
113
114} // namespace Model
115} // namespace NeptuneGraph
116} // namespace Aws
void SetQueryString(QueryStringT &&value)
AWS_NEPTUNEGRAPH_API GetQueryResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
AWS_NEPTUNEGRAPH_API GetQueryResult()=default
const Aws::String & GetQueryString() const
const Aws::String & GetRequestId() const
GetQueryResult & WithState(QueryState value)
GetQueryResult & WithId(IdT &&value)
GetQueryResult & WithQueryString(QueryStringT &&value)
GetQueryResult & WithElapsed(int value)
const Aws::String & GetId() const
AWS_NEPTUNEGRAPH_API GetQueryResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetQueryResult & WithRequestId(RequestIdT &&value)
GetQueryResult & WithWaited(int value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue