75 lines
1.3 KiB
C++
75 lines
1.3 KiB
C++
/**
|
|
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
* SPDX-License-Identifier: Apache-2.0.
|
|
*/
|
|
|
|
#include <aws/sagemaker/model/AutoMLOutputDataConfig.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
|
|
{
|
|
|
|
AutoMLOutputDataConfig::AutoMLOutputDataConfig() :
|
|
m_kmsKeyIdHasBeenSet(false),
|
|
m_s3OutputPathHasBeenSet(false)
|
|
{
|
|
}
|
|
|
|
AutoMLOutputDataConfig::AutoMLOutputDataConfig(JsonView jsonValue) :
|
|
m_kmsKeyIdHasBeenSet(false),
|
|
m_s3OutputPathHasBeenSet(false)
|
|
{
|
|
*this = jsonValue;
|
|
}
|
|
|
|
AutoMLOutputDataConfig& AutoMLOutputDataConfig::operator =(JsonView jsonValue)
|
|
{
|
|
if(jsonValue.ValueExists("KmsKeyId"))
|
|
{
|
|
m_kmsKeyId = jsonValue.GetString("KmsKeyId");
|
|
|
|
m_kmsKeyIdHasBeenSet = true;
|
|
}
|
|
|
|
if(jsonValue.ValueExists("S3OutputPath"))
|
|
{
|
|
m_s3OutputPath = jsonValue.GetString("S3OutputPath");
|
|
|
|
m_s3OutputPathHasBeenSet = true;
|
|
}
|
|
|
|
return *this;
|
|
}
|
|
|
|
JsonValue AutoMLOutputDataConfig::Jsonize() const
|
|
{
|
|
JsonValue payload;
|
|
|
|
if(m_kmsKeyIdHasBeenSet)
|
|
{
|
|
payload.WithString("KmsKeyId", m_kmsKeyId);
|
|
|
|
}
|
|
|
|
if(m_s3OutputPathHasBeenSet)
|
|
{
|
|
payload.WithString("S3OutputPath", m_s3OutputPath);
|
|
|
|
}
|
|
|
|
return payload;
|
|
}
|
|
|
|
} // namespace Model
|
|
} // namespace SageMaker
|
|
} // namespace Aws
|