AWS SDK for C++  1.8.126
AWS SDK for C++
ResultFrame.h
Go to the documentation of this file.
1 
6 #pragma once
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 RDSDataService
24 {
25 namespace Model
26 {
27 
34  {
35  public:
40 
41 
45  inline const Aws::Vector<Record>& GetRecords() const{ return m_records; }
46 
50  inline bool RecordsHasBeenSet() const { return m_recordsHasBeenSet; }
51 
55  inline void SetRecords(const Aws::Vector<Record>& value) { m_recordsHasBeenSet = true; m_records = value; }
56 
60  inline void SetRecords(Aws::Vector<Record>&& value) { m_recordsHasBeenSet = true; m_records = std::move(value); }
61 
65  inline ResultFrame& WithRecords(const Aws::Vector<Record>& value) { SetRecords(value); return *this;}
66 
70  inline ResultFrame& WithRecords(Aws::Vector<Record>&& value) { SetRecords(std::move(value)); return *this;}
71 
75  inline ResultFrame& AddRecords(const Record& value) { m_recordsHasBeenSet = true; m_records.push_back(value); return *this; }
76 
80  inline ResultFrame& AddRecords(Record&& value) { m_recordsHasBeenSet = true; m_records.push_back(std::move(value)); return *this; }
81 
82 
86  inline const ResultSetMetadata& GetResultSetMetadata() const{ return m_resultSetMetadata; }
87 
91  inline bool ResultSetMetadataHasBeenSet() const { return m_resultSetMetadataHasBeenSet; }
92 
96  inline void SetResultSetMetadata(const ResultSetMetadata& value) { m_resultSetMetadataHasBeenSet = true; m_resultSetMetadata = value; }
97 
101  inline void SetResultSetMetadata(ResultSetMetadata&& value) { m_resultSetMetadataHasBeenSet = true; m_resultSetMetadata = std::move(value); }
102 
106  inline ResultFrame& WithResultSetMetadata(const ResultSetMetadata& value) { SetResultSetMetadata(value); return *this;}
107 
111  inline ResultFrame& WithResultSetMetadata(ResultSetMetadata&& value) { SetResultSetMetadata(std::move(value)); return *this;}
112 
113  private:
114 
115  Aws::Vector<Record> m_records;
116  bool m_recordsHasBeenSet;
117 
118  ResultSetMetadata m_resultSetMetadata;
119  bool m_resultSetMetadataHasBeenSet;
120  };
121 
122 } // namespace Model
123 } // namespace RDSDataService
124 } // namespace Aws
Aws::RDSDataService::Model::ResultFrame::WithResultSetMetadata
ResultFrame & WithResultSetMetadata(ResultSetMetadata &&value)
Definition: ResultFrame.h:111
AWS_RDSDATASERVICE_API
#define AWS_RDSDATASERVICE_API
Definition: RDSDataService_EXPORTS.h:28
Aws::RDSDataService::Model::ResultFrame::SetRecords
void SetRecords(Aws::Vector< Record > &&value)
Definition: ResultFrame.h:60
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
AWSVector.h
Aws::RDSDataService::Model::ResultFrame::SetResultSetMetadata
void SetResultSetMetadata(const ResultSetMetadata &value)
Definition: ResultFrame.h:96
Aws::RDSDataService::Model::ResultFrame
Definition: ResultFrame.h:34
Aws::RDSDataService::Model::ResultSetMetadata
Definition: ResultSetMetadata.h:34
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:222
Aws::RDSDataService::Model::ResultFrame::ResultFrame
ResultFrame(Aws::Utils::Json::JsonView jsonValue)
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:30
Aws::RDSDataService::Model::ResultFrame::AddRecords
ResultFrame & AddRecords(const Record &value)
Definition: ResultFrame.h:75
Aws::RDSDataService::Model::ResultFrame::SetRecords
void SetRecords(const Aws::Vector< Record > &value)
Definition: ResultFrame.h:55
Aws::RDSDataService::Model::ResultFrame::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
RDSDataService_EXPORTS.h
Aws::RDSDataService::Model::ResultFrame::ResultFrame
ResultFrame()
Aws::RDSDataService::Model::ResultFrame::ResultSetMetadataHasBeenSet
bool ResultSetMetadataHasBeenSet() const
Definition: ResultFrame.h:91
Aws::RDSDataService::Model::ResultFrame::WithResultSetMetadata
ResultFrame & WithResultSetMetadata(const ResultSetMetadata &value)
Definition: ResultFrame.h:106
Aws::RDSDataService::Model::ResultFrame::AddRecords
ResultFrame & AddRecords(Record &&value)
Definition: ResultFrame.h:80
Aws::RDSDataService::Model::ResultFrame::operator=
ResultFrame & operator=(Aws::Utils::Json::JsonView jsonValue)
ResultSetMetadata.h
Aws
Definition: AccessManagementClient.h:15
Aws::RDSDataService::Model::ResultFrame::GetRecords
const Aws::Vector< Record > & GetRecords() const
Definition: ResultFrame.h:45
Aws::RDSDataService::Model::ResultFrame::SetResultSetMetadata
void SetResultSetMetadata(ResultSetMetadata &&value)
Definition: ResultFrame.h:101
Record.h
Aws::RDSDataService::Model::ResultFrame::WithRecords
ResultFrame & WithRecords(Aws::Vector< Record > &&value)
Definition: ResultFrame.h:70
Aws::RDSDataService::Model::ResultFrame::GetResultSetMetadata
const ResultSetMetadata & GetResultSetMetadata() const
Definition: ResultFrame.h:86
Aws::RDSDataService::Model::ResultFrame::RecordsHasBeenSet
bool RecordsHasBeenSet() const
Definition: ResultFrame.h:50
Aws::RDSDataService::Model::Record
Definition: Record.h:33
Aws::RDSDataService::Model::ResultFrame::WithRecords
ResultFrame & WithRecords(const Aws::Vector< Record > &value)
Definition: ResultFrame.h:65