AWS SDK for C++

AWS SDK for C++ Version 1.11.788

Loading...
Searching...
No Matches
DaemonAlarmConfiguration.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/ecs/ECS_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace ECS {
21namespace Model {
22
31 public:
32 AWS_ECS_API DaemonAlarmConfiguration() = default;
36
38
41 inline const Aws::Vector<Aws::String>& GetAlarmNames() const { return m_alarmNames; }
42 inline bool AlarmNamesHasBeenSet() const { return m_alarmNamesHasBeenSet; }
43 template <typename AlarmNamesT = Aws::Vector<Aws::String>>
44 void SetAlarmNames(AlarmNamesT&& value) {
45 m_alarmNamesHasBeenSet = true;
46 m_alarmNames = std::forward<AlarmNamesT>(value);
47 }
48 template <typename AlarmNamesT = Aws::Vector<Aws::String>>
50 SetAlarmNames(std::forward<AlarmNamesT>(value));
51 return *this;
52 }
53 template <typename AlarmNamesT = Aws::String>
55 m_alarmNamesHasBeenSet = true;
56 m_alarmNames.emplace_back(std::forward<AlarmNamesT>(value));
57 return *this;
58 }
60
62
66 inline bool GetEnable() const { return m_enable; }
67 inline bool EnableHasBeenSet() const { return m_enableHasBeenSet; }
68 inline void SetEnable(bool value) {
69 m_enableHasBeenSet = true;
70 m_enable = value;
71 }
73 SetEnable(value);
74 return *this;
75 }
77 private:
78 Aws::Vector<Aws::String> m_alarmNames;
79
80 bool m_enable{false};
81 bool m_alarmNamesHasBeenSet = false;
82 bool m_enableHasBeenSet = false;
83};
84
85} // namespace Model
86} // namespace ECS
87} // namespace Aws
AWS_ECS_API DaemonAlarmConfiguration(Aws::Utils::Json::JsonView jsonValue)
AWS_ECS_API DaemonAlarmConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
DaemonAlarmConfiguration & WithAlarmNames(AlarmNamesT &&value)
AWS_ECS_API Aws::Utils::Json::JsonValue Jsonize() const
DaemonAlarmConfiguration & AddAlarmNames(AlarmNamesT &&value)
DaemonAlarmConfiguration & WithEnable(bool value)
const Aws::Vector< Aws::String > & GetAlarmNames() const
AWS_ECS_API DaemonAlarmConfiguration()=default
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue