AWS SDK for C++  1.9.131
AWS SDK for C++
AlarmRule.h
Go to the documentation of this file.
1 
6 #pragma once
9 #include <utility>
10 
11 namespace Aws
12 {
13 namespace Utils
14 {
15 namespace Json
16 {
17  class JsonValue;
18  class JsonView;
19 } // namespace Json
20 } // namespace Utils
21 namespace IoTEvents
22 {
23 namespace Model
24 {
25 
32  {
33  public:
38 
39 
44  inline const SimpleRule& GetSimpleRule() const{ return m_simpleRule; }
45 
50  inline bool SimpleRuleHasBeenSet() const { return m_simpleRuleHasBeenSet; }
51 
56  inline void SetSimpleRule(const SimpleRule& value) { m_simpleRuleHasBeenSet = true; m_simpleRule = value; }
57 
62  inline void SetSimpleRule(SimpleRule&& value) { m_simpleRuleHasBeenSet = true; m_simpleRule = std::move(value); }
63 
68  inline AlarmRule& WithSimpleRule(const SimpleRule& value) { SetSimpleRule(value); return *this;}
69 
74  inline AlarmRule& WithSimpleRule(SimpleRule&& value) { SetSimpleRule(std::move(value)); return *this;}
75 
76  private:
77 
78  SimpleRule m_simpleRule;
79  bool m_simpleRuleHasBeenSet;
80  };
81 
82 } // namespace Model
83 } // namespace IoTEvents
84 } // namespace Aws
Aws::IoTEvents::Model::AlarmRule::WithSimpleRule
AlarmRule & WithSimpleRule(const SimpleRule &value)
Definition: AlarmRule.h:68
Aws::IoTEvents::Model::SimpleRule
Definition: SimpleRule.h:34
Aws::IoTEvents::Model::AlarmRule::AlarmRule
AlarmRule()
Aws::IoTEvents::Model::AlarmRule::operator=
AlarmRule & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::IoTEvents::Model::AlarmRule
Definition: AlarmRule.h:32
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::IoTEvents::Model::AlarmRule::SetSimpleRule
void SetSimpleRule(SimpleRule &&value)
Definition: AlarmRule.h:62
Aws::IoTEvents::Model::AlarmRule::AlarmRule
AlarmRule(Aws::Utils::Json::JsonView jsonValue)
Aws::IoTEvents::Model::AlarmRule::SimpleRuleHasBeenSet
bool SimpleRuleHasBeenSet() const
Definition: AlarmRule.h:50
Aws::IoTEvents::Model::AlarmRule::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws
Definition: AccessManagementClient.h:15
IoTEvents_EXPORTS.h
AWS_IOTEVENTS_API
#define AWS_IOTEVENTS_API
Definition: IoTEvents_EXPORTS.h:28
Aws::IoTEvents::Model::AlarmRule::GetSimpleRule
const SimpleRule & GetSimpleRule() const
Definition: AlarmRule.h:44
Aws::IoTEvents::Model::AlarmRule::SetSimpleRule
void SetSimpleRule(const SimpleRule &value)
Definition: AlarmRule.h:56
Aws::IoTEvents::Model::AlarmRule::WithSimpleRule
AlarmRule & WithSimpleRule(SimpleRule &&value)
Definition: AlarmRule.h:74
SimpleRule.h