AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
SimpleRule.h
1
6#pragma once
7#include <aws/iotevents/IoTEvents_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/iotevents/model/ComparisonOperator.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace IoTEvents
23{
24namespace Model
25{
26
34 {
35 public:
36 AWS_IOTEVENTS_API SimpleRule() = default;
37 AWS_IOTEVENTS_API SimpleRule(Aws::Utils::Json::JsonView jsonValue);
38 AWS_IOTEVENTS_API SimpleRule& operator=(Aws::Utils::Json::JsonView jsonValue);
39 AWS_IOTEVENTS_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
47 inline const Aws::String& GetInputProperty() const { return m_inputProperty; }
48 inline bool InputPropertyHasBeenSet() const { return m_inputPropertyHasBeenSet; }
49 template<typename InputPropertyT = Aws::String>
50 void SetInputProperty(InputPropertyT&& value) { m_inputPropertyHasBeenSet = true; m_inputProperty = std::forward<InputPropertyT>(value); }
51 template<typename InputPropertyT = Aws::String>
52 SimpleRule& WithInputProperty(InputPropertyT&& value) { SetInputProperty(std::forward<InputPropertyT>(value)); return *this;}
54
56
59 inline ComparisonOperator GetComparisonOperator() const { return m_comparisonOperator; }
60 inline bool ComparisonOperatorHasBeenSet() const { return m_comparisonOperatorHasBeenSet; }
61 inline void SetComparisonOperator(ComparisonOperator value) { m_comparisonOperatorHasBeenSet = true; m_comparisonOperator = value; }
64
66
70 inline const Aws::String& GetThreshold() const { return m_threshold; }
71 inline bool ThresholdHasBeenSet() const { return m_thresholdHasBeenSet; }
72 template<typename ThresholdT = Aws::String>
73 void SetThreshold(ThresholdT&& value) { m_thresholdHasBeenSet = true; m_threshold = std::forward<ThresholdT>(value); }
74 template<typename ThresholdT = Aws::String>
75 SimpleRule& WithThreshold(ThresholdT&& value) { SetThreshold(std::forward<ThresholdT>(value)); return *this;}
77 private:
78
79 Aws::String m_inputProperty;
80 bool m_inputPropertyHasBeenSet = false;
81
83 bool m_comparisonOperatorHasBeenSet = false;
84
85 Aws::String m_threshold;
86 bool m_thresholdHasBeenSet = false;
87 };
88
89} // namespace Model
90} // namespace IoTEvents
91} // namespace Aws
void SetInputProperty(InputPropertyT &&value)
Definition SimpleRule.h:50
AWS_IOTEVENTS_API Aws::Utils::Json::JsonValue Jsonize() const
ComparisonOperator GetComparisonOperator() const
Definition SimpleRule.h:59
AWS_IOTEVENTS_API SimpleRule()=default
void SetComparisonOperator(ComparisonOperator value)
Definition SimpleRule.h:61
SimpleRule & WithInputProperty(InputPropertyT &&value)
Definition SimpleRule.h:52
bool ComparisonOperatorHasBeenSet() const
Definition SimpleRule.h:60
const Aws::String & GetInputProperty() const
Definition SimpleRule.h:47
AWS_IOTEVENTS_API SimpleRule(Aws::Utils::Json::JsonView jsonValue)
SimpleRule & WithThreshold(ThresholdT &&value)
Definition SimpleRule.h:75
AWS_IOTEVENTS_API SimpleRule & operator=(Aws::Utils::Json::JsonView jsonValue)
SimpleRule & WithComparisonOperator(ComparisonOperator value)
Definition SimpleRule.h:62
void SetThreshold(ThresholdT &&value)
Definition SimpleRule.h:73
const Aws::String & GetThreshold() const
Definition SimpleRule.h:70
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue