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

89 lines
1.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/ModelSummary.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
namespace Aws
{
namespace SageMaker
{
namespace Model
{
ModelSummary::ModelSummary() :
m_modelNameHasBeenSet(false),
m_modelArnHasBeenSet(false),
m_creationTimeHasBeenSet(false)
{
}
ModelSummary::ModelSummary(JsonView jsonValue) :
m_modelNameHasBeenSet(false),
m_modelArnHasBeenSet(false),
m_creationTimeHasBeenSet(false)
{
*this = jsonValue;
}
ModelSummary& ModelSummary::operator =(JsonView jsonValue)
{
if(jsonValue.ValueExists("ModelName"))
{
m_modelName = jsonValue.GetString("ModelName");
m_modelNameHasBeenSet = true;
}
if(jsonValue.ValueExists("ModelArn"))
{
m_modelArn = jsonValue.GetString("ModelArn");
m_modelArnHasBeenSet = true;
}
if(jsonValue.ValueExists("CreationTime"))
{
m_creationTime = jsonValue.GetDouble("CreationTime");
m_creationTimeHasBeenSet = true;
}
return *this;
}
JsonValue ModelSummary::Jsonize() const
{
JsonValue payload;
if(m_modelNameHasBeenSet)
{
payload.WithString("ModelName", m_modelName);
}
if(m_modelArnHasBeenSet)
{
payload.WithString("ModelArn", m_modelArn);
}
if(m_creationTimeHasBeenSet)
{
payload.WithDouble("CreationTime", m_creationTime.SecondsWithMSPrecision());
}
return payload;
}
} // namespace Model
} // namespace SageMaker
} // namespace Aws