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-batch/source/model/ListJobsRequest.cpp

72 lines
1.3 KiB
C++
Raw Normal View History

/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/batch/model/ListJobsRequest.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::Batch::Model;
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
ListJobsRequest::ListJobsRequest() :
m_jobQueueHasBeenSet(false),
m_arrayJobIdHasBeenSet(false),
m_multiNodeJobIdHasBeenSet(false),
m_jobStatus(JobStatus::NOT_SET),
m_jobStatusHasBeenSet(false),
m_maxResults(0),
m_maxResultsHasBeenSet(false),
m_nextTokenHasBeenSet(false)
{
}
Aws::String ListJobsRequest::SerializePayload() const
{
JsonValue payload;
if(m_jobQueueHasBeenSet)
{
payload.WithString("jobQueue", m_jobQueue);
}
if(m_arrayJobIdHasBeenSet)
{
payload.WithString("arrayJobId", m_arrayJobId);
}
if(m_multiNodeJobIdHasBeenSet)
{
payload.WithString("multiNodeJobId", m_multiNodeJobId);
}
if(m_jobStatusHasBeenSet)
{
payload.WithString("jobStatus", JobStatusMapper::GetNameForJobStatus(m_jobStatus));
}
if(m_maxResultsHasBeenSet)
{
payload.WithInteger("maxResults", m_maxResults);
}
if(m_nextTokenHasBeenSet)
{
payload.WithString("nextToken", m_nextToken);
}
return payload.View().WriteReadable();
}