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/iotsitewise/IoTSiteWise_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/iotsitewise/model/ColumnInfo.h>
11#include <aws/iotsitewise/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 IoTSiteWise
27{
28namespace Model
29{
31 {
32 public:
33 AWS_IOTSITEWISE_API ExecuteQueryResult();
36
37
39
42 inline const Aws::Vector<ColumnInfo>& GetColumns() const{ return m_columns; }
43 inline void SetColumns(const Aws::Vector<ColumnInfo>& value) { m_columns = value; }
44 inline void SetColumns(Aws::Vector<ColumnInfo>&& value) { m_columns = std::move(value); }
45 inline ExecuteQueryResult& WithColumns(const Aws::Vector<ColumnInfo>& value) { SetColumns(value); return *this;}
46 inline ExecuteQueryResult& WithColumns(Aws::Vector<ColumnInfo>&& value) { SetColumns(std::move(value)); return *this;}
47 inline ExecuteQueryResult& AddColumns(const ColumnInfo& value) { m_columns.push_back(value); return *this; }
48 inline ExecuteQueryResult& AddColumns(ColumnInfo&& value) { m_columns.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
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 IoTSiteWise
100} // namespace Aws
ExecuteQueryResult & WithRequestId(const Aws::String &value)
ExecuteQueryResult & AddRows(Row &&value)
ExecuteQueryResult & WithColumns(Aws::Vector< ColumnInfo > &&value)
AWS_IOTSITEWISE_API ExecuteQueryResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
void SetColumns(const Aws::Vector< ColumnInfo > &value)
void SetColumns(Aws::Vector< ColumnInfo > &&value)
ExecuteQueryResult & WithNextToken(Aws::String &&value)
ExecuteQueryResult & WithRows(const Aws::Vector< Row > &value)
ExecuteQueryResult & AddRows(const Row &value)
void SetRequestId(const Aws::String &value)
ExecuteQueryResult & AddColumns(ColumnInfo &&value)
ExecuteQueryResult & WithNextToken(const Aws::String &value)
void SetRows(Aws::Vector< Row > &&value)
ExecuteQueryResult & WithColumns(const Aws::Vector< ColumnInfo > &value)
void SetNextToken(const Aws::String &value)
const Aws::Vector< Row > & GetRows() const
ExecuteQueryResult & WithRequestId(Aws::String &&value)
ExecuteQueryResult & WithRows(Aws::Vector< Row > &&value)
ExecuteQueryResult & WithRequestId(const char *value)
ExecuteQueryResult & WithNextToken(const char *value)
const Aws::Vector< ColumnInfo > & GetColumns() const
ExecuteQueryResult & AddColumns(const ColumnInfo &value)
AWS_IOTSITEWISE_API ExecuteQueryResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
void SetRows(const Aws::Vector< Row > &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