AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
39
40
42
45 inline const Aws::String& GetRoleArn() const{ return m_roleArn; }
46 inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
47 inline void SetRoleArn(const Aws::String& value) { m_roleArnHasBeenSet = true; m_roleArn = value; }
48 inline void SetRoleArn(Aws::String&& value) { m_roleArnHasBeenSet = true; m_roleArn = std::move(value); }
49 inline void SetRoleArn(const char* value) { m_roleArnHasBeenSet = true; m_roleArn.assign(value); }
50 inline CloudwatchAlarmAction& WithRoleArn(const Aws::String& value) { SetRoleArn(value); return *this;}
51 inline CloudwatchAlarmAction& WithRoleArn(Aws::String&& value) { SetRoleArn(std::move(value)); return *this;}
52 inline CloudwatchAlarmAction& WithRoleArn(const char* value) { SetRoleArn(value); return *this;}
54
56
59 inline const Aws::String& GetAlarmName() const{ return m_alarmName; }
60 inline bool AlarmNameHasBeenSet() const { return m_alarmNameHasBeenSet; }
61 inline void SetAlarmName(const Aws::String& value) { m_alarmNameHasBeenSet = true; m_alarmName = value; }
62 inline void SetAlarmName(Aws::String&& value) { m_alarmNameHasBeenSet = true; m_alarmName = std::move(value); }
63 inline void SetAlarmName(const char* value) { m_alarmNameHasBeenSet = true; m_alarmName.assign(value); }
64 inline CloudwatchAlarmAction& WithAlarmName(const Aws::String& value) { SetAlarmName(value); return *this;}
65 inline CloudwatchAlarmAction& WithAlarmName(Aws::String&& value) { SetAlarmName(std::move(value)); return *this;}
66 inline CloudwatchAlarmAction& WithAlarmName(const char* value) { SetAlarmName(value); return *this;}
68
70
73 inline const Aws::String& GetStateReason() const{ return m_stateReason; }
74 inline bool StateReasonHasBeenSet() const { return m_stateReasonHasBeenSet; }
75 inline void SetStateReason(const Aws::String& value) { m_stateReasonHasBeenSet = true; m_stateReason = value; }
76 inline void SetStateReason(Aws::String&& value) { m_stateReasonHasBeenSet = true; m_stateReason = std::move(value); }
77 inline void SetStateReason(const char* value) { m_stateReasonHasBeenSet = true; m_stateReason.assign(value); }
78 inline CloudwatchAlarmAction& WithStateReason(const Aws::String& value) { SetStateReason(value); return *this;}
79 inline CloudwatchAlarmAction& WithStateReason(Aws::String&& value) { SetStateReason(std::move(value)); return *this;}
80 inline CloudwatchAlarmAction& WithStateReason(const char* value) { SetStateReason(value); return *this;}
82
84
88 inline const Aws::String& GetStateValue() const{ return m_stateValue; }
89 inline bool StateValueHasBeenSet() const { return m_stateValueHasBeenSet; }
90 inline void SetStateValue(const Aws::String& value) { m_stateValueHasBeenSet = true; m_stateValue = value; }
91 inline void SetStateValue(Aws::String&& value) { m_stateValueHasBeenSet = true; m_stateValue = std::move(value); }
92 inline void SetStateValue(const char* value) { m_stateValueHasBeenSet = true; m_stateValue.assign(value); }
93 inline CloudwatchAlarmAction& WithStateValue(const Aws::String& value) { SetStateValue(value); return *this;}
94 inline CloudwatchAlarmAction& WithStateValue(Aws::String&& value) { SetStateValue(std::move(value)); return *this;}
95 inline CloudwatchAlarmAction& WithStateValue(const char* value) { SetStateValue(value); return *this;}
97 private:
98
99 Aws::String m_roleArn;
100 bool m_roleArnHasBeenSet = false;
101
102 Aws::String m_alarmName;
103 bool m_alarmNameHasBeenSet = false;
104
105 Aws::String m_stateReason;
106 bool m_stateReasonHasBeenSet = false;
107
108 Aws::String m_stateValue;
109 bool m_stateValueHasBeenSet = false;
110 };
111
112} // namespace Model
113} // namespace IoT
114} // namespace Aws
CloudwatchAlarmAction & WithStateReason(const Aws::String &value)
CloudwatchAlarmAction & WithAlarmName(const char *value)
CloudwatchAlarmAction & WithRoleArn(Aws::String &&value)
CloudwatchAlarmAction & WithStateReason(const char *value)
AWS_IOT_API Aws::Utils::Json::JsonValue Jsonize() const
void SetStateValue(const Aws::String &value)
CloudwatchAlarmAction & WithStateReason(Aws::String &&value)
CloudwatchAlarmAction & WithRoleArn(const Aws::String &value)
void SetStateReason(const Aws::String &value)
CloudwatchAlarmAction & WithAlarmName(const Aws::String &value)
CloudwatchAlarmAction & WithStateValue(Aws::String &&value)
void SetAlarmName(const Aws::String &value)
CloudwatchAlarmAction & WithRoleArn(const char *value)
void SetRoleArn(const Aws::String &value)
AWS_IOT_API CloudwatchAlarmAction(Aws::Utils::Json::JsonView jsonValue)
CloudwatchAlarmAction & WithStateValue(const char *value)
AWS_IOT_API CloudwatchAlarmAction & operator=(Aws::Utils::Json::JsonView jsonValue)
CloudwatchAlarmAction & WithStateValue(const Aws::String &value)
CloudwatchAlarmAction & WithAlarmName(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue