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

A single row in the ResultSet.

See Also:

AWS * API Reference

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

The ID for a particular row.

*/ inline const Aws::String& GetRowId() const{ return m_rowId; } /** *

The ID for a particular row.

*/ inline bool RowIdHasBeenSet() const { return m_rowIdHasBeenSet; } /** *

The ID for a particular row.

*/ inline void SetRowId(const Aws::String& value) { m_rowIdHasBeenSet = true; m_rowId = value; } /** *

The ID for a particular row.

*/ inline void SetRowId(Aws::String&& value) { m_rowIdHasBeenSet = true; m_rowId = std::move(value); } /** *

The ID for a particular row.

*/ inline void SetRowId(const char* value) { m_rowIdHasBeenSet = true; m_rowId.assign(value); } /** *

The ID for a particular row.

*/ inline ResultRow& WithRowId(const Aws::String& value) { SetRowId(value); return *this;} /** *

The ID for a particular row.

*/ inline ResultRow& WithRowId(Aws::String&& value) { SetRowId(std::move(value)); return *this;} /** *

The ID for a particular row.

*/ inline ResultRow& WithRowId(const char* value) { SetRowId(value); return *this;} /** *

List of all the data cells in a row.

*/ inline const Aws::Vector& GetDataItems() const{ return m_dataItems; } /** *

List of all the data cells in a row.

*/ inline bool DataItemsHasBeenSet() const { return m_dataItemsHasBeenSet; } /** *

List of all the data cells in a row.

*/ inline void SetDataItems(const Aws::Vector& value) { m_dataItemsHasBeenSet = true; m_dataItems = value; } /** *

List of all the data cells in a row.

*/ inline void SetDataItems(Aws::Vector&& value) { m_dataItemsHasBeenSet = true; m_dataItems = std::move(value); } /** *

List of all the data cells in a row.

*/ inline ResultRow& WithDataItems(const Aws::Vector& value) { SetDataItems(value); return *this;} /** *

List of all the data cells in a row.

*/ inline ResultRow& WithDataItems(Aws::Vector&& value) { SetDataItems(std::move(value)); return *this;} /** *

List of all the data cells in a row.

*/ inline ResultRow& AddDataItems(const DataItem& value) { m_dataItemsHasBeenSet = true; m_dataItems.push_back(value); return *this; } /** *

List of all the data cells in a row.

*/ inline ResultRow& AddDataItems(DataItem&& value) { m_dataItemsHasBeenSet = true; m_dataItems.push_back(std::move(value)); return *this; } private: Aws::String m_rowId; bool m_rowIdHasBeenSet = false; Aws::Vector m_dataItems; bool m_dataItemsHasBeenSet = false; }; } // namespace Model } // namespace Honeycode } // namespace Aws