AWS SDK for C++

AWS SDK for C++ Version 1.11.761

Loading...
Searching...
No Matches
CloudwatchAlarmAction.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/iot/IoT_EXPORTS.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace IoT {
20namespace Model {
21
29 public:
30 AWS_IOT_API CloudwatchAlarmAction() = default;
34
36
39 inline const Aws::String& GetRoleArn() const { return m_roleArn; }
40 inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
41 template <typename RoleArnT = Aws::String>
42 void SetRoleArn(RoleArnT&& value) {
43 m_roleArnHasBeenSet = true;
44 m_roleArn = std::forward<RoleArnT>(value);
45 }
46 template <typename RoleArnT = Aws::String>
48 SetRoleArn(std::forward<RoleArnT>(value));
49 return *this;
50 }
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) {
61 m_alarmNameHasBeenSet = true;
62 m_alarmName = std::forward<AlarmNameT>(value);
63 }
64 template <typename AlarmNameT = Aws::String>
65 CloudwatchAlarmAction& WithAlarmName(AlarmNameT&& value) {
66 SetAlarmName(std::forward<AlarmNameT>(value));
67 return *this;
68 }
70
72
75 inline const Aws::String& GetStateReason() const { return m_stateReason; }
76 inline bool StateReasonHasBeenSet() const { return m_stateReasonHasBeenSet; }
77 template <typename StateReasonT = Aws::String>
78 void SetStateReason(StateReasonT&& value) {
79 m_stateReasonHasBeenSet = true;
80 m_stateReason = std::forward<StateReasonT>(value);
81 }
82 template <typename StateReasonT = Aws::String>
83 CloudwatchAlarmAction& WithStateReason(StateReasonT&& value) {
84 SetStateReason(std::forward<StateReasonT>(value));
85 return *this;
86 }
88
90
94 inline const Aws::String& GetStateValue() const { return m_stateValue; }
95 inline bool StateValueHasBeenSet() const { return m_stateValueHasBeenSet; }
96 template <typename StateValueT = Aws::String>
97 void SetStateValue(StateValueT&& value) {
98 m_stateValueHasBeenSet = true;
99 m_stateValue = std::forward<StateValueT>(value);
100 }
101 template <typename StateValueT = Aws::String>
102 CloudwatchAlarmAction& WithStateValue(StateValueT&& value) {
103 SetStateValue(std::forward<StateValueT>(value));
104 return *this;
105 }
107 private:
108 Aws::String m_roleArn;
109
110 Aws::String m_alarmName;
111
112 Aws::String m_stateReason;
113
114 Aws::String m_stateValue;
115 bool m_roleArnHasBeenSet = false;
116 bool m_alarmNameHasBeenSet = false;
117 bool m_stateReasonHasBeenSet = false;
118 bool m_stateValueHasBeenSet = false;
119};
120
121} // namespace Model
122} // namespace IoT
123} // 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