/** * 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 { /** *

The severity of a value of a dimension that contributed to an * anomaly.

See Also:

AWS * API Reference

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

The value of the dimension.

*/ inline const Aws::String& GetDimensionValue() const{ return m_dimensionValue; } /** *

The value of the dimension.

*/ inline bool DimensionValueHasBeenSet() const { return m_dimensionValueHasBeenSet; } /** *

The value of the dimension.

*/ inline void SetDimensionValue(const Aws::String& value) { m_dimensionValueHasBeenSet = true; m_dimensionValue = value; } /** *

The value of the dimension.

*/ inline void SetDimensionValue(Aws::String&& value) { m_dimensionValueHasBeenSet = true; m_dimensionValue = std::move(value); } /** *

The value of the dimension.

*/ inline void SetDimensionValue(const char* value) { m_dimensionValueHasBeenSet = true; m_dimensionValue.assign(value); } /** *

The value of the dimension.

*/ inline DimensionValueContribution& WithDimensionValue(const Aws::String& value) { SetDimensionValue(value); return *this;} /** *

The value of the dimension.

*/ inline DimensionValueContribution& WithDimensionValue(Aws::String&& value) { SetDimensionValue(std::move(value)); return *this;} /** *

The value of the dimension.

*/ inline DimensionValueContribution& WithDimensionValue(const char* value) { SetDimensionValue(value); return *this;} /** *

The severity score of the value.

*/ inline double GetContributionScore() const{ return m_contributionScore; } /** *

The severity score of the value.

*/ inline bool ContributionScoreHasBeenSet() const { return m_contributionScoreHasBeenSet; } /** *

The severity score of the value.

*/ inline void SetContributionScore(double value) { m_contributionScoreHasBeenSet = true; m_contributionScore = value; } /** *

The severity score of the value.

*/ inline DimensionValueContribution& WithContributionScore(double value) { SetContributionScore(value); return *this;} private: Aws::String m_dimensionValue; bool m_dimensionValueHasBeenSet = false; double m_contributionScore; bool m_contributionScoreHasBeenSet = false; }; } // namespace Model } // namespace LookoutMetrics } // namespace Aws