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/UpdateNotebookInstanceLifecycleConfigRequest.cpp

68 lines
1.8 KiB
C++

/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/sagemaker/model/UpdateNotebookInstanceLifecycleConfigRequest.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::SageMaker::Model;
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
UpdateNotebookInstanceLifecycleConfigRequest::UpdateNotebookInstanceLifecycleConfigRequest() :
m_notebookInstanceLifecycleConfigNameHasBeenSet(false),
m_onCreateHasBeenSet(false),
m_onStartHasBeenSet(false)
{
}
Aws::String UpdateNotebookInstanceLifecycleConfigRequest::SerializePayload() const
{
JsonValue payload;
if(m_notebookInstanceLifecycleConfigNameHasBeenSet)
{
payload.WithString("NotebookInstanceLifecycleConfigName", m_notebookInstanceLifecycleConfigName);
}
if(m_onCreateHasBeenSet)
{
Array<JsonValue> onCreateJsonList(m_onCreate.size());
for(unsigned onCreateIndex = 0; onCreateIndex < onCreateJsonList.GetLength(); ++onCreateIndex)
{
onCreateJsonList[onCreateIndex].AsObject(m_onCreate[onCreateIndex].Jsonize());
}
payload.WithArray("OnCreate", std::move(onCreateJsonList));
}
if(m_onStartHasBeenSet)
{
Array<JsonValue> onStartJsonList(m_onStart.size());
for(unsigned onStartIndex = 0; onStartIndex < onStartJsonList.GetLength(); ++onStartIndex)
{
onStartJsonList[onStartIndex].AsObject(m_onStart[onStartIndex].Jsonize());
}
payload.WithArray("OnStart", std::move(onStartJsonList));
}
return payload.View().WriteReadable();
}
Aws::Http::HeaderValueCollection UpdateNotebookInstanceLifecycleConfigRequest::GetRequestSpecificHeaders() const
{
Aws::Http::HeaderValueCollection headers;
headers.insert(Aws::Http::HeaderValuePair("X-Amz-Target", "SageMaker.UpdateNotebookInstanceLifecycleConfig"));
return headers;
}