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/Table.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 ListTablesResult 30 { 31 public: 32 ListTablesResult(); 33 ListTablesResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result); 34 ListTablesResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result); 35 36 37 /** 38 * <p> The list of tables in the workbook. </p> 39 */ GetTables()40 inline const Aws::Vector<Table>& GetTables() const{ return m_tables; } 41 42 /** 43 * <p> The list of tables in the workbook. </p> 44 */ SetTables(const Aws::Vector<Table> & value)45 inline void SetTables(const Aws::Vector<Table>& value) { m_tables = value; } 46 47 /** 48 * <p> The list of tables in the workbook. </p> 49 */ SetTables(Aws::Vector<Table> && value)50 inline void SetTables(Aws::Vector<Table>&& value) { m_tables = std::move(value); } 51 52 /** 53 * <p> The list of tables in the workbook. </p> 54 */ WithTables(const Aws::Vector<Table> & value)55 inline ListTablesResult& WithTables(const Aws::Vector<Table>& value) { SetTables(value); return *this;} 56 57 /** 58 * <p> The list of tables in the workbook. </p> 59 */ WithTables(Aws::Vector<Table> && value)60 inline ListTablesResult& WithTables(Aws::Vector<Table>&& value) { SetTables(std::move(value)); return *this;} 61 62 /** 63 * <p> The list of tables in the workbook. </p> 64 */ AddTables(const Table & value)65 inline ListTablesResult& AddTables(const Table& value) { m_tables.push_back(value); return *this; } 66 67 /** 68 * <p> The list of tables in the workbook. </p> 69 */ AddTables(Table && value)70 inline ListTablesResult& AddTables(Table&& value) { m_tables.push_back(std::move(value)); return *this; } 71 72 73 /** 74 * <p> Provides the pagination token to load the next page if there are more 75 * results matching the request. If a pagination token is not present in the 76 * response, it means that all data matching the request has been loaded. </p> 77 */ GetNextToken()78 inline const Aws::String& GetNextToken() const{ return m_nextToken; } 79 80 /** 81 * <p> Provides the pagination token to load the next page if there are more 82 * results matching the request. If a pagination token is not present in the 83 * response, it means that all data matching the request has been loaded. </p> 84 */ SetNextToken(const Aws::String & value)85 inline void SetNextToken(const Aws::String& value) { m_nextToken = value; } 86 87 /** 88 * <p> Provides the pagination token to load the next page if there are more 89 * results matching the request. If a pagination token is not present in the 90 * response, it means that all data matching the request has been loaded. </p> 91 */ SetNextToken(Aws::String && value)92 inline void SetNextToken(Aws::String&& value) { m_nextToken = std::move(value); } 93 94 /** 95 * <p> Provides the pagination token to load the next page if there are more 96 * results matching the request. If a pagination token is not present in the 97 * response, it means that all data matching the request has been loaded. </p> 98 */ SetNextToken(const char * value)99 inline void SetNextToken(const char* value) { m_nextToken.assign(value); } 100 101 /** 102 * <p> Provides the pagination token to load the next page if there are more 103 * results matching the request. If a pagination token is not present in the 104 * response, it means that all data matching the request has been loaded. </p> 105 */ WithNextToken(const Aws::String & value)106 inline ListTablesResult& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;} 107 108 /** 109 * <p> Provides the pagination token to load the next page if there are more 110 * results matching the request. If a pagination token is not present in the 111 * response, it means that all data matching the request has been loaded. </p> 112 */ WithNextToken(Aws::String && value)113 inline ListTablesResult& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;} 114 115 /** 116 * <p> Provides the pagination token to load the next page if there are more 117 * results matching the request. If a pagination token is not present in the 118 * response, it means that all data matching the request has been loaded. </p> 119 */ WithNextToken(const char * value)120 inline ListTablesResult& WithNextToken(const char* value) { SetNextToken(value); return *this;} 121 122 123 /** 124 * <p> Indicates the cursor of the workbook at which the data returned by this 125 * request is read. Workbook cursor keeps increasing with every update and the 126 * increments are not sequential. </p> 127 */ GetWorkbookCursor()128 inline long long GetWorkbookCursor() const{ return m_workbookCursor; } 129 130 /** 131 * <p> Indicates the cursor of the workbook at which the data returned by this 132 * request is read. Workbook cursor keeps increasing with every update and the 133 * increments are not sequential. </p> 134 */ SetWorkbookCursor(long long value)135 inline void SetWorkbookCursor(long long value) { m_workbookCursor = value; } 136 137 /** 138 * <p> Indicates the cursor of the workbook at which the data returned by this 139 * request is read. Workbook cursor keeps increasing with every update and the 140 * increments are not sequential. </p> 141 */ WithWorkbookCursor(long long value)142 inline ListTablesResult& WithWorkbookCursor(long long value) { SetWorkbookCursor(value); return *this;} 143 144 private: 145 146 Aws::Vector<Table> m_tables; 147 148 Aws::String m_nextToken; 149 150 long long m_workbookCursor; 151 }; 152 153 } // namespace Model 154 } // namespace Honeycode 155 } // namespace Aws 156