text: ﻿/**
   * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
   * SPDX-License-Identifier: Apache-2.0.
   */
  
  #include <aws/redshift-data/model/ListSchemasRequest.h>
  #include <aws/core/utils/json/JsonSerializer.h>
  
  #include <utility>
  
  using namespace Aws::RedshiftDataAPIService::Model;
  using namespace Aws::Utils::Json;
  using namespace Aws::Utils;
  
  ListSchemasRequest::ListSchemasRequest() : 
      m_clusterIdentifierHasBeenSet(false),
      m_databaseHasBeenSet(false),
      m_dbUserHasBeenSet(false),
      m_maxResults(0),
      m_maxResultsHasBeenSet(false),
      m_nextTokenHasBeenSet(false),
      m_schemaPatternHasBeenSet(false),
      m_secretArnHasBeenSet(false)
  {
  }
  
  Aws::String ListSchemasRequest::SerializePayload() const
  {
    JsonValue payload;
  
    if(m_clusterIdentifierHasBeenSet)
    {
     payload.WithString("ClusterIdentifier", m_clusterIdentifier);
  
    }
  
    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);
  
    }
  
    return payload.View().WriteReadable();
  }
  
  Aws::Http::HeaderValueCollection ListSchemasRequest::GetRequestSpecificHeaders() const
  {
    Aws::Http::HeaderValueCollection headers;
    headers.insert(Aws::Http::HeaderValuePair("X-Amz-Target", "RedshiftData.ListSchemas"));
    return headers;
  
  }
  
  
  
  
  