/** * 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 ThresholdV2 { public: AWS_CONNECT_API ThresholdV2(); AWS_CONNECT_API ThresholdV2(Aws::Utils::Json::JsonView jsonValue); AWS_CONNECT_API ThresholdV2& 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 Aws::String& 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 Aws::String& value) { m_comparisonHasBeenSet = true; m_comparison = value; } /** *

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

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

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

*/ inline void SetComparison(const char* value) { m_comparisonHasBeenSet = true; m_comparison.assign(value); } /** *

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

*/ inline ThresholdV2& WithComparison(const Aws::String& value) { SetComparison(value); return *this;} /** *

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

*/ inline ThresholdV2& WithComparison(Aws::String&& value) { SetComparison(std::move(value)); return *this;} /** *

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

*/ inline ThresholdV2& WithComparison(const char* value) { SetComparison(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 ThresholdV2& WithThresholdValue(double value) { SetThresholdValue(value); return *this;} private: Aws::String m_comparison; bool m_comparisonHasBeenSet = false; double m_thresholdValue; bool m_thresholdValueHasBeenSet = false; }; } // namespace Model } // namespace Connect } // namespace Aws