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

The threshold used with a non-aggregate check expression. The non-aggregate * check expression will be applied to each row in a specific column. Then the * threshold will be used to determine whether the validation * succeeds.

See Also:

AWS * API Reference

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

The value of a threshold.

*/ inline double GetValue() const{ return m_value; } /** *

The value of a threshold.

*/ inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; } /** *

The value of a threshold.

*/ inline void SetValue(double value) { m_valueHasBeenSet = true; m_value = value; } /** *

The value of a threshold.

*/ inline Threshold& WithValue(double value) { SetValue(value); return *this;} /** *

The type of a threshold. Used for comparison of an actual count of rows that * satisfy the rule to the threshold value.

*/ inline const ThresholdType& GetType() const{ return m_type; } /** *

The type of a threshold. Used for comparison of an actual count of rows that * satisfy the rule to the threshold value.

*/ inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; } /** *

The type of a threshold. Used for comparison of an actual count of rows that * satisfy the rule to the threshold value.

*/ inline void SetType(const ThresholdType& value) { m_typeHasBeenSet = true; m_type = value; } /** *

The type of a threshold. Used for comparison of an actual count of rows that * satisfy the rule to the threshold value.

*/ inline void SetType(ThresholdType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); } /** *

The type of a threshold. Used for comparison of an actual count of rows that * satisfy the rule to the threshold value.

*/ inline Threshold& WithType(const ThresholdType& value) { SetType(value); return *this;} /** *

The type of a threshold. Used for comparison of an actual count of rows that * satisfy the rule to the threshold value.

*/ inline Threshold& WithType(ThresholdType&& value) { SetType(std::move(value)); return *this;} /** *

Unit of threshold value. Can be either a COUNT or PERCENTAGE of the full * sample size used for validation.

*/ inline const ThresholdUnit& GetUnit() const{ return m_unit; } /** *

Unit of threshold value. Can be either a COUNT or PERCENTAGE of the full * sample size used for validation.

*/ inline bool UnitHasBeenSet() const { return m_unitHasBeenSet; } /** *

Unit of threshold value. Can be either a COUNT or PERCENTAGE of the full * sample size used for validation.

*/ inline void SetUnit(const ThresholdUnit& value) { m_unitHasBeenSet = true; m_unit = value; } /** *

Unit of threshold value. Can be either a COUNT or PERCENTAGE of the full * sample size used for validation.

*/ inline void SetUnit(ThresholdUnit&& value) { m_unitHasBeenSet = true; m_unit = std::move(value); } /** *

Unit of threshold value. Can be either a COUNT or PERCENTAGE of the full * sample size used for validation.

*/ inline Threshold& WithUnit(const ThresholdUnit& value) { SetUnit(value); return *this;} /** *

Unit of threshold value. Can be either a COUNT or PERCENTAGE of the full * sample size used for validation.

*/ inline Threshold& WithUnit(ThresholdUnit&& value) { SetUnit(std::move(value)); return *this;} private: double m_value; bool m_valueHasBeenSet = false; ThresholdType m_type; bool m_typeHasBeenSet = false; ThresholdUnit m_unit; bool m_unitHasBeenSet = false; }; } // namespace Model } // namespace GlueDataBrew } // namespace Aws