AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
SimpleRule.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/iotevents/IoTEvents_EXPORTS.h>
9#include <aws/iotevents/model/ComparisonOperator.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace IoTEvents {
21namespace Model {
22
30 public:
31 AWS_IOTEVENTS_API SimpleRule() = default;
32 AWS_IOTEVENTS_API SimpleRule(Aws::Utils::Json::JsonView jsonValue);
33 AWS_IOTEVENTS_API SimpleRule& operator=(Aws::Utils::Json::JsonView jsonValue);
34 AWS_IOTEVENTS_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
41 inline const Aws::String& GetInputProperty() const { return m_inputProperty; }
42 inline bool InputPropertyHasBeenSet() const { return m_inputPropertyHasBeenSet; }
43 template <typename InputPropertyT = Aws::String>
44 void SetInputProperty(InputPropertyT&& value) {
45 m_inputPropertyHasBeenSet = true;
46 m_inputProperty = std::forward<InputPropertyT>(value);
47 }
48 template <typename InputPropertyT = Aws::String>
49 SimpleRule& WithInputProperty(InputPropertyT&& value) {
50 SetInputProperty(std::forward<InputPropertyT>(value));
51 return *this;
52 }
54
56
59 inline ComparisonOperator GetComparisonOperator() const { return m_comparisonOperator; }
60 inline bool ComparisonOperatorHasBeenSet() const { return m_comparisonOperatorHasBeenSet; }
62 m_comparisonOperatorHasBeenSet = true;
63 m_comparisonOperator = value;
64 }
67 return *this;
68 }
70
72
76 inline const Aws::String& GetThreshold() const { return m_threshold; }
77 inline bool ThresholdHasBeenSet() const { return m_thresholdHasBeenSet; }
78 template <typename ThresholdT = Aws::String>
79 void SetThreshold(ThresholdT&& value) {
80 m_thresholdHasBeenSet = true;
81 m_threshold = std::forward<ThresholdT>(value);
82 }
83 template <typename ThresholdT = Aws::String>
84 SimpleRule& WithThreshold(ThresholdT&& value) {
85 SetThreshold(std::forward<ThresholdT>(value));
86 return *this;
87 }
89 private:
90 Aws::String m_inputProperty;
91
93
94 Aws::String m_threshold;
95 bool m_inputPropertyHasBeenSet = false;
96 bool m_comparisonOperatorHasBeenSet = false;
97 bool m_thresholdHasBeenSet = false;
98};
99
100} // namespace Model
101} // namespace IoTEvents
102} // namespace Aws
void SetInputProperty(InputPropertyT &&value)
Definition SimpleRule.h:44
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:49
bool ComparisonOperatorHasBeenSet() const
Definition SimpleRule.h:60
const Aws::String & GetInputProperty() const
Definition SimpleRule.h:41
AWS_IOTEVENTS_API SimpleRule(Aws::Utils::Json::JsonView jsonValue)
SimpleRule & WithThreshold(ThresholdT &&value)
Definition SimpleRule.h:84
AWS_IOTEVENTS_API SimpleRule & operator=(Aws::Utils::Json::JsonView jsonValue)
SimpleRule & WithComparisonOperator(ComparisonOperator value)
Definition SimpleRule.h:65
void SetThreshold(ThresholdT &&value)
Definition SimpleRule.h:79
const Aws::String & GetThreshold() const
Definition SimpleRule.h:76
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue