/** * 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 Connect { namespace Model { /** *

Contains information about the threshold for service level * metrics.

See Also:

AWS * API Reference

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

The type of comparison. Only "less than" (LT) comparisons are supported.

*/ inline const Comparison& GetComparison() const{ return m_comparison; } /** *

The type of comparison. Only "less than" (LT) comparisons are supported.

*/ inline bool ComparisonHasBeenSet() const { return m_comparisonHasBeenSet; } /** *

The type of comparison. Only "less than" (LT) comparisons are supported.

*/ inline void SetComparison(const Comparison& value) { m_comparisonHasBeenSet = true; m_comparison = value; } /** *

The type of comparison. Only "less than" (LT) comparisons are supported.

*/ inline void SetComparison(Comparison&& value) { m_comparisonHasBeenSet = true; m_comparison = std::move(value); } /** *

The type of comparison. Only "less than" (LT) comparisons are supported.

*/ inline Threshold& WithComparison(const Comparison& value) { SetComparison(value); return *this;} /** *

The type of comparison. Only "less than" (LT) comparisons are supported.

*/ inline Threshold& WithComparison(Comparison&& value) { SetComparison(std::move(value)); return *this;} /** *

The threshold value to compare.

*/ inline double GetThresholdValue() const{ return m_thresholdValue; } /** *

The threshold value to compare.

*/ inline bool ThresholdValueHasBeenSet() const { return m_thresholdValueHasBeenSet; } /** *

The threshold value to compare.

*/ inline void SetThresholdValue(double value) { m_thresholdValueHasBeenSet = true; m_thresholdValue = value; } /** *

The threshold value to compare.

*/ inline Threshold& WithThresholdValue(double value) { SetThresholdValue(value); return *this;} private: Comparison m_comparison; bool m_comparisonHasBeenSet = false; double m_thresholdValue; bool m_thresholdValueHasBeenSet = false; }; } // namespace Model } // namespace Connect } // namespace Aws