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/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();
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 inline void SetAlarms(const Aws::Vector<Alarm>& value) { m_alarmsHasBeenSet = true; m_alarms = value; }
75 inline void SetAlarms(Aws::Vector<Alarm>&& value) { m_alarmsHasBeenSet = true; m_alarms = std::move(value); }
76 inline AlarmConfiguration& WithAlarms(const Aws::Vector<Alarm>& value) { SetAlarms(value); return *this;}
77 inline AlarmConfiguration& WithAlarms(Aws::Vector<Alarm>&& value) { SetAlarms(std::move(value)); return *this;}
78 inline AlarmConfiguration& AddAlarms(const Alarm& value) { m_alarmsHasBeenSet = true; m_alarms.push_back(value); return *this; }
79 inline AlarmConfiguration& AddAlarms(Alarm&& value) { m_alarmsHasBeenSet = true; m_alarms.push_back(std::move(value)); return *this; }
81 private:
82
83 bool m_enabled;
84 bool m_enabledHasBeenSet = false;
85
86 bool m_ignorePollAlarmFailure;
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 & AddAlarms(Alarm &&value)
AWS_CODEDEPLOY_API AlarmConfiguration(Aws::Utils::Json::JsonView jsonValue)
AlarmConfiguration & WithEnabled(bool value)
AlarmConfiguration & AddAlarms(const Alarm &value)
const Aws::Vector< Alarm > & GetAlarms() const
AWS_CODEDEPLOY_API Aws::Utils::Json::JsonValue Jsonize() const
void SetAlarms(Aws::Vector< Alarm > &&value)
AlarmConfiguration & WithIgnorePollAlarmFailure(bool value)
AlarmConfiguration & WithAlarms(const Aws::Vector< Alarm > &value)
AWS_CODEDEPLOY_API AlarmConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetAlarms(const Aws::Vector< Alarm > &value)
AlarmConfiguration & WithAlarms(Aws::Vector< Alarm > &&value)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue