AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
CloudwatchAlarmAction.h
1
6#pragma once
7#include <aws/iot/IoT_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <utility>
10
11namespace Aws
12{
13namespace Utils
14{
15namespace Json
16{
17 class JsonValue;
18 class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace IoT
22{
23namespace Model
24{
25
33 {
34 public:
35 AWS_IOT_API CloudwatchAlarmAction() = default;
39
40
42
45 inline const Aws::String& GetRoleArn() const { return m_roleArn; }
46 inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
47 template<typename RoleArnT = Aws::String>
48 void SetRoleArn(RoleArnT&& value) { m_roleArnHasBeenSet = true; m_roleArn = std::forward<RoleArnT>(value); }
49 template<typename RoleArnT = Aws::String>
50 CloudwatchAlarmAction& WithRoleArn(RoleArnT&& value) { SetRoleArn(std::forward<RoleArnT>(value)); return *this;}
52
54
57 inline const Aws::String& GetAlarmName() const { return m_alarmName; }
58 inline bool AlarmNameHasBeenSet() const { return m_alarmNameHasBeenSet; }
59 template<typename AlarmNameT = Aws::String>
60 void SetAlarmName(AlarmNameT&& value) { m_alarmNameHasBeenSet = true; m_alarmName = std::forward<AlarmNameT>(value); }
61 template<typename AlarmNameT = Aws::String>
62 CloudwatchAlarmAction& WithAlarmName(AlarmNameT&& value) { SetAlarmName(std::forward<AlarmNameT>(value)); return *this;}
64
66
69 inline const Aws::String& GetStateReason() const { return m_stateReason; }
70 inline bool StateReasonHasBeenSet() const { return m_stateReasonHasBeenSet; }
71 template<typename StateReasonT = Aws::String>
72 void SetStateReason(StateReasonT&& value) { m_stateReasonHasBeenSet = true; m_stateReason = std::forward<StateReasonT>(value); }
73 template<typename StateReasonT = Aws::String>
74 CloudwatchAlarmAction& WithStateReason(StateReasonT&& value) { SetStateReason(std::forward<StateReasonT>(value)); return *this;}
76
78
82 inline const Aws::String& GetStateValue() const { return m_stateValue; }
83 inline bool StateValueHasBeenSet() const { return m_stateValueHasBeenSet; }
84 template<typename StateValueT = Aws::String>
85 void SetStateValue(StateValueT&& value) { m_stateValueHasBeenSet = true; m_stateValue = std::forward<StateValueT>(value); }
86 template<typename StateValueT = Aws::String>
87 CloudwatchAlarmAction& WithStateValue(StateValueT&& value) { SetStateValue(std::forward<StateValueT>(value)); return *this;}
89 private:
90
91 Aws::String m_roleArn;
92 bool m_roleArnHasBeenSet = false;
93
94 Aws::String m_alarmName;
95 bool m_alarmNameHasBeenSet = false;
96
97 Aws::String m_stateReason;
98 bool m_stateReasonHasBeenSet = false;
99
100 Aws::String m_stateValue;
101 bool m_stateValueHasBeenSet = false;
102 };
103
104} // namespace Model
105} // namespace IoT
106} // namespace Aws
AWS_IOT_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_IOT_API CloudwatchAlarmAction()=default
CloudwatchAlarmAction & WithRoleArn(RoleArnT &&value)
CloudwatchAlarmAction & WithStateReason(StateReasonT &&value)
AWS_IOT_API CloudwatchAlarmAction(Aws::Utils::Json::JsonView jsonValue)
AWS_IOT_API CloudwatchAlarmAction & operator=(Aws::Utils::Json::JsonView jsonValue)
CloudwatchAlarmAction & WithStateValue(StateValueT &&value)
CloudwatchAlarmAction & WithAlarmName(AlarmNameT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue