AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetInputProperty(const Aws::String& value) { m_inputPropertyHasBeenSet = true; m_inputProperty = value; }
50 inline void SetInputProperty(Aws::String&& value) { m_inputPropertyHasBeenSet = true; m_inputProperty = std::move(value); }
51 inline void SetInputProperty(const char* value) { m_inputPropertyHasBeenSet = true; m_inputProperty.assign(value); }
52 inline SimpleRule& WithInputProperty(const Aws::String& value) { SetInputProperty(value); return *this;}
53 inline SimpleRule& WithInputProperty(Aws::String&& value) { SetInputProperty(std::move(value)); return *this;}
54 inline SimpleRule& WithInputProperty(const char* value) { SetInputProperty(value); return *this;}
56
58
61 inline const ComparisonOperator& GetComparisonOperator() const{ return m_comparisonOperator; }
62 inline bool ComparisonOperatorHasBeenSet() const { return m_comparisonOperatorHasBeenSet; }
63 inline void SetComparisonOperator(const ComparisonOperator& value) { m_comparisonOperatorHasBeenSet = true; m_comparisonOperator = value; }
64 inline void SetComparisonOperator(ComparisonOperator&& value) { m_comparisonOperatorHasBeenSet = true; m_comparisonOperator = std::move(value); }
65 inline SimpleRule& WithComparisonOperator(const ComparisonOperator& value) { SetComparisonOperator(value); return *this;}
66 inline SimpleRule& WithComparisonOperator(ComparisonOperator&& value) { SetComparisonOperator(std::move(value)); return *this;}
68
70
74 inline const Aws::String& GetThreshold() const{ return m_threshold; }
75 inline bool ThresholdHasBeenSet() const { return m_thresholdHasBeenSet; }
76 inline void SetThreshold(const Aws::String& value) { m_thresholdHasBeenSet = true; m_threshold = value; }
77 inline void SetThreshold(Aws::String&& value) { m_thresholdHasBeenSet = true; m_threshold = std::move(value); }
78 inline void SetThreshold(const char* value) { m_thresholdHasBeenSet = true; m_threshold.assign(value); }
79 inline SimpleRule& WithThreshold(const Aws::String& value) { SetThreshold(value); return *this;}
80 inline SimpleRule& WithThreshold(Aws::String&& value) { SetThreshold(std::move(value)); return *this;}
81 inline SimpleRule& WithThreshold(const char* value) { SetThreshold(value); return *this;}
83 private:
84
85 Aws::String m_inputProperty;
86 bool m_inputPropertyHasBeenSet = false;
87
88 ComparisonOperator m_comparisonOperator;
89 bool m_comparisonOperatorHasBeenSet = false;
90
91 Aws::String m_threshold;
92 bool m_thresholdHasBeenSet = false;
93 };
94
95} // namespace Model
96} // namespace IoTEvents
97} // namespace Aws
SimpleRule & WithThreshold(Aws::String &&value)
Definition SimpleRule.h:80
AWS_IOTEVENTS_API Aws::Utils::Json::JsonValue Jsonize() const
void SetComparisonOperator(const ComparisonOperator &value)
Definition SimpleRule.h:63
SimpleRule & WithThreshold(const Aws::String &value)
Definition SimpleRule.h:79
SimpleRule & WithInputProperty(const Aws::String &value)
Definition SimpleRule.h:52
void SetThreshold(const Aws::String &value)
Definition SimpleRule.h:76
void SetInputProperty(const char *value)
Definition SimpleRule.h:51
void SetComparisonOperator(ComparisonOperator &&value)
Definition SimpleRule.h:64
void SetInputProperty(Aws::String &&value)
Definition SimpleRule.h:50
SimpleRule & WithInputProperty(Aws::String &&value)
Definition SimpleRule.h:53
bool ComparisonOperatorHasBeenSet() const
Definition SimpleRule.h:62
const Aws::String & GetInputProperty() const
Definition SimpleRule.h:47
AWS_IOTEVENTS_API SimpleRule(Aws::Utils::Json::JsonView jsonValue)
void SetThreshold(const char *value)
Definition SimpleRule.h:78
const ComparisonOperator & GetComparisonOperator() const
Definition SimpleRule.h:61
SimpleRule & WithComparisonOperator(ComparisonOperator &&value)
Definition SimpleRule.h:66
SimpleRule & WithComparisonOperator(const ComparisonOperator &value)
Definition SimpleRule.h:65
SimpleRule & WithThreshold(const char *value)
Definition SimpleRule.h:81
AWS_IOTEVENTS_API SimpleRule & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_IOTEVENTS_API SimpleRule()
SimpleRule & WithInputProperty(const char *value)
Definition SimpleRule.h:54
void SetInputProperty(const Aws::String &value)
Definition SimpleRule.h:49
const Aws::String & GetThreshold() const
Definition SimpleRule.h:74
void SetThreshold(Aws::String &&value)
Definition SimpleRule.h:77
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue