104 lines
2.5 KiB
C++
104 lines
2.5 KiB
C++
/**
|
|
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
* SPDX-License-Identifier: Apache-2.0.
|
|
*/
|
|
|
|
#include <aws/sagemaker/model/ListProcessingJobsRequest.h>
|
|
#include <aws/core/utils/json/JsonSerializer.h>
|
|
|
|
#include <utility>
|
|
|
|
using namespace Aws::SageMaker::Model;
|
|
using namespace Aws::Utils::Json;
|
|
using namespace Aws::Utils;
|
|
|
|
ListProcessingJobsRequest::ListProcessingJobsRequest() :
|
|
m_creationTimeAfterHasBeenSet(false),
|
|
m_creationTimeBeforeHasBeenSet(false),
|
|
m_lastModifiedTimeAfterHasBeenSet(false),
|
|
m_lastModifiedTimeBeforeHasBeenSet(false),
|
|
m_nameContainsHasBeenSet(false),
|
|
m_statusEquals(ProcessingJobStatus::NOT_SET),
|
|
m_statusEqualsHasBeenSet(false),
|
|
m_sortBy(SortBy::NOT_SET),
|
|
m_sortByHasBeenSet(false),
|
|
m_sortOrder(SortOrder::NOT_SET),
|
|
m_sortOrderHasBeenSet(false),
|
|
m_nextTokenHasBeenSet(false),
|
|
m_maxResults(0),
|
|
m_maxResultsHasBeenSet(false)
|
|
{
|
|
}
|
|
|
|
Aws::String ListProcessingJobsRequest::SerializePayload() const
|
|
{
|
|
JsonValue payload;
|
|
|
|
if(m_creationTimeAfterHasBeenSet)
|
|
{
|
|
payload.WithDouble("CreationTimeAfter", m_creationTimeAfter.SecondsWithMSPrecision());
|
|
}
|
|
|
|
if(m_creationTimeBeforeHasBeenSet)
|
|
{
|
|
payload.WithDouble("CreationTimeBefore", m_creationTimeBefore.SecondsWithMSPrecision());
|
|
}
|
|
|
|
if(m_lastModifiedTimeAfterHasBeenSet)
|
|
{
|
|
payload.WithDouble("LastModifiedTimeAfter", m_lastModifiedTimeAfter.SecondsWithMSPrecision());
|
|
}
|
|
|
|
if(m_lastModifiedTimeBeforeHasBeenSet)
|
|
{
|
|
payload.WithDouble("LastModifiedTimeBefore", m_lastModifiedTimeBefore.SecondsWithMSPrecision());
|
|
}
|
|
|
|
if(m_nameContainsHasBeenSet)
|
|
{
|
|
payload.WithString("NameContains", m_nameContains);
|
|
|
|
}
|
|
|
|
if(m_statusEqualsHasBeenSet)
|
|
{
|
|
payload.WithString("StatusEquals", ProcessingJobStatusMapper::GetNameForProcessingJobStatus(m_statusEquals));
|
|
}
|
|
|
|
if(m_sortByHasBeenSet)
|
|
{
|
|
payload.WithString("SortBy", SortByMapper::GetNameForSortBy(m_sortBy));
|
|
}
|
|
|
|
if(m_sortOrderHasBeenSet)
|
|
{
|
|
payload.WithString("SortOrder", SortOrderMapper::GetNameForSortOrder(m_sortOrder));
|
|
}
|
|
|
|
if(m_nextTokenHasBeenSet)
|
|
{
|
|
payload.WithString("NextToken", m_nextToken);
|
|
|
|
}
|
|
|
|
if(m_maxResultsHasBeenSet)
|
|
{
|
|
payload.WithInteger("MaxResults", m_maxResults);
|
|
|
|
}
|
|
|
|
return payload.View().WriteReadable();
|
|
}
|
|
|
|
Aws::Http::HeaderValueCollection ListProcessingJobsRequest::GetRequestSpecificHeaders() const
|
|
{
|
|
Aws::Http::HeaderValueCollection headers;
|
|
headers.insert(Aws::Http::HeaderValuePair("X-Amz-Target", "SageMaker.ListProcessingJobs"));
|
|
return headers;
|
|
|
|
}
|
|
|
|
|
|
|
|
|