AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ExecuteQueryResult.h
1
6#pragma once
7#include <aws/iottwinmaker/IoTTwinMaker_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/iottwinmaker/model/ColumnDescription.h>
11#include <aws/iottwinmaker/model/Row.h>
12#include <utility>
13
14namespace Aws
15{
16template<typename RESULT_TYPE>
17class AmazonWebServiceResult;
18
19namespace Utils
20{
21namespace Json
22{
23 class JsonValue;
24} // namespace Json
25} // namespace Utils
26namespace IoTTwinMaker
27{
28namespace Model
29{
31 {
32 public:
33 AWS_IOTTWINMAKER_API ExecuteQueryResult();
36
37
39
42 inline const Aws::Vector<ColumnDescription>& GetColumnDescriptions() const{ return m_columnDescriptions; }
43 inline void SetColumnDescriptions(const Aws::Vector<ColumnDescription>& value) { m_columnDescriptions = value; }
44 inline void SetColumnDescriptions(Aws::Vector<ColumnDescription>&& value) { m_columnDescriptions = std::move(value); }
47 inline ExecuteQueryResult& AddColumnDescriptions(const ColumnDescription& value) { m_columnDescriptions.push_back(value); return *this; }
48 inline ExecuteQueryResult& AddColumnDescriptions(ColumnDescription&& value) { m_columnDescriptions.push_back(std::move(value)); return *this; }
50
52
55 inline const Aws::Vector<Row>& GetRows() const{ return m_rows; }
56 inline void SetRows(const Aws::Vector<Row>& value) { m_rows = value; }
57 inline void SetRows(Aws::Vector<Row>&& value) { m_rows = std::move(value); }
58 inline ExecuteQueryResult& WithRows(const Aws::Vector<Row>& value) { SetRows(value); return *this;}
59 inline ExecuteQueryResult& WithRows(Aws::Vector<Row>&& value) { SetRows(std::move(value)); return *this;}
60 inline ExecuteQueryResult& AddRows(const Row& value) { m_rows.push_back(value); return *this; }
61 inline ExecuteQueryResult& AddRows(Row&& value) { m_rows.push_back(std::move(value)); return *this; }
63
65
68 inline const Aws::String& GetNextToken() const{ return m_nextToken; }
69 inline void SetNextToken(const Aws::String& value) { m_nextToken = value; }
70 inline void SetNextToken(Aws::String&& value) { m_nextToken = std::move(value); }
71 inline void SetNextToken(const char* value) { m_nextToken.assign(value); }
72 inline ExecuteQueryResult& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
73 inline ExecuteQueryResult& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
74 inline ExecuteQueryResult& WithNextToken(const char* value) { SetNextToken(value); return *this;}
76
78
79 inline const Aws::String& GetRequestId() const{ return m_requestId; }
80 inline void SetRequestId(const Aws::String& value) { m_requestId = value; }
81 inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); }
82 inline void SetRequestId(const char* value) { m_requestId.assign(value); }
83 inline ExecuteQueryResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;}
84 inline ExecuteQueryResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;}
85 inline ExecuteQueryResult& WithRequestId(const char* value) { SetRequestId(value); return *this;}
87 private:
88
89 Aws::Vector<ColumnDescription> m_columnDescriptions;
90
91 Aws::Vector<Row> m_rows;
92
93 Aws::String m_nextToken;
94
95 Aws::String m_requestId;
96 };
97
98} // namespace Model
99} // namespace IoTTwinMaker
100} // namespace Aws
ExecuteQueryResult & AddRows(Row &&value)
const Aws::Vector< Row > & GetRows() const
ExecuteQueryResult & WithNextToken(const char *value)
void SetRows(const Aws::Vector< Row > &value)
void SetColumnDescriptions(const Aws::Vector< ColumnDescription > &value)
ExecuteQueryResult & AddRows(const Row &value)
void SetRows(Aws::Vector< Row > &&value)
void SetRequestId(const Aws::String &value)
AWS_IOTTWINMAKER_API ExecuteQueryResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
void SetColumnDescriptions(Aws::Vector< ColumnDescription > &&value)
ExecuteQueryResult & AddColumnDescriptions(const ColumnDescription &value)
ExecuteQueryResult & WithRows(Aws::Vector< Row > &&value)
ExecuteQueryResult & WithRows(const Aws::Vector< Row > &value)
ExecuteQueryResult & WithNextToken(const Aws::String &value)
ExecuteQueryResult & WithColumnDescriptions(Aws::Vector< ColumnDescription > &&value)
void SetNextToken(const Aws::String &value)
ExecuteQueryResult & WithNextToken(Aws::String &&value)
ExecuteQueryResult & WithRequestId(const char *value)
const Aws::Vector< ColumnDescription > & GetColumnDescriptions() const
AWS_IOTTWINMAKER_API ExecuteQueryResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
ExecuteQueryResult & WithRequestId(Aws::String &&value)
ExecuteQueryResult & AddColumnDescriptions(ColumnDescription &&value)
ExecuteQueryResult & WithRequestId(const Aws::String &value)
ExecuteQueryResult & WithColumnDescriptions(const Aws::Vector< ColumnDescription > &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue