AWS SDK for C++

AWS SDK for C++ Version 1.11.751

Loading...
Searching...
No Matches
ServiceDeploymentAlarms.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/ServiceDeploymentRollbackMonitorsStatus.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
35 public:
36 AWS_ECS_API ServiceDeploymentAlarms() = default;
40
42
46 inline ServiceDeploymentRollbackMonitorsStatus GetStatus() const { return m_status; }
47 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
49 m_statusHasBeenSet = true;
50 m_status = value;
51 }
53 SetStatus(value);
54 return *this;
55 }
57
59
63 inline const Aws::Vector<Aws::String>& GetAlarmNames() const { return m_alarmNames; }
64 inline bool AlarmNamesHasBeenSet() const { return m_alarmNamesHasBeenSet; }
65 template <typename AlarmNamesT = Aws::Vector<Aws::String>>
66 void SetAlarmNames(AlarmNamesT&& value) {
67 m_alarmNamesHasBeenSet = true;
68 m_alarmNames = std::forward<AlarmNamesT>(value);
69 }
70 template <typename AlarmNamesT = Aws::Vector<Aws::String>>
72 SetAlarmNames(std::forward<AlarmNamesT>(value));
73 return *this;
74 }
75 template <typename AlarmNamesT = Aws::String>
76 ServiceDeploymentAlarms& AddAlarmNames(AlarmNamesT&& value) {
77 m_alarmNamesHasBeenSet = true;
78 m_alarmNames.emplace_back(std::forward<AlarmNamesT>(value));
79 return *this;
80 }
82
84
88 inline const Aws::Vector<Aws::String>& GetTriggeredAlarmNames() const { return m_triggeredAlarmNames; }
89 inline bool TriggeredAlarmNamesHasBeenSet() const { return m_triggeredAlarmNamesHasBeenSet; }
90 template <typename TriggeredAlarmNamesT = Aws::Vector<Aws::String>>
91 void SetTriggeredAlarmNames(TriggeredAlarmNamesT&& value) {
92 m_triggeredAlarmNamesHasBeenSet = true;
93 m_triggeredAlarmNames = std::forward<TriggeredAlarmNamesT>(value);
94 }
95 template <typename TriggeredAlarmNamesT = Aws::Vector<Aws::String>>
96 ServiceDeploymentAlarms& WithTriggeredAlarmNames(TriggeredAlarmNamesT&& value) {
97 SetTriggeredAlarmNames(std::forward<TriggeredAlarmNamesT>(value));
98 return *this;
99 }
100 template <typename TriggeredAlarmNamesT = Aws::String>
101 ServiceDeploymentAlarms& AddTriggeredAlarmNames(TriggeredAlarmNamesT&& value) {
102 m_triggeredAlarmNamesHasBeenSet = true;
103 m_triggeredAlarmNames.emplace_back(std::forward<TriggeredAlarmNamesT>(value));
104 return *this;
105 }
107 private:
109
110 Aws::Vector<Aws::String> m_alarmNames;
111
112 Aws::Vector<Aws::String> m_triggeredAlarmNames;
113 bool m_statusHasBeenSet = false;
114 bool m_alarmNamesHasBeenSet = false;
115 bool m_triggeredAlarmNamesHasBeenSet = false;
116};
117
118} // namespace Model
119} // namespace ECS
120} // namespace Aws
ServiceDeploymentAlarms & AddTriggeredAlarmNames(TriggeredAlarmNamesT &&value)
const Aws::Vector< Aws::String > & GetTriggeredAlarmNames() const
const Aws::Vector< Aws::String > & GetAlarmNames() const
void SetStatus(ServiceDeploymentRollbackMonitorsStatus value)
AWS_ECS_API ServiceDeploymentAlarms & operator=(Aws::Utils::Json::JsonView jsonValue)
ServiceDeploymentAlarms & WithStatus(ServiceDeploymentRollbackMonitorsStatus value)
ServiceDeploymentAlarms & AddAlarmNames(AlarmNamesT &&value)
ServiceDeploymentAlarms & WithTriggeredAlarmNames(TriggeredAlarmNamesT &&value)
AWS_ECS_API Aws::Utils::Json::JsonValue Jsonize() const
ServiceDeploymentAlarms & WithAlarmNames(AlarmNamesT &&value)
AWS_ECS_API ServiceDeploymentAlarms(Aws::Utils::Json::JsonView jsonValue)
ServiceDeploymentRollbackMonitorsStatus GetStatus() const
void SetTriggeredAlarmNames(TriggeredAlarmNamesT &&value)
AWS_ECS_API ServiceDeploymentAlarms()=default
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue