51 lines
973 B
C++
51 lines
973 B
C++
/**
|
|
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
* SPDX-License-Identifier: Apache-2.0.
|
|
*/
|
|
|
|
#include <aws/glue/model/GetDatabaseRequest.h>
|
|
#include <aws/core/utils/json/JsonSerializer.h>
|
|
|
|
#include <utility>
|
|
|
|
using namespace Aws::Glue::Model;
|
|
using namespace Aws::Utils::Json;
|
|
using namespace Aws::Utils;
|
|
|
|
GetDatabaseRequest::GetDatabaseRequest() :
|
|
m_catalogIdHasBeenSet(false),
|
|
m_nameHasBeenSet(false)
|
|
{
|
|
}
|
|
|
|
Aws::String GetDatabaseRequest::SerializePayload() const
|
|
{
|
|
JsonValue payload;
|
|
|
|
if(m_catalogIdHasBeenSet)
|
|
{
|
|
payload.WithString("CatalogId", m_catalogId);
|
|
|
|
}
|
|
|
|
if(m_nameHasBeenSet)
|
|
{
|
|
payload.WithString("Name", m_name);
|
|
|
|
}
|
|
|
|
return payload.View().WriteReadable();
|
|
}
|
|
|
|
Aws::Http::HeaderValueCollection GetDatabaseRequest::GetRequestSpecificHeaders() const
|
|
{
|
|
Aws::Http::HeaderValueCollection headers;
|
|
headers.insert(Aws::Http::HeaderValuePair("X-Amz-Target", "AWSGlue.GetDatabase"));
|
|
return headers;
|
|
|
|
}
|
|
|
|
|
|
|
|
|