This repository has been archived on 2025-09-14. You can view files and clone it, but cannot push or open issues or pull requests.
Files
pxz-hos-client-cpp-module/support/aws-sdk-cpp-master/aws-cpp-sdk-storagegateway/source/model/DescribeTapesRequest.cpp

71 lines
1.5 KiB
C++

/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/storagegateway/model/DescribeTapesRequest.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::StorageGateway::Model;
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
DescribeTapesRequest::DescribeTapesRequest() :
m_gatewayARNHasBeenSet(false),
m_tapeARNsHasBeenSet(false),
m_markerHasBeenSet(false),
m_limit(0),
m_limitHasBeenSet(false)
{
}
Aws::String DescribeTapesRequest::SerializePayload() const
{
JsonValue payload;
if(m_gatewayARNHasBeenSet)
{
payload.WithString("GatewayARN", m_gatewayARN);
}
if(m_tapeARNsHasBeenSet)
{
Array<JsonValue> tapeARNsJsonList(m_tapeARNs.size());
for(unsigned tapeARNsIndex = 0; tapeARNsIndex < tapeARNsJsonList.GetLength(); ++tapeARNsIndex)
{
tapeARNsJsonList[tapeARNsIndex].AsString(m_tapeARNs[tapeARNsIndex]);
}
payload.WithArray("TapeARNs", std::move(tapeARNsJsonList));
}
if(m_markerHasBeenSet)
{
payload.WithString("Marker", m_marker);
}
if(m_limitHasBeenSet)
{
payload.WithInteger("Limit", m_limit);
}
return payload.View().WriteReadable();
}
Aws::Http::HeaderValueCollection DescribeTapesRequest::GetRequestSpecificHeaders() const
{
Aws::Http::HeaderValueCollection headers;
headers.insert(Aws::Http::HeaderValuePair("X-Amz-Target", "StorageGateway_20130630.DescribeTapes"));
return headers;
}