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

Defines when your alarm is invoked.

See Also:

AWS * API Reference

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

A rule that compares an input property value to a threshold value with a * comparison operator.

*/ inline const SimpleRule& GetSimpleRule() const{ return m_simpleRule; } /** *

A rule that compares an input property value to a threshold value with a * comparison operator.

*/ inline bool SimpleRuleHasBeenSet() const { return m_simpleRuleHasBeenSet; } /** *

A rule that compares an input property value to a threshold value with a * comparison operator.

*/ inline void SetSimpleRule(const SimpleRule& value) { m_simpleRuleHasBeenSet = true; m_simpleRule = value; } /** *

A rule that compares an input property value to a threshold value with a * comparison operator.

*/ inline void SetSimpleRule(SimpleRule&& value) { m_simpleRuleHasBeenSet = true; m_simpleRule = std::move(value); } /** *

A rule that compares an input property value to a threshold value with a * comparison operator.

*/ inline AlarmRule& WithSimpleRule(const SimpleRule& value) { SetSimpleRule(value); return *this;} /** *

A rule that compares an input property value to a threshold value with a * comparison operator.

*/ inline AlarmRule& WithSimpleRule(SimpleRule&& value) { SetSimpleRule(std::move(value)); return *this;} private: SimpleRule m_simpleRule; bool m_simpleRuleHasBeenSet = false; }; } // namespace Model } // namespace IoTEvents } // namespace Aws