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

Information needed to compare two values with a comparison * operator.

See Also:

AWS * API Reference

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

The value of the input property, on the left side of the comparison * operator.

*/ inline const Aws::String& GetInputPropertyValue() const{ return m_inputPropertyValue; } /** *

The value of the input property, on the left side of the comparison * operator.

*/ inline bool InputPropertyValueHasBeenSet() const { return m_inputPropertyValueHasBeenSet; } /** *

The value of the input property, on the left side of the comparison * operator.

*/ inline void SetInputPropertyValue(const Aws::String& value) { m_inputPropertyValueHasBeenSet = true; m_inputPropertyValue = value; } /** *

The value of the input property, on the left side of the comparison * operator.

*/ inline void SetInputPropertyValue(Aws::String&& value) { m_inputPropertyValueHasBeenSet = true; m_inputPropertyValue = std::move(value); } /** *

The value of the input property, on the left side of the comparison * operator.

*/ inline void SetInputPropertyValue(const char* value) { m_inputPropertyValueHasBeenSet = true; m_inputPropertyValue.assign(value); } /** *

The value of the input property, on the left side of the comparison * operator.

*/ inline SimpleRuleEvaluation& WithInputPropertyValue(const Aws::String& value) { SetInputPropertyValue(value); return *this;} /** *

The value of the input property, on the left side of the comparison * operator.

*/ inline SimpleRuleEvaluation& WithInputPropertyValue(Aws::String&& value) { SetInputPropertyValue(std::move(value)); return *this;} /** *

The value of the input property, on the left side of the comparison * operator.

*/ inline SimpleRuleEvaluation& WithInputPropertyValue(const char* value) { SetInputPropertyValue(value); return *this;} /** *

The comparison operator.

*/ inline const ComparisonOperator& GetOperator() const{ return m_operator; } /** *

The comparison operator.

*/ inline bool OperatorHasBeenSet() const { return m_operatorHasBeenSet; } /** *

The comparison operator.

*/ inline void SetOperator(const ComparisonOperator& value) { m_operatorHasBeenSet = true; m_operator = value; } /** *

The comparison operator.

*/ inline void SetOperator(ComparisonOperator&& value) { m_operatorHasBeenSet = true; m_operator = std::move(value); } /** *

The comparison operator.

*/ inline SimpleRuleEvaluation& WithOperator(const ComparisonOperator& value) { SetOperator(value); return *this;} /** *

The comparison operator.

*/ inline SimpleRuleEvaluation& WithOperator(ComparisonOperator&& value) { SetOperator(std::move(value)); return *this;} /** *

The threshold value, on the right side of the comparison operator.

*/ inline const Aws::String& GetThresholdValue() const{ return m_thresholdValue; } /** *

The threshold value, on the right side of the comparison operator.

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

The threshold value, on the right side of the comparison operator.

*/ inline void SetThresholdValue(const Aws::String& value) { m_thresholdValueHasBeenSet = true; m_thresholdValue = value; } /** *

The threshold value, on the right side of the comparison operator.

*/ inline void SetThresholdValue(Aws::String&& value) { m_thresholdValueHasBeenSet = true; m_thresholdValue = std::move(value); } /** *

The threshold value, on the right side of the comparison operator.

*/ inline void SetThresholdValue(const char* value) { m_thresholdValueHasBeenSet = true; m_thresholdValue.assign(value); } /** *

The threshold value, on the right side of the comparison operator.

*/ inline SimpleRuleEvaluation& WithThresholdValue(const Aws::String& value) { SetThresholdValue(value); return *this;} /** *

The threshold value, on the right side of the comparison operator.

*/ inline SimpleRuleEvaluation& WithThresholdValue(Aws::String&& value) { SetThresholdValue(std::move(value)); return *this;} /** *

The threshold value, on the right side of the comparison operator.

*/ inline SimpleRuleEvaluation& WithThresholdValue(const char* value) { SetThresholdValue(value); return *this;} private: Aws::String m_inputPropertyValue; bool m_inputPropertyValueHasBeenSet = false; ComparisonOperator m_operator; bool m_operatorHasBeenSet = false; Aws::String m_thresholdValue; bool m_thresholdValueHasBeenSet = false; }; } // namespace Model } // namespace IoTEventsData } // namespace Aws