/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace LookoutMetrics { namespace Model { /** *

Contains information about a detector's configuration.

See * Also:

AWS * API Reference

*/ class AnomalyDetectorConfig { public: AWS_LOOKOUTMETRICS_API AnomalyDetectorConfig(); AWS_LOOKOUTMETRICS_API AnomalyDetectorConfig(Aws::Utils::Json::JsonView jsonValue); AWS_LOOKOUTMETRICS_API AnomalyDetectorConfig& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_LOOKOUTMETRICS_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

The frequency at which the detector analyzes its source data.

*/ inline const Frequency& GetAnomalyDetectorFrequency() const{ return m_anomalyDetectorFrequency; } /** *

The frequency at which the detector analyzes its source data.

*/ inline bool AnomalyDetectorFrequencyHasBeenSet() const { return m_anomalyDetectorFrequencyHasBeenSet; } /** *

The frequency at which the detector analyzes its source data.

*/ inline void SetAnomalyDetectorFrequency(const Frequency& value) { m_anomalyDetectorFrequencyHasBeenSet = true; m_anomalyDetectorFrequency = value; } /** *

The frequency at which the detector analyzes its source data.

*/ inline void SetAnomalyDetectorFrequency(Frequency&& value) { m_anomalyDetectorFrequencyHasBeenSet = true; m_anomalyDetectorFrequency = std::move(value); } /** *

The frequency at which the detector analyzes its source data.

*/ inline AnomalyDetectorConfig& WithAnomalyDetectorFrequency(const Frequency& value) { SetAnomalyDetectorFrequency(value); return *this;} /** *

The frequency at which the detector analyzes its source data.

*/ inline AnomalyDetectorConfig& WithAnomalyDetectorFrequency(Frequency&& value) { SetAnomalyDetectorFrequency(std::move(value)); return *this;} private: Frequency m_anomalyDetectorFrequency; bool m_anomalyDetectorFrequencyHasBeenSet = false; }; } // namespace Model } // namespace LookoutMetrics } // namespace Aws