66 lines
1.3 KiB
C++
66 lines
1.3 KiB
C++
/**
|
|
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
* SPDX-License-Identifier: Apache-2.0.
|
|
*/
|
|
|
|
#include <aws/kms/model/DescribeCustomKeyStoresRequest.h>
|
|
#include <aws/core/utils/json/JsonSerializer.h>
|
|
|
|
#include <utility>
|
|
|
|
using namespace Aws::KMS::Model;
|
|
using namespace Aws::Utils::Json;
|
|
using namespace Aws::Utils;
|
|
|
|
DescribeCustomKeyStoresRequest::DescribeCustomKeyStoresRequest() :
|
|
m_customKeyStoreIdHasBeenSet(false),
|
|
m_customKeyStoreNameHasBeenSet(false),
|
|
m_limit(0),
|
|
m_limitHasBeenSet(false),
|
|
m_markerHasBeenSet(false)
|
|
{
|
|
}
|
|
|
|
Aws::String DescribeCustomKeyStoresRequest::SerializePayload() const
|
|
{
|
|
JsonValue payload;
|
|
|
|
if(m_customKeyStoreIdHasBeenSet)
|
|
{
|
|
payload.WithString("CustomKeyStoreId", m_customKeyStoreId);
|
|
|
|
}
|
|
|
|
if(m_customKeyStoreNameHasBeenSet)
|
|
{
|
|
payload.WithString("CustomKeyStoreName", m_customKeyStoreName);
|
|
|
|
}
|
|
|
|
if(m_limitHasBeenSet)
|
|
{
|
|
payload.WithInteger("Limit", m_limit);
|
|
|
|
}
|
|
|
|
if(m_markerHasBeenSet)
|
|
{
|
|
payload.WithString("Marker", m_marker);
|
|
|
|
}
|
|
|
|
return payload.View().WriteReadable();
|
|
}
|
|
|
|
Aws::Http::HeaderValueCollection DescribeCustomKeyStoresRequest::GetRequestSpecificHeaders() const
|
|
{
|
|
Aws::Http::HeaderValueCollection headers;
|
|
headers.insert(Aws::Http::HeaderValuePair("X-Amz-Target", "TrentService.DescribeCustomKeyStores"));
|
|
return headers;
|
|
|
|
}
|
|
|
|
|
|
|
|
|