/** * 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; DescribeTableRequest::DescribeTableRequest() : m_clusterIdentifierHasBeenSet(false), m_connectedDatabaseHasBeenSet(false), m_databaseHasBeenSet(false), m_dbUserHasBeenSet(false), m_maxResults(0), m_maxResultsHasBeenSet(false), m_nextTokenHasBeenSet(false), m_schemaHasBeenSet(false), m_secretArnHasBeenSet(false), m_tableHasBeenSet(false), m_workgroupNameHasBeenSet(false) { } Aws::String DescribeTableRequest::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_schemaHasBeenSet) { payload.WithString("Schema", m_schema); } if(m_secretArnHasBeenSet) { payload.WithString("SecretArn", m_secretArn); } if(m_tableHasBeenSet) { payload.WithString("Table", m_table); } if(m_workgroupNameHasBeenSet) { payload.WithString("WorkgroupName", m_workgroupName); } return payload.View().WriteReadable(); } Aws::Http::HeaderValueCollection DescribeTableRequest::GetRequestSpecificHeaders() const { Aws::Http::HeaderValueCollection headers; headers.insert(Aws::Http::HeaderValuePair("X-Amz-Target", "RedshiftData.DescribeTable")); return headers; }