AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
AlarmState.h
1
6#pragma once
7#include <aws/iotevents-data/IoTEventsData_EXPORTS.h>
8#include <aws/iotevents-data/model/AlarmStateName.h>
9#include <aws/iotevents-data/model/RuleEvaluation.h>
10#include <aws/iotevents-data/model/CustomerAction.h>
11#include <aws/iotevents-data/model/SystemEvent.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21 class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace IoTEventsData
25{
26namespace Model
27{
28
36 {
37 public:
38 AWS_IOTEVENTSDATA_API AlarmState();
39 AWS_IOTEVENTSDATA_API AlarmState(Aws::Utils::Json::JsonView jsonValue);
40 AWS_IOTEVENTSDATA_API AlarmState& operator=(Aws::Utils::Json::JsonView jsonValue);
41 AWS_IOTEVENTSDATA_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
64 inline const AlarmStateName& GetStateName() const{ return m_stateName; }
65 inline bool StateNameHasBeenSet() const { return m_stateNameHasBeenSet; }
66 inline void SetStateName(const AlarmStateName& value) { m_stateNameHasBeenSet = true; m_stateName = value; }
67 inline void SetStateName(AlarmStateName&& value) { m_stateNameHasBeenSet = true; m_stateName = std::move(value); }
68 inline AlarmState& WithStateName(const AlarmStateName& value) { SetStateName(value); return *this;}
69 inline AlarmState& WithStateName(AlarmStateName&& value) { SetStateName(std::move(value)); return *this;}
71
73
76 inline const RuleEvaluation& GetRuleEvaluation() const{ return m_ruleEvaluation; }
77 inline bool RuleEvaluationHasBeenSet() const { return m_ruleEvaluationHasBeenSet; }
78 inline void SetRuleEvaluation(const RuleEvaluation& value) { m_ruleEvaluationHasBeenSet = true; m_ruleEvaluation = value; }
79 inline void SetRuleEvaluation(RuleEvaluation&& value) { m_ruleEvaluationHasBeenSet = true; m_ruleEvaluation = std::move(value); }
80 inline AlarmState& WithRuleEvaluation(const RuleEvaluation& value) { SetRuleEvaluation(value); return *this;}
81 inline AlarmState& WithRuleEvaluation(RuleEvaluation&& value) { SetRuleEvaluation(std::move(value)); return *this;}
83
85
89 inline const CustomerAction& GetCustomerAction() const{ return m_customerAction; }
90 inline bool CustomerActionHasBeenSet() const { return m_customerActionHasBeenSet; }
91 inline void SetCustomerAction(const CustomerAction& value) { m_customerActionHasBeenSet = true; m_customerAction = value; }
92 inline void SetCustomerAction(CustomerAction&& value) { m_customerActionHasBeenSet = true; m_customerAction = std::move(value); }
93 inline AlarmState& WithCustomerAction(const CustomerAction& value) { SetCustomerAction(value); return *this;}
94 inline AlarmState& WithCustomerAction(CustomerAction&& value) { SetCustomerAction(std::move(value)); return *this;}
96
98
101 inline const SystemEvent& GetSystemEvent() const{ return m_systemEvent; }
102 inline bool SystemEventHasBeenSet() const { return m_systemEventHasBeenSet; }
103 inline void SetSystemEvent(const SystemEvent& value) { m_systemEventHasBeenSet = true; m_systemEvent = value; }
104 inline void SetSystemEvent(SystemEvent&& value) { m_systemEventHasBeenSet = true; m_systemEvent = std::move(value); }
105 inline AlarmState& WithSystemEvent(const SystemEvent& value) { SetSystemEvent(value); return *this;}
106 inline AlarmState& WithSystemEvent(SystemEvent&& value) { SetSystemEvent(std::move(value)); return *this;}
108 private:
109
110 AlarmStateName m_stateName;
111 bool m_stateNameHasBeenSet = false;
112
113 RuleEvaluation m_ruleEvaluation;
114 bool m_ruleEvaluationHasBeenSet = false;
115
116 CustomerAction m_customerAction;
117 bool m_customerActionHasBeenSet = false;
118
119 SystemEvent m_systemEvent;
120 bool m_systemEventHasBeenSet = false;
121 };
122
123} // namespace Model
124} // namespace IoTEventsData
125} // namespace Aws
const CustomerAction & GetCustomerAction() const
Definition AlarmState.h:89
AlarmState & WithRuleEvaluation(const RuleEvaluation &value)
Definition AlarmState.h:80
void SetRuleEvaluation(const RuleEvaluation &value)
Definition AlarmState.h:78
const RuleEvaluation & GetRuleEvaluation() const
Definition AlarmState.h:76
AlarmState & WithStateName(AlarmStateName &&value)
Definition AlarmState.h:69
AlarmState & WithSystemEvent(SystemEvent &&value)
Definition AlarmState.h:106
void SetSystemEvent(const SystemEvent &value)
Definition AlarmState.h:103
AWS_IOTEVENTSDATA_API Aws::Utils::Json::JsonValue Jsonize() const
const AlarmStateName & GetStateName() const
Definition AlarmState.h:64
const SystemEvent & GetSystemEvent() const
Definition AlarmState.h:101
AlarmState & WithStateName(const AlarmStateName &value)
Definition AlarmState.h:68
void SetRuleEvaluation(RuleEvaluation &&value)
Definition AlarmState.h:79
void SetCustomerAction(const CustomerAction &value)
Definition AlarmState.h:91
AlarmState & WithCustomerAction(CustomerAction &&value)
Definition AlarmState.h:94
AWS_IOTEVENTSDATA_API AlarmState & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetCustomerAction(CustomerAction &&value)
Definition AlarmState.h:92
AWS_IOTEVENTSDATA_API AlarmState()
AlarmState & WithSystemEvent(const SystemEvent &value)
Definition AlarmState.h:105
AlarmState & WithCustomerAction(const CustomerAction &value)
Definition AlarmState.h:93
AWS_IOTEVENTSDATA_API AlarmState(Aws::Utils::Json::JsonView jsonValue)
void SetSystemEvent(SystemEvent &&value)
Definition AlarmState.h:104
void SetStateName(const AlarmStateName &value)
Definition AlarmState.h:66
AlarmState & WithRuleEvaluation(RuleEvaluation &&value)
Definition AlarmState.h:81
void SetStateName(AlarmStateName &&value)
Definition AlarmState.h:67
Aws::Utils::Json::JsonValue JsonValue