/** * 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 LookoutMetrics { namespace Model { AnomalyDetectorConfigSummary::AnomalyDetectorConfigSummary() : m_anomalyDetectorFrequency(Frequency::NOT_SET), m_anomalyDetectorFrequencyHasBeenSet(false) { } AnomalyDetectorConfigSummary::AnomalyDetectorConfigSummary(JsonView jsonValue) : m_anomalyDetectorFrequency(Frequency::NOT_SET), m_anomalyDetectorFrequencyHasBeenSet(false) { *this = jsonValue; } AnomalyDetectorConfigSummary& AnomalyDetectorConfigSummary::operator =(JsonView jsonValue) { if(jsonValue.ValueExists("AnomalyDetectorFrequency")) { m_anomalyDetectorFrequency = FrequencyMapper::GetFrequencyForName(jsonValue.GetString("AnomalyDetectorFrequency")); m_anomalyDetectorFrequencyHasBeenSet = true; } return *this; } JsonValue AnomalyDetectorConfigSummary::Jsonize() const { JsonValue payload; if(m_anomalyDetectorFrequencyHasBeenSet) { payload.WithString("AnomalyDetectorFrequency", FrequencyMapper::GetNameForFrequency(m_anomalyDetectorFrequency)); } return payload; } } // namespace Model } // namespace LookoutMetrics } // namespace Aws