AWS SDK for C++  1.9.105
AWS SDK for C++
ResultSet.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <aws/athena/model/Row.h>
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace Utils
16 {
17 namespace Json
18 {
19  class JsonValue;
20  class JsonView;
21 } // namespace Json
22 } // namespace Utils
23 namespace Athena
24 {
25 namespace Model
26 {
27 
37  {
38  public:
43 
44 
48  inline const Aws::Vector<Row>& GetRows() const{ return m_rows; }
49 
53  inline bool RowsHasBeenSet() const { return m_rowsHasBeenSet; }
54 
58  inline void SetRows(const Aws::Vector<Row>& value) { m_rowsHasBeenSet = true; m_rows = value; }
59 
63  inline void SetRows(Aws::Vector<Row>&& value) { m_rowsHasBeenSet = true; m_rows = std::move(value); }
64 
68  inline ResultSet& WithRows(const Aws::Vector<Row>& value) { SetRows(value); return *this;}
69 
73  inline ResultSet& WithRows(Aws::Vector<Row>&& value) { SetRows(std::move(value)); return *this;}
74 
78  inline ResultSet& AddRows(const Row& value) { m_rowsHasBeenSet = true; m_rows.push_back(value); return *this; }
79 
83  inline ResultSet& AddRows(Row&& value) { m_rowsHasBeenSet = true; m_rows.push_back(std::move(value)); return *this; }
84 
85 
90  inline const ResultSetMetadata& GetResultSetMetadata() const{ return m_resultSetMetadata; }
91 
96  inline bool ResultSetMetadataHasBeenSet() const { return m_resultSetMetadataHasBeenSet; }
97 
102  inline void SetResultSetMetadata(const ResultSetMetadata& value) { m_resultSetMetadataHasBeenSet = true; m_resultSetMetadata = value; }
103 
108  inline void SetResultSetMetadata(ResultSetMetadata&& value) { m_resultSetMetadataHasBeenSet = true; m_resultSetMetadata = std::move(value); }
109 
114  inline ResultSet& WithResultSetMetadata(const ResultSetMetadata& value) { SetResultSetMetadata(value); return *this;}
115 
120  inline ResultSet& WithResultSetMetadata(ResultSetMetadata&& value) { SetResultSetMetadata(std::move(value)); return *this;}
121 
122  private:
123 
124  Aws::Vector<Row> m_rows;
125  bool m_rowsHasBeenSet;
126 
127  ResultSetMetadata m_resultSetMetadata;
128  bool m_resultSetMetadataHasBeenSet;
129  };
130 
131 } // namespace Model
132 } // namespace Athena
133 } // namespace Aws
Aws::Athena::Model::ResultSet::SetRows
void SetRows(Aws::Vector< Row > &&value)
Definition: ResultSet.h:63
Aws::Athena::Model::ResultSet::ResultSet
ResultSet()
Aws::Athena::Model::ResultSet::SetResultSetMetadata
void SetResultSetMetadata(ResultSetMetadata &&value)
Definition: ResultSet.h:108
AWS_ATHENA_API
#define AWS_ATHENA_API
Definition: Athena_EXPORTS.h:28
ResultSetMetadata.h
Row.h
Aws::Athena::Model::Row
Definition: Row.h:33
Aws::Athena::Model::ResultSet::GetRows
const Aws::Vector< Row > & GetRows() const
Definition: ResultSet.h:48
Aws::Athena::Model::ResultSet::ResultSet
ResultSet(Aws::Utils::Json::JsonView jsonValue)
Aws::Athena::Model::ResultSet::WithResultSetMetadata
ResultSet & WithResultSetMetadata(const ResultSetMetadata &value)
Definition: ResultSet.h:114
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
AWSVector.h
Aws::Athena::Model::ResultSet::AddRows
ResultSet & AddRows(Row &&value)
Definition: ResultSet.h:83
Aws::Athena::Model::ResultSet::SetRows
void SetRows(const Aws::Vector< Row > &value)
Definition: ResultSet.h:58
Aws::Athena::Model::ResultSet::ResultSetMetadataHasBeenSet
bool ResultSetMetadataHasBeenSet() const
Definition: ResultSet.h:96
Aws::Athena::Model::ResultSet::WithResultSetMetadata
ResultSet & WithResultSetMetadata(ResultSetMetadata &&value)
Definition: ResultSet.h:120
Aws::Athena::Model::ResultSet::WithRows
ResultSet & WithRows(Aws::Vector< Row > &&value)
Definition: ResultSet.h:73
Aws::Athena::Model::ResultSet::SetResultSetMetadata
void SetResultSetMetadata(const ResultSetMetadata &value)
Definition: ResultSet.h:102
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
Athena_EXPORTS.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::Athena::Model::ResultSet
Definition: ResultSet.h:37
Aws::Athena::Model::ResultSet::RowsHasBeenSet
bool RowsHasBeenSet() const
Definition: ResultSet.h:53
Aws::Athena::Model::ResultSet::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws
Definition: AccessManagementClient.h:15
Aws::Athena::Model::ResultSet::WithRows
ResultSet & WithRows(const Aws::Vector< Row > &value)
Definition: ResultSet.h:68
Aws::Athena::Model::ResultSet::AddRows
ResultSet & AddRows(const Row &value)
Definition: ResultSet.h:78
Aws::Athena::Model::ResultSet::operator=
ResultSet & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::Athena::Model::ResultSetMetadata
Definition: ResultSetMetadata.h:35
Aws::Athena::Model::ResultSet::GetResultSetMetadata
const ResultSetMetadata & GetResultSetMetadata() const
Definition: ResultSet.h:90