AWS SDK for C++

AWS SDK for C++ Version 1.11.608

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() = default;
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 AlarmStateName GetStateName() const { return m_stateName; }
65 inline bool StateNameHasBeenSet() const { return m_stateNameHasBeenSet; }
66 inline void SetStateName(AlarmStateName value) { m_stateNameHasBeenSet = true; m_stateName = value; }
67 inline AlarmState& WithStateName(AlarmStateName value) { SetStateName(value); return *this;}
69
71
74 inline const RuleEvaluation& GetRuleEvaluation() const { return m_ruleEvaluation; }
75 inline bool RuleEvaluationHasBeenSet() const { return m_ruleEvaluationHasBeenSet; }
76 template<typename RuleEvaluationT = RuleEvaluation>
77 void SetRuleEvaluation(RuleEvaluationT&& value) { m_ruleEvaluationHasBeenSet = true; m_ruleEvaluation = std::forward<RuleEvaluationT>(value); }
78 template<typename RuleEvaluationT = RuleEvaluation>
79 AlarmState& WithRuleEvaluation(RuleEvaluationT&& value) { SetRuleEvaluation(std::forward<RuleEvaluationT>(value)); return *this;}
81
83
87 inline const CustomerAction& GetCustomerAction() const { return m_customerAction; }
88 inline bool CustomerActionHasBeenSet() const { return m_customerActionHasBeenSet; }
89 template<typename CustomerActionT = CustomerAction>
90 void SetCustomerAction(CustomerActionT&& value) { m_customerActionHasBeenSet = true; m_customerAction = std::forward<CustomerActionT>(value); }
91 template<typename CustomerActionT = CustomerAction>
92 AlarmState& WithCustomerAction(CustomerActionT&& value) { SetCustomerAction(std::forward<CustomerActionT>(value)); return *this;}
94
96
99 inline const SystemEvent& GetSystemEvent() const { return m_systemEvent; }
100 inline bool SystemEventHasBeenSet() const { return m_systemEventHasBeenSet; }
101 template<typename SystemEventT = SystemEvent>
102 void SetSystemEvent(SystemEventT&& value) { m_systemEventHasBeenSet = true; m_systemEvent = std::forward<SystemEventT>(value); }
103 template<typename SystemEventT = SystemEvent>
104 AlarmState& WithSystemEvent(SystemEventT&& value) { SetSystemEvent(std::forward<SystemEventT>(value)); return *this;}
106 private:
107
109 bool m_stateNameHasBeenSet = false;
110
111 RuleEvaluation m_ruleEvaluation;
112 bool m_ruleEvaluationHasBeenSet = false;
113
114 CustomerAction m_customerAction;
115 bool m_customerActionHasBeenSet = false;
116
117 SystemEvent m_systemEvent;
118 bool m_systemEventHasBeenSet = false;
119 };
120
121} // namespace Model
122} // namespace IoTEventsData
123} // namespace Aws
const CustomerAction & GetCustomerAction() const
Definition AlarmState.h:87
AlarmState & WithRuleEvaluation(RuleEvaluationT &&value)
Definition AlarmState.h:79
const RuleEvaluation & GetRuleEvaluation() const
Definition AlarmState.h:74
void SetRuleEvaluation(RuleEvaluationT &&value)
Definition AlarmState.h:77
void SetStateName(AlarmStateName value)
Definition AlarmState.h:66
AlarmStateName GetStateName() const
Definition AlarmState.h:64
AWS_IOTEVENTSDATA_API Aws::Utils::Json::JsonValue Jsonize() const
AlarmState & WithCustomerAction(CustomerActionT &&value)
Definition AlarmState.h:92
AlarmState & WithStateName(AlarmStateName value)
Definition AlarmState.h:67
AlarmState & WithSystemEvent(SystemEventT &&value)
Definition AlarmState.h:104
const SystemEvent & GetSystemEvent() const
Definition AlarmState.h:99
AWS_IOTEVENTSDATA_API AlarmState()=default
void SetCustomerAction(CustomerActionT &&value)
Definition AlarmState.h:90
AWS_IOTEVENTSDATA_API AlarmState & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_IOTEVENTSDATA_API AlarmState(Aws::Utils::Json::JsonView jsonValue)
void SetSystemEvent(SystemEventT &&value)
Definition AlarmState.h:102
Aws::Utils::Json::JsonValue JsonValue