AWS SDK for C++  1.8.126
AWS SDK for C++
ResultSetMetadata.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace Utils
15 {
16 namespace Json
17 {
18  class JsonValue;
19  class JsonView;
20 } // namespace Json
21 } // namespace Utils
22 namespace RDSDataService
23 {
24 namespace Model
25 {
26 
34  {
35  public:
40 
41 
45  inline long long GetColumnCount() const{ return m_columnCount; }
46 
50  inline bool ColumnCountHasBeenSet() const { return m_columnCountHasBeenSet; }
51 
55  inline void SetColumnCount(long long value) { m_columnCountHasBeenSet = true; m_columnCount = value; }
56 
60  inline ResultSetMetadata& WithColumnCount(long long value) { SetColumnCount(value); return *this;}
61 
62 
66  inline const Aws::Vector<ColumnMetadata>& GetColumnMetadata() const{ return m_columnMetadata; }
67 
71  inline bool ColumnMetadataHasBeenSet() const { return m_columnMetadataHasBeenSet; }
72 
76  inline void SetColumnMetadata(const Aws::Vector<ColumnMetadata>& value) { m_columnMetadataHasBeenSet = true; m_columnMetadata = value; }
77 
81  inline void SetColumnMetadata(Aws::Vector<ColumnMetadata>&& value) { m_columnMetadataHasBeenSet = true; m_columnMetadata = std::move(value); }
82 
86  inline ResultSetMetadata& WithColumnMetadata(const Aws::Vector<ColumnMetadata>& value) { SetColumnMetadata(value); return *this;}
87 
91  inline ResultSetMetadata& WithColumnMetadata(Aws::Vector<ColumnMetadata>&& value) { SetColumnMetadata(std::move(value)); return *this;}
92 
96  inline ResultSetMetadata& AddColumnMetadata(const ColumnMetadata& value) { m_columnMetadataHasBeenSet = true; m_columnMetadata.push_back(value); return *this; }
97 
101  inline ResultSetMetadata& AddColumnMetadata(ColumnMetadata&& value) { m_columnMetadataHasBeenSet = true; m_columnMetadata.push_back(std::move(value)); return *this; }
102 
103  private:
104 
105  long long m_columnCount;
106  bool m_columnCountHasBeenSet;
107 
108  Aws::Vector<ColumnMetadata> m_columnMetadata;
109  bool m_columnMetadataHasBeenSet;
110  };
111 
112 } // namespace Model
113 } // namespace RDSDataService
114 } // namespace Aws
Aws::RDSDataService::Model::ResultSetMetadata::ColumnCountHasBeenSet
bool ColumnCountHasBeenSet() const
Definition: ResultSetMetadata.h:50
AWS_RDSDATASERVICE_API
#define AWS_RDSDATASERVICE_API
Definition: RDSDataService_EXPORTS.h:28
Aws::RDSDataService::Model::ResultSetMetadata::ResultSetMetadata
ResultSetMetadata(Aws::Utils::Json::JsonView jsonValue)
Aws::RDSDataService::Model::ResultSetMetadata::SetColumnCount
void SetColumnCount(long long value)
Definition: ResultSetMetadata.h:55
Aws::RDSDataService::Model::ResultSetMetadata::SetColumnMetadata
void SetColumnMetadata(const Aws::Vector< ColumnMetadata > &value)
Definition: ResultSetMetadata.h:76
ColumnMetadata.h
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::RDSDataService::Model::ResultSetMetadata::WithColumnMetadata
ResultSetMetadata & WithColumnMetadata(Aws::Vector< ColumnMetadata > &&value)
Definition: ResultSetMetadata.h:91
AWSVector.h
Aws::RDSDataService::Model::ResultSetMetadata::GetColumnCount
long long GetColumnCount() const
Definition: ResultSetMetadata.h:45
Aws::RDSDataService::Model::ResultSetMetadata::WithColumnCount
ResultSetMetadata & WithColumnCount(long long value)
Definition: ResultSetMetadata.h:60
Aws::RDSDataService::Model::ResultSetMetadata::AddColumnMetadata
ResultSetMetadata & AddColumnMetadata(const ColumnMetadata &value)
Definition: ResultSetMetadata.h:96
Aws::RDSDataService::Model::ColumnMetadata
Definition: ColumnMetadata.h:32
Aws::RDSDataService::Model::ResultSetMetadata
Definition: ResultSetMetadata.h:34
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:222
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:30
Aws::RDSDataService::Model::ResultSetMetadata::WithColumnMetadata
ResultSetMetadata & WithColumnMetadata(const Aws::Vector< ColumnMetadata > &value)
Definition: ResultSetMetadata.h:86
RDSDataService_EXPORTS.h
Aws::RDSDataService::Model::ResultSetMetadata::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws
Definition: AccessManagementClient.h:15
Aws::RDSDataService::Model::ResultSetMetadata::ResultSetMetadata
ResultSetMetadata()
Aws::RDSDataService::Model::ResultSetMetadata::ColumnMetadataHasBeenSet
bool ColumnMetadataHasBeenSet() const
Definition: ResultSetMetadata.h:71
Aws::RDSDataService::Model::ResultSetMetadata::GetColumnMetadata
const Aws::Vector< ColumnMetadata > & GetColumnMetadata() const
Definition: ResultSetMetadata.h:66
Aws::RDSDataService::Model::ResultSetMetadata::operator=
ResultSetMetadata & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::RDSDataService::Model::ResultSetMetadata::AddColumnMetadata
ResultSetMetadata & AddColumnMetadata(ColumnMetadata &&value)
Definition: ResultSetMetadata.h:101
Aws::RDSDataService::Model::ResultSetMetadata::SetColumnMetadata
void SetColumnMetadata(Aws::Vector< ColumnMetadata > &&value)
Definition: ResultSetMetadata.h:81