AWS SDK for C++

AWS SDK for C++ Version 1.11.752

Loading...
Searching...
No Matches
Alarm.h
1
6#pragma once
7#include <aws/application-autoscaling/ApplicationAutoScaling_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace ApplicationAutoScaling {
20namespace Model {
21
28class Alarm {
29 public:
30 AWS_APPLICATIONAUTOSCALING_API Alarm() = default;
31 AWS_APPLICATIONAUTOSCALING_API Alarm(Aws::Utils::Json::JsonView jsonValue);
32 AWS_APPLICATIONAUTOSCALING_API Alarm& operator=(Aws::Utils::Json::JsonView jsonValue);
33 AWS_APPLICATIONAUTOSCALING_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
39 inline const Aws::String& GetAlarmName() const { return m_alarmName; }
40 inline bool AlarmNameHasBeenSet() const { return m_alarmNameHasBeenSet; }
41 template <typename AlarmNameT = Aws::String>
42 void SetAlarmName(AlarmNameT&& value) {
43 m_alarmNameHasBeenSet = true;
44 m_alarmName = std::forward<AlarmNameT>(value);
45 }
46 template <typename AlarmNameT = Aws::String>
47 Alarm& WithAlarmName(AlarmNameT&& value) {
48 SetAlarmName(std::forward<AlarmNameT>(value));
49 return *this;
50 }
52
54
57 inline const Aws::String& GetAlarmARN() const { return m_alarmARN; }
58 inline bool AlarmARNHasBeenSet() const { return m_alarmARNHasBeenSet; }
59 template <typename AlarmARNT = Aws::String>
60 void SetAlarmARN(AlarmARNT&& value) {
61 m_alarmARNHasBeenSet = true;
62 m_alarmARN = std::forward<AlarmARNT>(value);
63 }
64 template <typename AlarmARNT = Aws::String>
65 Alarm& WithAlarmARN(AlarmARNT&& value) {
66 SetAlarmARN(std::forward<AlarmARNT>(value));
67 return *this;
68 }
70 private:
71 Aws::String m_alarmName;
72
73 Aws::String m_alarmARN;
74 bool m_alarmNameHasBeenSet = false;
75 bool m_alarmARNHasBeenSet = false;
76};
77
78} // namespace Model
79} // namespace ApplicationAutoScaling
80} // namespace Aws
Alarm & WithAlarmARN(AlarmARNT &&value)
Definition Alarm.h:65
Alarm & WithAlarmName(AlarmNameT &&value)
Definition Alarm.h:47
const Aws::String & GetAlarmName() const
Definition Alarm.h:39
AWS_APPLICATIONAUTOSCALING_API Alarm & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_APPLICATIONAUTOSCALING_API Alarm(Aws::Utils::Json::JsonView jsonValue)
void SetAlarmARN(AlarmARNT &&value)
Definition Alarm.h:60
const Aws::String & GetAlarmARN() const
Definition Alarm.h:57
AWS_APPLICATIONAUTOSCALING_API Alarm()=default
void SetAlarmName(AlarmNameT &&value)
Definition Alarm.h:42
AWS_APPLICATIONAUTOSCALING_API Aws::Utils::Json::JsonValue Jsonize() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue