/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace RDSDataService { namespace Model { /** *

The metadata of the result set returned by a SQL statement.

See * Also:

AWS * API Reference

*/ class ResultSetMetadata { public: AWS_RDSDATASERVICE_API ResultSetMetadata(); AWS_RDSDATASERVICE_API ResultSetMetadata(Aws::Utils::Json::JsonView jsonValue); AWS_RDSDATASERVICE_API ResultSetMetadata& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_RDSDATASERVICE_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

The number of columns in the result set.

*/ inline long long GetColumnCount() const{ return m_columnCount; } /** *

The number of columns in the result set.

*/ inline bool ColumnCountHasBeenSet() const { return m_columnCountHasBeenSet; } /** *

The number of columns in the result set.

*/ inline void SetColumnCount(long long value) { m_columnCountHasBeenSet = true; m_columnCount = value; } /** *

The number of columns in the result set.

*/ inline ResultSetMetadata& WithColumnCount(long long value) { SetColumnCount(value); return *this;} /** *

The metadata of the columns in the result set.

*/ inline const Aws::Vector& GetColumnMetadata() const{ return m_columnMetadata; } /** *

The metadata of the columns in the result set.

*/ inline bool ColumnMetadataHasBeenSet() const { return m_columnMetadataHasBeenSet; } /** *

The metadata of the columns in the result set.

*/ inline void SetColumnMetadata(const Aws::Vector& value) { m_columnMetadataHasBeenSet = true; m_columnMetadata = value; } /** *

The metadata of the columns in the result set.

*/ inline void SetColumnMetadata(Aws::Vector&& value) { m_columnMetadataHasBeenSet = true; m_columnMetadata = std::move(value); } /** *

The metadata of the columns in the result set.

*/ inline ResultSetMetadata& WithColumnMetadata(const Aws::Vector& value) { SetColumnMetadata(value); return *this;} /** *

The metadata of the columns in the result set.

*/ inline ResultSetMetadata& WithColumnMetadata(Aws::Vector&& value) { SetColumnMetadata(std::move(value)); return *this;} /** *

The metadata of the columns in the result set.

*/ inline ResultSetMetadata& AddColumnMetadata(const ColumnMetadata& value) { m_columnMetadataHasBeenSet = true; m_columnMetadata.push_back(value); return *this; } /** *

The metadata of the columns in the result set.

*/ inline ResultSetMetadata& AddColumnMetadata(ColumnMetadata&& value) { m_columnMetadataHasBeenSet = true; m_columnMetadata.push_back(std::move(value)); return *this; } private: long long m_columnCount; bool m_columnCountHasBeenSet = false; Aws::Vector m_columnMetadata; bool m_columnMetadataHasBeenSet = false; }; } // namespace Model } // namespace RDSDataService } // namespace Aws