AWS SDK for C++

AWS SDK for C++ Version 1.11.788

Loading...
Searching...
No Matches
DaemonDeploymentAlarms.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#include <aws/ecs/model/DaemonDeploymentRollbackMonitorsStatus.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace ECS {
22namespace Model {
23
31 public:
32 AWS_ECS_API DaemonDeploymentAlarms() = default;
36
38
42 inline DaemonDeploymentRollbackMonitorsStatus GetStatus() const { return m_status; }
43 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
45 m_statusHasBeenSet = true;
46 m_status = value;
47 }
49 SetStatus(value);
50 return *this;
51 }
53
55
59 inline const Aws::Vector<Aws::String>& GetAlarmNames() const { return m_alarmNames; }
60 inline bool AlarmNamesHasBeenSet() const { return m_alarmNamesHasBeenSet; }
61 template <typename AlarmNamesT = Aws::Vector<Aws::String>>
62 void SetAlarmNames(AlarmNamesT&& value) {
63 m_alarmNamesHasBeenSet = true;
64 m_alarmNames = std::forward<AlarmNamesT>(value);
65 }
66 template <typename AlarmNamesT = Aws::Vector<Aws::String>>
67 DaemonDeploymentAlarms& WithAlarmNames(AlarmNamesT&& value) {
68 SetAlarmNames(std::forward<AlarmNamesT>(value));
69 return *this;
70 }
71 template <typename AlarmNamesT = Aws::String>
72 DaemonDeploymentAlarms& AddAlarmNames(AlarmNamesT&& value) {
73 m_alarmNamesHasBeenSet = true;
74 m_alarmNames.emplace_back(std::forward<AlarmNamesT>(value));
75 return *this;
76 }
78
80
84 inline const Aws::Vector<Aws::String>& GetTriggeredAlarmNames() const { return m_triggeredAlarmNames; }
85 inline bool TriggeredAlarmNamesHasBeenSet() const { return m_triggeredAlarmNamesHasBeenSet; }
86 template <typename TriggeredAlarmNamesT = Aws::Vector<Aws::String>>
87 void SetTriggeredAlarmNames(TriggeredAlarmNamesT&& value) {
88 m_triggeredAlarmNamesHasBeenSet = true;
89 m_triggeredAlarmNames = std::forward<TriggeredAlarmNamesT>(value);
90 }
91 template <typename TriggeredAlarmNamesT = Aws::Vector<Aws::String>>
92 DaemonDeploymentAlarms& WithTriggeredAlarmNames(TriggeredAlarmNamesT&& value) {
93 SetTriggeredAlarmNames(std::forward<TriggeredAlarmNamesT>(value));
94 return *this;
95 }
96 template <typename TriggeredAlarmNamesT = Aws::String>
97 DaemonDeploymentAlarms& AddTriggeredAlarmNames(TriggeredAlarmNamesT&& value) {
98 m_triggeredAlarmNamesHasBeenSet = true;
99 m_triggeredAlarmNames.emplace_back(std::forward<TriggeredAlarmNamesT>(value));
100 return *this;
101 }
103 private:
105
106 Aws::Vector<Aws::String> m_alarmNames;
107
108 Aws::Vector<Aws::String> m_triggeredAlarmNames;
109 bool m_statusHasBeenSet = false;
110 bool m_alarmNamesHasBeenSet = false;
111 bool m_triggeredAlarmNamesHasBeenSet = false;
112};
113
114} // namespace Model
115} // namespace ECS
116} // namespace Aws
DaemonDeploymentAlarms & WithAlarmNames(AlarmNamesT &&value)
const Aws::Vector< Aws::String > & GetTriggeredAlarmNames() const
DaemonDeploymentAlarms & WithStatus(DaemonDeploymentRollbackMonitorsStatus value)
DaemonDeploymentAlarms & WithTriggeredAlarmNames(TriggeredAlarmNamesT &&value)
const Aws::Vector< Aws::String > & GetAlarmNames() const
AWS_ECS_API DaemonDeploymentAlarms()=default
void SetStatus(DaemonDeploymentRollbackMonitorsStatus value)
DaemonDeploymentAlarms & AddTriggeredAlarmNames(TriggeredAlarmNamesT &&value)
void SetTriggeredAlarmNames(TriggeredAlarmNamesT &&value)
AWS_ECS_API DaemonDeploymentAlarms & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_ECS_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_ECS_API DaemonDeploymentAlarms(Aws::Utils::Json::JsonView jsonValue)
DaemonDeploymentAlarms & AddAlarmNames(AlarmNamesT &&value)
DaemonDeploymentRollbackMonitorsStatus GetStatus() const
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue