AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ResultSet.h
1
6#pragma once
7#include <aws/athena/Athena_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/athena/model/ResultSetMetadata.h>
10#include <aws/athena/model/Row.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace Athena
24{
25namespace Model
26{
27
36 {
37 public:
38 AWS_ATHENA_API ResultSet();
39 AWS_ATHENA_API ResultSet(Aws::Utils::Json::JsonView jsonValue);
41 AWS_ATHENA_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
48 inline const Aws::Vector<Row>& GetRows() const{ return m_rows; }
49 inline bool RowsHasBeenSet() const { return m_rowsHasBeenSet; }
50 inline void SetRows(const Aws::Vector<Row>& value) { m_rowsHasBeenSet = true; m_rows = value; }
51 inline void SetRows(Aws::Vector<Row>&& value) { m_rowsHasBeenSet = true; m_rows = std::move(value); }
52 inline ResultSet& WithRows(const Aws::Vector<Row>& value) { SetRows(value); return *this;}
53 inline ResultSet& WithRows(Aws::Vector<Row>&& value) { SetRows(std::move(value)); return *this;}
54 inline ResultSet& AddRows(const Row& value) { m_rowsHasBeenSet = true; m_rows.push_back(value); return *this; }
55 inline ResultSet& AddRows(Row&& value) { m_rowsHasBeenSet = true; m_rows.push_back(std::move(value)); return *this; }
57
59
63 inline const ResultSetMetadata& GetResultSetMetadata() const{ return m_resultSetMetadata; }
64 inline bool ResultSetMetadataHasBeenSet() const { return m_resultSetMetadataHasBeenSet; }
65 inline void SetResultSetMetadata(const ResultSetMetadata& value) { m_resultSetMetadataHasBeenSet = true; m_resultSetMetadata = value; }
66 inline void SetResultSetMetadata(ResultSetMetadata&& value) { m_resultSetMetadataHasBeenSet = true; m_resultSetMetadata = std::move(value); }
67 inline ResultSet& WithResultSetMetadata(const ResultSetMetadata& value) { SetResultSetMetadata(value); return *this;}
68 inline ResultSet& WithResultSetMetadata(ResultSetMetadata&& value) { SetResultSetMetadata(std::move(value)); return *this;}
70 private:
71
72 Aws::Vector<Row> m_rows;
73 bool m_rowsHasBeenSet = false;
74
75 ResultSetMetadata m_resultSetMetadata;
76 bool m_resultSetMetadataHasBeenSet = false;
77 };
78
79} // namespace Model
80} // namespace Athena
81} // namespace Aws
AWS_ATHENA_API ResultSet(Aws::Utils::Json::JsonView jsonValue)
void SetResultSetMetadata(ResultSetMetadata &&value)
Definition ResultSet.h:66
ResultSet & AddRows(Row &&value)
Definition ResultSet.h:55
void SetResultSetMetadata(const ResultSetMetadata &value)
Definition ResultSet.h:65
ResultSet & WithResultSetMetadata(ResultSetMetadata &&value)
Definition ResultSet.h:68
ResultSet & WithResultSetMetadata(const ResultSetMetadata &value)
Definition ResultSet.h:67
void SetRows(const Aws::Vector< Row > &value)
Definition ResultSet.h:50
void SetRows(Aws::Vector< Row > &&value)
Definition ResultSet.h:51
ResultSet & AddRows(const Row &value)
Definition ResultSet.h:54
const Aws::Vector< Row > & GetRows() const
Definition ResultSet.h:48
AWS_ATHENA_API ResultSet & operator=(Aws::Utils::Json::JsonView jsonValue)
ResultSet & WithRows(Aws::Vector< Row > &&value)
Definition ResultSet.h:53
ResultSet & WithRows(const Aws::Vector< Row > &value)
Definition ResultSet.h:52
bool ResultSetMetadataHasBeenSet() const
Definition ResultSet.h:64
AWS_ATHENA_API Aws::Utils::Json::JsonValue Jsonize() const
const ResultSetMetadata & GetResultSetMetadata() const
Definition ResultSet.h:63
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue