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-datapipeline/source/model/SetStatusRequest.cpp

63 lines
1.3 KiB
C++

/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/datapipeline/model/SetStatusRequest.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::DataPipeline::Model;
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
SetStatusRequest::SetStatusRequest() :
m_pipelineIdHasBeenSet(false),
m_objectIdsHasBeenSet(false),
m_statusHasBeenSet(false)
{
}
Aws::String SetStatusRequest::SerializePayload() const
{
JsonValue payload;
if(m_pipelineIdHasBeenSet)
{
payload.WithString("pipelineId", m_pipelineId);
}
if(m_objectIdsHasBeenSet)
{
Array<JsonValue> objectIdsJsonList(m_objectIds.size());
for(unsigned objectIdsIndex = 0; objectIdsIndex < objectIdsJsonList.GetLength(); ++objectIdsIndex)
{
objectIdsJsonList[objectIdsIndex].AsString(m_objectIds[objectIdsIndex]);
}
payload.WithArray("objectIds", std::move(objectIdsJsonList));
}
if(m_statusHasBeenSet)
{
payload.WithString("status", m_status);
}
return payload.View().WriteReadable();
}
Aws::Http::HeaderValueCollection SetStatusRequest::GetRequestSpecificHeaders() const
{
Aws::Http::HeaderValueCollection headers;
headers.insert(Aws::Http::HeaderValuePair("X-Amz-Target", "DataPipeline.SetStatus"));
return headers;
}