77 lines
2.2 KiB
C++
77 lines
2.2 KiB
C++
/**
|
|
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
* SPDX-License-Identifier: Apache-2.0.
|
|
*/
|
|
|
|
#include <aws/sagemaker/model/DescribeNotebookInstanceLifecycleConfigResult.h>
|
|
#include <aws/core/utils/json/JsonSerializer.h>
|
|
#include <aws/core/AmazonWebServiceResult.h>
|
|
#include <aws/core/utils/StringUtils.h>
|
|
#include <aws/core/utils/UnreferencedParam.h>
|
|
|
|
#include <utility>
|
|
|
|
using namespace Aws::SageMaker::Model;
|
|
using namespace Aws::Utils::Json;
|
|
using namespace Aws::Utils;
|
|
using namespace Aws;
|
|
|
|
DescribeNotebookInstanceLifecycleConfigResult::DescribeNotebookInstanceLifecycleConfigResult()
|
|
{
|
|
}
|
|
|
|
DescribeNotebookInstanceLifecycleConfigResult::DescribeNotebookInstanceLifecycleConfigResult(const Aws::AmazonWebServiceResult<JsonValue>& result)
|
|
{
|
|
*this = result;
|
|
}
|
|
|
|
DescribeNotebookInstanceLifecycleConfigResult& DescribeNotebookInstanceLifecycleConfigResult::operator =(const Aws::AmazonWebServiceResult<JsonValue>& result)
|
|
{
|
|
JsonView jsonValue = result.GetPayload().View();
|
|
if(jsonValue.ValueExists("NotebookInstanceLifecycleConfigArn"))
|
|
{
|
|
m_notebookInstanceLifecycleConfigArn = jsonValue.GetString("NotebookInstanceLifecycleConfigArn");
|
|
|
|
}
|
|
|
|
if(jsonValue.ValueExists("NotebookInstanceLifecycleConfigName"))
|
|
{
|
|
m_notebookInstanceLifecycleConfigName = jsonValue.GetString("NotebookInstanceLifecycleConfigName");
|
|
|
|
}
|
|
|
|
if(jsonValue.ValueExists("OnCreate"))
|
|
{
|
|
Array<JsonView> onCreateJsonList = jsonValue.GetArray("OnCreate");
|
|
for(unsigned onCreateIndex = 0; onCreateIndex < onCreateJsonList.GetLength(); ++onCreateIndex)
|
|
{
|
|
m_onCreate.push_back(onCreateJsonList[onCreateIndex].AsObject());
|
|
}
|
|
}
|
|
|
|
if(jsonValue.ValueExists("OnStart"))
|
|
{
|
|
Array<JsonView> onStartJsonList = jsonValue.GetArray("OnStart");
|
|
for(unsigned onStartIndex = 0; onStartIndex < onStartJsonList.GetLength(); ++onStartIndex)
|
|
{
|
|
m_onStart.push_back(onStartJsonList[onStartIndex].AsObject());
|
|
}
|
|
}
|
|
|
|
if(jsonValue.ValueExists("LastModifiedTime"))
|
|
{
|
|
m_lastModifiedTime = jsonValue.GetDouble("LastModifiedTime");
|
|
|
|
}
|
|
|
|
if(jsonValue.ValueExists("CreationTime"))
|
|
{
|
|
m_creationTime = jsonValue.GetDouble("CreationTime");
|
|
|
|
}
|
|
|
|
|
|
|
|
return *this;
|
|
}
|