/** * 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 array that describes a data quality metric. Each * DataQualityMetric object contains the data quality metric name, its * value, a description of the metric, and the affected column.

See * Also:

AWS * API Reference

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

The name of the data quality metric.

*/ inline const DataQualityMetricType& GetMetricType() const{ return m_metricType; } /** *

The name of the data quality metric.

*/ inline bool MetricTypeHasBeenSet() const { return m_metricTypeHasBeenSet; } /** *

The name of the data quality metric.

*/ inline void SetMetricType(const DataQualityMetricType& value) { m_metricTypeHasBeenSet = true; m_metricType = value; } /** *

The name of the data quality metric.

*/ inline void SetMetricType(DataQualityMetricType&& value) { m_metricTypeHasBeenSet = true; m_metricType = std::move(value); } /** *

The name of the data quality metric.

*/ inline DataQualityMetric& WithMetricType(const DataQualityMetricType& value) { SetMetricType(value); return *this;} /** *

The name of the data quality metric.

*/ inline DataQualityMetric& WithMetricType(DataQualityMetricType&& value) { SetMetricType(std::move(value)); return *this;} /** *

A description of the data quality metric.

*/ inline const Aws::String& GetMetricDescription() const{ return m_metricDescription; } /** *

A description of the data quality metric.

*/ inline bool MetricDescriptionHasBeenSet() const { return m_metricDescriptionHasBeenSet; } /** *

A description of the data quality metric.

*/ inline void SetMetricDescription(const Aws::String& value) { m_metricDescriptionHasBeenSet = true; m_metricDescription = value; } /** *

A description of the data quality metric.

*/ inline void SetMetricDescription(Aws::String&& value) { m_metricDescriptionHasBeenSet = true; m_metricDescription = std::move(value); } /** *

A description of the data quality metric.

*/ inline void SetMetricDescription(const char* value) { m_metricDescriptionHasBeenSet = true; m_metricDescription.assign(value); } /** *

A description of the data quality metric.

*/ inline DataQualityMetric& WithMetricDescription(const Aws::String& value) { SetMetricDescription(value); return *this;} /** *

A description of the data quality metric.

*/ inline DataQualityMetric& WithMetricDescription(Aws::String&& value) { SetMetricDescription(std::move(value)); return *this;} /** *

A description of the data quality metric.

*/ inline DataQualityMetric& WithMetricDescription(const char* value) { SetMetricDescription(value); return *this;} /** *

The column that is being monitored.

*/ inline const Aws::String& GetRelatedColumnName() const{ return m_relatedColumnName; } /** *

The column that is being monitored.

*/ inline bool RelatedColumnNameHasBeenSet() const { return m_relatedColumnNameHasBeenSet; } /** *

The column that is being monitored.

*/ inline void SetRelatedColumnName(const Aws::String& value) { m_relatedColumnNameHasBeenSet = true; m_relatedColumnName = value; } /** *

The column that is being monitored.

*/ inline void SetRelatedColumnName(Aws::String&& value) { m_relatedColumnNameHasBeenSet = true; m_relatedColumnName = std::move(value); } /** *

The column that is being monitored.

*/ inline void SetRelatedColumnName(const char* value) { m_relatedColumnNameHasBeenSet = true; m_relatedColumnName.assign(value); } /** *

The column that is being monitored.

*/ inline DataQualityMetric& WithRelatedColumnName(const Aws::String& value) { SetRelatedColumnName(value); return *this;} /** *

The column that is being monitored.

*/ inline DataQualityMetric& WithRelatedColumnName(Aws::String&& value) { SetRelatedColumnName(std::move(value)); return *this;} /** *

The column that is being monitored.

*/ inline DataQualityMetric& WithRelatedColumnName(const char* value) { SetRelatedColumnName(value); return *this;} /** *

The value of the data quality metric.

*/ inline double GetMetricValue() const{ return m_metricValue; } /** *

The value of the data quality metric.

*/ inline bool MetricValueHasBeenSet() const { return m_metricValueHasBeenSet; } /** *

The value of the data quality metric.

*/ inline void SetMetricValue(double value) { m_metricValueHasBeenSet = true; m_metricValue = value; } /** *

The value of the data quality metric.

*/ inline DataQualityMetric& WithMetricValue(double value) { SetMetricValue(value); return *this;} private: DataQualityMetricType m_metricType; bool m_metricTypeHasBeenSet = false; Aws::String m_metricDescription; bool m_metricDescriptionHasBeenSet = false; Aws::String m_relatedColumnName; bool m_relatedColumnNameHasBeenSet = false; double m_metricValue; bool m_metricValueHasBeenSet = false; }; } // namespace Model } // namespace LookoutMetrics } // namespace Aws