120 lines
2.9 KiB
C++
120 lines
2.9 KiB
C++
|
|
/**
|
|||
|
|
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|||
|
|
* SPDX-License-Identifier: Apache-2.0.
|
|||
|
|
*/
|
|||
|
|
|
|||
|
|
#include <aws/sagemaker/model/DebugRuleEvaluationStatus.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
|
|||
|
|
{
|
|||
|
|
|
|||
|
|
DebugRuleEvaluationStatus::DebugRuleEvaluationStatus() :
|
|||
|
|
m_ruleConfigurationNameHasBeenSet(false),
|
|||
|
|
m_ruleEvaluationJobArnHasBeenSet(false),
|
|||
|
|
m_ruleEvaluationStatus(RuleEvaluationStatus::NOT_SET),
|
|||
|
|
m_ruleEvaluationStatusHasBeenSet(false),
|
|||
|
|
m_statusDetailsHasBeenSet(false),
|
|||
|
|
m_lastModifiedTimeHasBeenSet(false)
|
|||
|
|
{
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
DebugRuleEvaluationStatus::DebugRuleEvaluationStatus(JsonView jsonValue) :
|
|||
|
|
m_ruleConfigurationNameHasBeenSet(false),
|
|||
|
|
m_ruleEvaluationJobArnHasBeenSet(false),
|
|||
|
|
m_ruleEvaluationStatus(RuleEvaluationStatus::NOT_SET),
|
|||
|
|
m_ruleEvaluationStatusHasBeenSet(false),
|
|||
|
|
m_statusDetailsHasBeenSet(false),
|
|||
|
|
m_lastModifiedTimeHasBeenSet(false)
|
|||
|
|
{
|
|||
|
|
*this = jsonValue;
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
DebugRuleEvaluationStatus& DebugRuleEvaluationStatus::operator =(JsonView jsonValue)
|
|||
|
|
{
|
|||
|
|
if(jsonValue.ValueExists("RuleConfigurationName"))
|
|||
|
|
{
|
|||
|
|
m_ruleConfigurationName = jsonValue.GetString("RuleConfigurationName");
|
|||
|
|
|
|||
|
|
m_ruleConfigurationNameHasBeenSet = true;
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
if(jsonValue.ValueExists("RuleEvaluationJobArn"))
|
|||
|
|
{
|
|||
|
|
m_ruleEvaluationJobArn = jsonValue.GetString("RuleEvaluationJobArn");
|
|||
|
|
|
|||
|
|
m_ruleEvaluationJobArnHasBeenSet = true;
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
if(jsonValue.ValueExists("RuleEvaluationStatus"))
|
|||
|
|
{
|
|||
|
|
m_ruleEvaluationStatus = RuleEvaluationStatusMapper::GetRuleEvaluationStatusForName(jsonValue.GetString("RuleEvaluationStatus"));
|
|||
|
|
|
|||
|
|
m_ruleEvaluationStatusHasBeenSet = true;
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
if(jsonValue.ValueExists("StatusDetails"))
|
|||
|
|
{
|
|||
|
|
m_statusDetails = jsonValue.GetString("StatusDetails");
|
|||
|
|
|
|||
|
|
m_statusDetailsHasBeenSet = true;
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
if(jsonValue.ValueExists("LastModifiedTime"))
|
|||
|
|
{
|
|||
|
|
m_lastModifiedTime = jsonValue.GetDouble("LastModifiedTime");
|
|||
|
|
|
|||
|
|
m_lastModifiedTimeHasBeenSet = true;
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
return *this;
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
JsonValue DebugRuleEvaluationStatus::Jsonize() const
|
|||
|
|
{
|
|||
|
|
JsonValue payload;
|
|||
|
|
|
|||
|
|
if(m_ruleConfigurationNameHasBeenSet)
|
|||
|
|
{
|
|||
|
|
payload.WithString("RuleConfigurationName", m_ruleConfigurationName);
|
|||
|
|
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
if(m_ruleEvaluationJobArnHasBeenSet)
|
|||
|
|
{
|
|||
|
|
payload.WithString("RuleEvaluationJobArn", m_ruleEvaluationJobArn);
|
|||
|
|
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
if(m_ruleEvaluationStatusHasBeenSet)
|
|||
|
|
{
|
|||
|
|
payload.WithString("RuleEvaluationStatus", RuleEvaluationStatusMapper::GetNameForRuleEvaluationStatus(m_ruleEvaluationStatus));
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
if(m_statusDetailsHasBeenSet)
|
|||
|
|
{
|
|||
|
|
payload.WithString("StatusDetails", m_statusDetails);
|
|||
|
|
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
if(m_lastModifiedTimeHasBeenSet)
|
|||
|
|
{
|
|||
|
|
payload.WithDouble("LastModifiedTime", m_lastModifiedTime.SecondsWithMSPrecision());
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
return payload;
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
} // namespace Model
|
|||
|
|
} // namespace SageMaker
|
|||
|
|
} // namespace Aws
|