AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
AlarmConfiguration.h
1
6#pragma once
7#include <aws/codedeploy/CodeDeploy_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/codedeploy/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 CodeDeploy
23{
24namespace Model
25{
26
34 {
35 public:
36 AWS_CODEDEPLOY_API AlarmConfiguration() = default;
37 AWS_CODEDEPLOY_API AlarmConfiguration(Aws::Utils::Json::JsonView jsonValue);
39 AWS_CODEDEPLOY_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
46 inline bool GetEnabled() const { return m_enabled; }
47 inline bool EnabledHasBeenSet() const { return m_enabledHasBeenSet; }
48 inline void SetEnabled(bool value) { m_enabledHasBeenSet = true; m_enabled = value; }
49 inline AlarmConfiguration& WithEnabled(bool value) { SetEnabled(value); return *this;}
51
53
61 inline bool GetIgnorePollAlarmFailure() const { return m_ignorePollAlarmFailure; }
62 inline bool IgnorePollAlarmFailureHasBeenSet() const { return m_ignorePollAlarmFailureHasBeenSet; }
63 inline void SetIgnorePollAlarmFailure(bool value) { m_ignorePollAlarmFailureHasBeenSet = true; m_ignorePollAlarmFailure = value; }
64 inline AlarmConfiguration& WithIgnorePollAlarmFailure(bool value) { SetIgnorePollAlarmFailure(value); return *this;}
66
68
72 inline const Aws::Vector<Alarm>& GetAlarms() const { return m_alarms; }
73 inline bool AlarmsHasBeenSet() const { return m_alarmsHasBeenSet; }
74 template<typename AlarmsT = Aws::Vector<Alarm>>
75 void SetAlarms(AlarmsT&& value) { m_alarmsHasBeenSet = true; m_alarms = std::forward<AlarmsT>(value); }
76 template<typename AlarmsT = Aws::Vector<Alarm>>
77 AlarmConfiguration& WithAlarms(AlarmsT&& value) { SetAlarms(std::forward<AlarmsT>(value)); return *this;}
78 template<typename AlarmsT = Alarm>
79 AlarmConfiguration& AddAlarms(AlarmsT&& value) { m_alarmsHasBeenSet = true; m_alarms.emplace_back(std::forward<AlarmsT>(value)); return *this; }
81 private:
82
83 bool m_enabled{false};
84 bool m_enabledHasBeenSet = false;
85
86 bool m_ignorePollAlarmFailure{false};
87 bool m_ignorePollAlarmFailureHasBeenSet = false;
88
89 Aws::Vector<Alarm> m_alarms;
90 bool m_alarmsHasBeenSet = false;
91 };
92
93} // namespace Model
94} // namespace CodeDeploy
95} // namespace Aws
AlarmConfiguration & WithAlarms(AlarmsT &&value)
AWS_CODEDEPLOY_API AlarmConfiguration(Aws::Utils::Json::JsonView jsonValue)
AlarmConfiguration & WithEnabled(bool value)
const Aws::Vector< Alarm > & GetAlarms() const
AWS_CODEDEPLOY_API Aws::Utils::Json::JsonValue Jsonize() const
AlarmConfiguration & WithIgnorePollAlarmFailure(bool value)
AWS_CODEDEPLOY_API AlarmConfiguration()=default
AWS_CODEDEPLOY_API AlarmConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
AlarmConfiguration & AddAlarms(AlarmsT &&value)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue