/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #include #include #include using namespace Aws::RedshiftDataAPIService::Model; using namespace Aws::Utils::Json; using namespace Aws::Utils; ListTablesRequest::ListTablesRequest() : m_clusterIdentifierHasBeenSet(false), m_connectedDatabaseHasBeenSet(false), m_databaseHasBeenSet(false), m_dbUserHasBeenSet(false), m_maxResults(0), m_maxResultsHasBeenSet(false), m_nextTokenHasBeenSet(false), m_schemaPatternHasBeenSet(false), m_secretArnHasBeenSet(false), m_tablePatternHasBeenSet(false), m_workgroupNameHasBeenSet(false) { } Aws::String ListTablesRequest::SerializePayload() const { JsonValue payload; if(m_clusterIdentifierHasBeenSet) { payload.WithString("ClusterIdentifier", m_clusterIdentifier); } if(m_connectedDatabaseHasBeenSet) { payload.WithString("ConnectedDatabase", m_connectedDatabase); } if(m_databaseHasBeenSet) { payload.WithString("Database", m_database); } if(m_dbUserHasBeenSet) { payload.WithString("DbUser", m_dbUser); } if(m_maxResultsHasBeenSet) { payload.WithInteger("MaxResults", m_maxResults); } if(m_nextTokenHasBeenSet) { payload.WithString("NextToken", m_nextToken); } if(m_schemaPatternHasBeenSet) { payload.WithString("SchemaPattern", m_schemaPattern); } if(m_secretArnHasBeenSet) { payload.WithString("SecretArn", m_secretArn); } if(m_tablePatternHasBeenSet) { payload.WithString("TablePattern", m_tablePattern); } if(m_workgroupNameHasBeenSet) { payload.WithString("WorkgroupName", m_workgroupName); } return payload.View().WriteReadable(); } Aws::Http::HeaderValueCollection ListTablesRequest::GetRequestSpecificHeaders() const { Aws::Http::HeaderValueCollection headers; headers.insert(Aws::Http::HeaderValuePair("X-Amz-Target", "RedshiftData.ListTables")); return headers; }