104 lines
2.9 KiB
C
104 lines
2.9 KiB
C
|
|
/**
|
|||
|
|
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|||
|
|
* SPDX-License-Identifier: Apache-2.0.
|
|||
|
|
*/
|
|||
|
|
|
|||
|
|
#pragma once
|
|||
|
|
#include <aws/connect/Connect_EXPORTS.h>
|
|||
|
|
#include <aws/connect/model/Comparison.h>
|
|||
|
|
#include <utility>
|
|||
|
|
|
|||
|
|
namespace Aws
|
|||
|
|
{
|
|||
|
|
namespace Utils
|
|||
|
|
{
|
|||
|
|
namespace Json
|
|||
|
|
{
|
|||
|
|
class JsonValue;
|
|||
|
|
class JsonView;
|
|||
|
|
} // namespace Json
|
|||
|
|
} // namespace Utils
|
|||
|
|
namespace Connect
|
|||
|
|
{
|
|||
|
|
namespace Model
|
|||
|
|
{
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>Contains information about the threshold for service level
|
|||
|
|
* metrics.</p><p><h3>See Also:</h3> <a
|
|||
|
|
* href="http://docs.aws.amazon.com/goto/WebAPI/connect-2017-08-08/Threshold">AWS
|
|||
|
|
* API Reference</a></p>
|
|||
|
|
*/
|
|||
|
|
class AWS_CONNECT_API Threshold
|
|||
|
|
{
|
|||
|
|
public:
|
|||
|
|
Threshold();
|
|||
|
|
Threshold(Aws::Utils::Json::JsonView jsonValue);
|
|||
|
|
Threshold& operator=(Aws::Utils::Json::JsonView jsonValue);
|
|||
|
|
Aws::Utils::Json::JsonValue Jsonize() const;
|
|||
|
|
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The type of comparison. Only "less than" (LT) comparisons are supported.</p>
|
|||
|
|
*/
|
|||
|
|
inline const Comparison& GetComparison() const{ return m_comparison; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The type of comparison. Only "less than" (LT) comparisons are supported.</p>
|
|||
|
|
*/
|
|||
|
|
inline bool ComparisonHasBeenSet() const { return m_comparisonHasBeenSet; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The type of comparison. Only "less than" (LT) comparisons are supported.</p>
|
|||
|
|
*/
|
|||
|
|
inline void SetComparison(const Comparison& value) { m_comparisonHasBeenSet = true; m_comparison = value; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The type of comparison. Only "less than" (LT) comparisons are supported.</p>
|
|||
|
|
*/
|
|||
|
|
inline void SetComparison(Comparison&& value) { m_comparisonHasBeenSet = true; m_comparison = std::move(value); }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The type of comparison. Only "less than" (LT) comparisons are supported.</p>
|
|||
|
|
*/
|
|||
|
|
inline Threshold& WithComparison(const Comparison& value) { SetComparison(value); return *this;}
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The type of comparison. Only "less than" (LT) comparisons are supported.</p>
|
|||
|
|
*/
|
|||
|
|
inline Threshold& WithComparison(Comparison&& value) { SetComparison(std::move(value)); return *this;}
|
|||
|
|
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The threshold value to compare.</p>
|
|||
|
|
*/
|
|||
|
|
inline double GetThresholdValue() const{ return m_thresholdValue; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The threshold value to compare.</p>
|
|||
|
|
*/
|
|||
|
|
inline bool ThresholdValueHasBeenSet() const { return m_thresholdValueHasBeenSet; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The threshold value to compare.</p>
|
|||
|
|
*/
|
|||
|
|
inline void SetThresholdValue(double value) { m_thresholdValueHasBeenSet = true; m_thresholdValue = value; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The threshold value to compare.</p>
|
|||
|
|
*/
|
|||
|
|
inline Threshold& WithThresholdValue(double value) { SetThresholdValue(value); return *this;}
|
|||
|
|
|
|||
|
|
private:
|
|||
|
|
|
|||
|
|
Comparison m_comparison;
|
|||
|
|
bool m_comparisonHasBeenSet;
|
|||
|
|
|
|||
|
|
double m_thresholdValue;
|
|||
|
|
bool m_thresholdValueHasBeenSet;
|
|||
|
|
};
|
|||
|
|
|
|||
|
|
} // namespace Model
|
|||
|
|
} // namespace Connect
|
|||
|
|
} // namespace Aws
|