/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #include #include #include using namespace Aws::Honeycode::Model; using namespace Aws::Utils::Json; using namespace Aws::Utils; ListTableRowsRequest::ListTableRowsRequest() : m_workbookIdHasBeenSet(false), m_tableIdHasBeenSet(false), m_rowIdsHasBeenSet(false), m_maxResults(0), m_maxResultsHasBeenSet(false), m_nextTokenHasBeenSet(false) { } Aws::String ListTableRowsRequest::SerializePayload() const { JsonValue payload; if(m_rowIdsHasBeenSet) { Aws::Utils::Array rowIdsJsonList(m_rowIds.size()); for(unsigned rowIdsIndex = 0; rowIdsIndex < rowIdsJsonList.GetLength(); ++rowIdsIndex) { rowIdsJsonList[rowIdsIndex].AsString(m_rowIds[rowIdsIndex]); } payload.WithArray("rowIds", std::move(rowIdsJsonList)); } if(m_maxResultsHasBeenSet) { payload.WithInteger("maxResults", m_maxResults); } if(m_nextTokenHasBeenSet) { payload.WithString("nextToken", m_nextToken); } return payload.View().WriteReadable(); }