AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
Row.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/Datum.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace Athena
23{
24namespace Model
25{
26
32 class Row
33 {
34 public:
35 AWS_ATHENA_API Row();
36 AWS_ATHENA_API Row(Aws::Utils::Json::JsonView jsonValue);
37 AWS_ATHENA_API Row& operator=(Aws::Utils::Json::JsonView jsonValue);
38 AWS_ATHENA_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
45 inline const Aws::Vector<Datum>& GetData() const{ return m_data; }
46 inline bool DataHasBeenSet() const { return m_dataHasBeenSet; }
47 inline void SetData(const Aws::Vector<Datum>& value) { m_dataHasBeenSet = true; m_data = value; }
48 inline void SetData(Aws::Vector<Datum>&& value) { m_dataHasBeenSet = true; m_data = std::move(value); }
49 inline Row& WithData(const Aws::Vector<Datum>& value) { SetData(value); return *this;}
50 inline Row& WithData(Aws::Vector<Datum>&& value) { SetData(std::move(value)); return *this;}
51 inline Row& AddData(const Datum& value) { m_dataHasBeenSet = true; m_data.push_back(value); return *this; }
52 inline Row& AddData(Datum&& value) { m_dataHasBeenSet = true; m_data.push_back(std::move(value)); return *this; }
54 private:
55
56 Aws::Vector<Datum> m_data;
57 bool m_dataHasBeenSet = false;
58 };
59
60} // namespace Model
61} // namespace Athena
62} // namespace Aws
const Aws::Vector< Datum > & GetData() const
Definition Row.h:45
bool DataHasBeenSet() const
Definition Row.h:46
void SetData(const Aws::Vector< Datum > &value)
Definition Row.h:47
void SetData(Aws::Vector< Datum > &&value)
Definition Row.h:48
AWS_ATHENA_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_ATHENA_API Row(Aws::Utils::Json::JsonView jsonValue)
AWS_ATHENA_API Row & operator=(Aws::Utils::Json::JsonView jsonValue)
Row & WithData(Aws::Vector< Datum > &&value)
Definition Row.h:50
AWS_ATHENA_API Row()
Row & AddData(const Datum &value)
Definition Row.h:51
Row & WithData(const Aws::Vector< Datum > &value)
Definition Row.h:49
Row & AddData(Datum &&value)
Definition Row.h:52
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue