1 /** 2 * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. 3 * SPDX-License-Identifier: Apache-2.0. 4 */ 5 6 #pragma once 7 #include <aws/honeycode/Honeycode_EXPORTS.h> 8 #include <aws/core/utils/memory/stl/AWSVector.h> 9 #include <aws/core/utils/memory/stl/AWSString.h> 10 #include <aws/honeycode/model/TableRow.h> 11 #include <utility> 12 13 namespace Aws 14 { 15 template<typename RESULT_TYPE> 16 class AmazonWebServiceResult; 17 18 namespace Utils 19 { 20 namespace Json 21 { 22 class JsonValue; 23 } // namespace Json 24 } // namespace Utils 25 namespace Honeycode 26 { 27 namespace Model 28 { 29 class AWS_HONEYCODE_API QueryTableRowsResult 30 { 31 public: 32 QueryTableRowsResult(); 33 QueryTableRowsResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result); 34 QueryTableRowsResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result); 35 36 37 /** 38 * <p> The list of columns in the table whose row data is returned in the result. 39 * </p> 40 */ GetColumnIds()41 inline const Aws::Vector<Aws::String>& GetColumnIds() const{ return m_columnIds; } 42 43 /** 44 * <p> The list of columns in the table whose row data is returned in the result. 45 * </p> 46 */ SetColumnIds(const Aws::Vector<Aws::String> & value)47 inline void SetColumnIds(const Aws::Vector<Aws::String>& value) { m_columnIds = value; } 48 49 /** 50 * <p> The list of columns in the table whose row data is returned in the result. 51 * </p> 52 */ SetColumnIds(Aws::Vector<Aws::String> && value)53 inline void SetColumnIds(Aws::Vector<Aws::String>&& value) { m_columnIds = std::move(value); } 54 55 /** 56 * <p> The list of columns in the table whose row data is returned in the result. 57 * </p> 58 */ WithColumnIds(const Aws::Vector<Aws::String> & value)59 inline QueryTableRowsResult& WithColumnIds(const Aws::Vector<Aws::String>& value) { SetColumnIds(value); return *this;} 60 61 /** 62 * <p> The list of columns in the table whose row data is returned in the result. 63 * </p> 64 */ WithColumnIds(Aws::Vector<Aws::String> && value)65 inline QueryTableRowsResult& WithColumnIds(Aws::Vector<Aws::String>&& value) { SetColumnIds(std::move(value)); return *this;} 66 67 /** 68 * <p> The list of columns in the table whose row data is returned in the result. 69 * </p> 70 */ AddColumnIds(const Aws::String & value)71 inline QueryTableRowsResult& AddColumnIds(const Aws::String& value) { m_columnIds.push_back(value); return *this; } 72 73 /** 74 * <p> The list of columns in the table whose row data is returned in the result. 75 * </p> 76 */ AddColumnIds(Aws::String && value)77 inline QueryTableRowsResult& AddColumnIds(Aws::String&& value) { m_columnIds.push_back(std::move(value)); return *this; } 78 79 /** 80 * <p> The list of columns in the table whose row data is returned in the result. 81 * </p> 82 */ AddColumnIds(const char * value)83 inline QueryTableRowsResult& AddColumnIds(const char* value) { m_columnIds.push_back(value); return *this; } 84 85 86 /** 87 * <p> The list of rows in the table that match the query filter. </p> 88 */ GetRows()89 inline const Aws::Vector<TableRow>& GetRows() const{ return m_rows; } 90 91 /** 92 * <p> The list of rows in the table that match the query filter. </p> 93 */ SetRows(const Aws::Vector<TableRow> & value)94 inline void SetRows(const Aws::Vector<TableRow>& value) { m_rows = value; } 95 96 /** 97 * <p> The list of rows in the table that match the query filter. </p> 98 */ SetRows(Aws::Vector<TableRow> && value)99 inline void SetRows(Aws::Vector<TableRow>&& value) { m_rows = std::move(value); } 100 101 /** 102 * <p> The list of rows in the table that match the query filter. </p> 103 */ WithRows(const Aws::Vector<TableRow> & value)104 inline QueryTableRowsResult& WithRows(const Aws::Vector<TableRow>& value) { SetRows(value); return *this;} 105 106 /** 107 * <p> The list of rows in the table that match the query filter. </p> 108 */ WithRows(Aws::Vector<TableRow> && value)109 inline QueryTableRowsResult& WithRows(Aws::Vector<TableRow>&& value) { SetRows(std::move(value)); return *this;} 110 111 /** 112 * <p> The list of rows in the table that match the query filter. </p> 113 */ AddRows(const TableRow & value)114 inline QueryTableRowsResult& AddRows(const TableRow& value) { m_rows.push_back(value); return *this; } 115 116 /** 117 * <p> The list of rows in the table that match the query filter. </p> 118 */ AddRows(TableRow && value)119 inline QueryTableRowsResult& AddRows(TableRow&& value) { m_rows.push_back(std::move(value)); return *this; } 120 121 122 /** 123 * <p> Provides the pagination token to load the next page if there are more 124 * results matching the request. If a pagination token is not present in the 125 * response, it means that all data matching the request has been loaded. </p> 126 */ GetNextToken()127 inline const Aws::String& GetNextToken() const{ return m_nextToken; } 128 129 /** 130 * <p> Provides the pagination token to load the next page if there are more 131 * results matching the request. If a pagination token is not present in the 132 * response, it means that all data matching the request has been loaded. </p> 133 */ SetNextToken(const Aws::String & value)134 inline void SetNextToken(const Aws::String& value) { m_nextToken = value; } 135 136 /** 137 * <p> Provides the pagination token to load the next page if there are more 138 * results matching the request. If a pagination token is not present in the 139 * response, it means that all data matching the request has been loaded. </p> 140 */ SetNextToken(Aws::String && value)141 inline void SetNextToken(Aws::String&& value) { m_nextToken = std::move(value); } 142 143 /** 144 * <p> Provides the pagination token to load the next page if there are more 145 * results matching the request. If a pagination token is not present in the 146 * response, it means that all data matching the request has been loaded. </p> 147 */ SetNextToken(const char * value)148 inline void SetNextToken(const char* value) { m_nextToken.assign(value); } 149 150 /** 151 * <p> Provides the pagination token to load the next page if there are more 152 * results matching the request. If a pagination token is not present in the 153 * response, it means that all data matching the request has been loaded. </p> 154 */ WithNextToken(const Aws::String & value)155 inline QueryTableRowsResult& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;} 156 157 /** 158 * <p> Provides the pagination token to load the next page if there are more 159 * results matching the request. If a pagination token is not present in the 160 * response, it means that all data matching the request has been loaded. </p> 161 */ WithNextToken(Aws::String && value)162 inline QueryTableRowsResult& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;} 163 164 /** 165 * <p> Provides the pagination token to load the next page if there are more 166 * results matching the request. If a pagination token is not present in the 167 * response, it means that all data matching the request has been loaded. </p> 168 */ WithNextToken(const char * value)169 inline QueryTableRowsResult& WithNextToken(const char* value) { SetNextToken(value); return *this;} 170 171 172 /** 173 * <p> Indicates the cursor of the workbook at which the data returned by this 174 * request is read. Workbook cursor keeps increasing with every update and the 175 * increments are not sequential. </p> 176 */ GetWorkbookCursor()177 inline long long GetWorkbookCursor() const{ return m_workbookCursor; } 178 179 /** 180 * <p> Indicates the cursor of the workbook at which the data returned by this 181 * request is read. Workbook cursor keeps increasing with every update and the 182 * increments are not sequential. </p> 183 */ SetWorkbookCursor(long long value)184 inline void SetWorkbookCursor(long long value) { m_workbookCursor = value; } 185 186 /** 187 * <p> Indicates the cursor of the workbook at which the data returned by this 188 * request is read. Workbook cursor keeps increasing with every update and the 189 * increments are not sequential. </p> 190 */ WithWorkbookCursor(long long value)191 inline QueryTableRowsResult& WithWorkbookCursor(long long value) { SetWorkbookCursor(value); return *this;} 192 193 private: 194 195 Aws::Vector<Aws::String> m_columnIds; 196 197 Aws::Vector<TableRow> m_rows; 198 199 Aws::String m_nextToken; 200 201 long long m_workbookCursor; 202 }; 203 204 } // namespace Model 205 } // namespace Honeycode 206 } // namespace Aws 207