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

An inferred dataset configuration.

See Also:

AWS * API Reference

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

The dataset's offset.

*/ inline const DetectedField& GetOffset() const{ return m_offset; } /** *

The dataset's offset.

*/ inline bool OffsetHasBeenSet() const { return m_offsetHasBeenSet; } /** *

The dataset's offset.

*/ inline void SetOffset(const DetectedField& value) { m_offsetHasBeenSet = true; m_offset = value; } /** *

The dataset's offset.

*/ inline void SetOffset(DetectedField&& value) { m_offsetHasBeenSet = true; m_offset = std::move(value); } /** *

The dataset's offset.

*/ inline DetectedMetricSetConfig& WithOffset(const DetectedField& value) { SetOffset(value); return *this;} /** *

The dataset's offset.

*/ inline DetectedMetricSetConfig& WithOffset(DetectedField&& value) { SetOffset(std::move(value)); return *this;} /** *

The dataset's interval.

*/ inline const DetectedField& GetMetricSetFrequency() const{ return m_metricSetFrequency; } /** *

The dataset's interval.

*/ inline bool MetricSetFrequencyHasBeenSet() const { return m_metricSetFrequencyHasBeenSet; } /** *

The dataset's interval.

*/ inline void SetMetricSetFrequency(const DetectedField& value) { m_metricSetFrequencyHasBeenSet = true; m_metricSetFrequency = value; } /** *

The dataset's interval.

*/ inline void SetMetricSetFrequency(DetectedField&& value) { m_metricSetFrequencyHasBeenSet = true; m_metricSetFrequency = std::move(value); } /** *

The dataset's interval.

*/ inline DetectedMetricSetConfig& WithMetricSetFrequency(const DetectedField& value) { SetMetricSetFrequency(value); return *this;} /** *

The dataset's interval.

*/ inline DetectedMetricSetConfig& WithMetricSetFrequency(DetectedField&& value) { SetMetricSetFrequency(std::move(value)); return *this;} /** *

The dataset's data source.

*/ inline const DetectedMetricSource& GetMetricSource() const{ return m_metricSource; } /** *

The dataset's data source.

*/ inline bool MetricSourceHasBeenSet() const { return m_metricSourceHasBeenSet; } /** *

The dataset's data source.

*/ inline void SetMetricSource(const DetectedMetricSource& value) { m_metricSourceHasBeenSet = true; m_metricSource = value; } /** *

The dataset's data source.

*/ inline void SetMetricSource(DetectedMetricSource&& value) { m_metricSourceHasBeenSet = true; m_metricSource = std::move(value); } /** *

The dataset's data source.

*/ inline DetectedMetricSetConfig& WithMetricSource(const DetectedMetricSource& value) { SetMetricSource(value); return *this;} /** *

The dataset's data source.

*/ inline DetectedMetricSetConfig& WithMetricSource(DetectedMetricSource&& value) { SetMetricSource(std::move(value)); return *this;} private: DetectedField m_offset; bool m_offsetHasBeenSet = false; DetectedField m_metricSetFrequency; bool m_metricSetFrequencyHasBeenSet = false; DetectedMetricSource m_metricSource; bool m_metricSourceHasBeenSet = false; }; } // namespace Model } // namespace LookoutMetrics } // namespace Aws