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-sagemaker/source/model/ListNotebookInstanceLifecycleConfigsRequest.cpp

97 lines
2.6 KiB
C++
Raw Normal View History

/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/sagemaker/model/ListNotebookInstanceLifecycleConfigsRequest.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::SageMaker::Model;
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
ListNotebookInstanceLifecycleConfigsRequest::ListNotebookInstanceLifecycleConfigsRequest() :
m_nextTokenHasBeenSet(false),
m_maxResults(0),
m_maxResultsHasBeenSet(false),
m_sortBy(NotebookInstanceLifecycleConfigSortKey::NOT_SET),
m_sortByHasBeenSet(false),
m_sortOrder(NotebookInstanceLifecycleConfigSortOrder::NOT_SET),
m_sortOrderHasBeenSet(false),
m_nameContainsHasBeenSet(false),
m_creationTimeBeforeHasBeenSet(false),
m_creationTimeAfterHasBeenSet(false),
m_lastModifiedTimeBeforeHasBeenSet(false),
m_lastModifiedTimeAfterHasBeenSet(false)
{
}
Aws::String ListNotebookInstanceLifecycleConfigsRequest::SerializePayload() const
{
JsonValue payload;
if(m_nextTokenHasBeenSet)
{
payload.WithString("NextToken", m_nextToken);
}
if(m_maxResultsHasBeenSet)
{
payload.WithInteger("MaxResults", m_maxResults);
}
if(m_sortByHasBeenSet)
{
payload.WithString("SortBy", NotebookInstanceLifecycleConfigSortKeyMapper::GetNameForNotebookInstanceLifecycleConfigSortKey(m_sortBy));
}
if(m_sortOrderHasBeenSet)
{
payload.WithString("SortOrder", NotebookInstanceLifecycleConfigSortOrderMapper::GetNameForNotebookInstanceLifecycleConfigSortOrder(m_sortOrder));
}
if(m_nameContainsHasBeenSet)
{
payload.WithString("NameContains", m_nameContains);
}
if(m_creationTimeBeforeHasBeenSet)
{
payload.WithDouble("CreationTimeBefore", m_creationTimeBefore.SecondsWithMSPrecision());
}
if(m_creationTimeAfterHasBeenSet)
{
payload.WithDouble("CreationTimeAfter", m_creationTimeAfter.SecondsWithMSPrecision());
}
if(m_lastModifiedTimeBeforeHasBeenSet)
{
payload.WithDouble("LastModifiedTimeBefore", m_lastModifiedTimeBefore.SecondsWithMSPrecision());
}
if(m_lastModifiedTimeAfterHasBeenSet)
{
payload.WithDouble("LastModifiedTimeAfter", m_lastModifiedTimeAfter.SecondsWithMSPrecision());
}
return payload.View().WriteReadable();
}
Aws::Http::HeaderValueCollection ListNotebookInstanceLifecycleConfigsRequest::GetRequestSpecificHeaders() const
{
Aws::Http::HeaderValueCollection headers;
headers.insert(Aws::Http::HeaderValuePair("X-Amz-Target", "SageMaker.ListNotebookInstanceLifecycleConfigs"));
return headers;
}