AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
AlarmConfiguration.h
1
6#pragma once
7#include <aws/ssm/SSM_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/ssm/model/Alarm.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace SSM
23{
24namespace Model
25{
26
34 {
35 public:
36 AWS_SSM_API AlarmConfiguration();
40
41
43
50 inline bool GetIgnorePollAlarmFailure() const{ return m_ignorePollAlarmFailure; }
51 inline bool IgnorePollAlarmFailureHasBeenSet() const { return m_ignorePollAlarmFailureHasBeenSet; }
52 inline void SetIgnorePollAlarmFailure(bool value) { m_ignorePollAlarmFailureHasBeenSet = true; m_ignorePollAlarmFailure = value; }
53 inline AlarmConfiguration& WithIgnorePollAlarmFailure(bool value) { SetIgnorePollAlarmFailure(value); return *this;}
55
57
60 inline const Aws::Vector<Alarm>& GetAlarms() const{ return m_alarms; }
61 inline bool AlarmsHasBeenSet() const { return m_alarmsHasBeenSet; }
62 inline void SetAlarms(const Aws::Vector<Alarm>& value) { m_alarmsHasBeenSet = true; m_alarms = value; }
63 inline void SetAlarms(Aws::Vector<Alarm>&& value) { m_alarmsHasBeenSet = true; m_alarms = std::move(value); }
64 inline AlarmConfiguration& WithAlarms(const Aws::Vector<Alarm>& value) { SetAlarms(value); return *this;}
65 inline AlarmConfiguration& WithAlarms(Aws::Vector<Alarm>&& value) { SetAlarms(std::move(value)); return *this;}
66 inline AlarmConfiguration& AddAlarms(const Alarm& value) { m_alarmsHasBeenSet = true; m_alarms.push_back(value); return *this; }
67 inline AlarmConfiguration& AddAlarms(Alarm&& value) { m_alarmsHasBeenSet = true; m_alarms.push_back(std::move(value)); return *this; }
69 private:
70
71 bool m_ignorePollAlarmFailure;
72 bool m_ignorePollAlarmFailureHasBeenSet = false;
73
74 Aws::Vector<Alarm> m_alarms;
75 bool m_alarmsHasBeenSet = false;
76 };
77
78} // namespace Model
79} // namespace SSM
80} // namespace Aws
AWS_SSM_API AlarmConfiguration(Aws::Utils::Json::JsonView jsonValue)
AlarmConfiguration & AddAlarms(Alarm &&value)
AlarmConfiguration & AddAlarms(const Alarm &value)
AlarmConfiguration & WithAlarms(Aws::Vector< Alarm > &&value)
const Aws::Vector< Alarm > & GetAlarms() const
void SetAlarms(const Aws::Vector< Alarm > &value)
AlarmConfiguration & WithAlarms(const Aws::Vector< Alarm > &value)
void SetAlarms(Aws::Vector< Alarm > &&value)
AWS_SSM_API AlarmConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
AlarmConfiguration & WithIgnorePollAlarmFailure(bool value)
AWS_SSM_API Aws::Utils::Json::JsonValue Jsonize() const
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue