/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #include #include #include using namespace Aws::Utils::Json; using namespace Aws::Utils; namespace Aws { namespace SageMaker { namespace Model { MonitoringScheduleConfig::MonitoringScheduleConfig() : m_scheduleConfigHasBeenSet(false), m_monitoringJobDefinitionHasBeenSet(false) { } MonitoringScheduleConfig::MonitoringScheduleConfig(JsonView jsonValue) : m_scheduleConfigHasBeenSet(false), m_monitoringJobDefinitionHasBeenSet(false) { *this = jsonValue; } MonitoringScheduleConfig& MonitoringScheduleConfig::operator =(JsonView jsonValue) { if(jsonValue.ValueExists("ScheduleConfig")) { m_scheduleConfig = jsonValue.GetObject("ScheduleConfig"); m_scheduleConfigHasBeenSet = true; } if(jsonValue.ValueExists("MonitoringJobDefinition")) { m_monitoringJobDefinition = jsonValue.GetObject("MonitoringJobDefinition"); m_monitoringJobDefinitionHasBeenSet = true; } return *this; } JsonValue MonitoringScheduleConfig::Jsonize() const { JsonValue payload; if(m_scheduleConfigHasBeenSet) { payload.WithObject("ScheduleConfig", m_scheduleConfig.Jsonize()); } if(m_monitoringJobDefinitionHasBeenSet) { payload.WithObject("MonitoringJobDefinition", m_monitoringJobDefinition.Jsonize()); } return payload; } } // namespace Model } // namespace SageMaker } // namespace Aws