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-ecs/source/model/ListTasksRequest.cpp

101 lines
2.0 KiB
C++

/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/ecs/model/ListTasksRequest.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::ECS::Model;
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
ListTasksRequest::ListTasksRequest() :
m_clusterHasBeenSet(false),
m_containerInstanceHasBeenSet(false),
m_familyHasBeenSet(false),
m_nextTokenHasBeenSet(false),
m_maxResults(0),
m_maxResultsHasBeenSet(false),
m_startedByHasBeenSet(false),
m_serviceNameHasBeenSet(false),
m_desiredStatus(DesiredStatus::NOT_SET),
m_desiredStatusHasBeenSet(false),
m_launchType(LaunchType::NOT_SET),
m_launchTypeHasBeenSet(false)
{
}
Aws::String ListTasksRequest::SerializePayload() const
{
JsonValue payload;
if(m_clusterHasBeenSet)
{
payload.WithString("cluster", m_cluster);
}
if(m_containerInstanceHasBeenSet)
{
payload.WithString("containerInstance", m_containerInstance);
}
if(m_familyHasBeenSet)
{
payload.WithString("family", m_family);
}
if(m_nextTokenHasBeenSet)
{
payload.WithString("nextToken", m_nextToken);
}
if(m_maxResultsHasBeenSet)
{
payload.WithInteger("maxResults", m_maxResults);
}
if(m_startedByHasBeenSet)
{
payload.WithString("startedBy", m_startedBy);
}
if(m_serviceNameHasBeenSet)
{
payload.WithString("serviceName", m_serviceName);
}
if(m_desiredStatusHasBeenSet)
{
payload.WithString("desiredStatus", DesiredStatusMapper::GetNameForDesiredStatus(m_desiredStatus));
}
if(m_launchTypeHasBeenSet)
{
payload.WithString("launchType", LaunchTypeMapper::GetNameForLaunchType(m_launchType));
}
return payload.View().WriteReadable();
}
Aws::Http::HeaderValueCollection ListTasksRequest::GetRequestSpecificHeaders() const
{
Aws::Http::HeaderValueCollection headers;
headers.insert(Aws::Http::HeaderValuePair("X-Amz-Target", "AmazonEC2ContainerServiceV20141113.ListTasks"));
return headers;
}