AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
ServiceDeploymentAlarms.h
1
6#pragma once
7#include <aws/ecs/ECS_EXPORTS.h>
8#include <aws/ecs/model/ServiceDeploymentRollbackMonitorsStatus.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace ECS
24{
25namespace Model
26{
27
39 {
40 public:
41 AWS_ECS_API ServiceDeploymentAlarms() = default;
45
46
48
52 inline ServiceDeploymentRollbackMonitorsStatus GetStatus() const { return m_status; }
53 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
54 inline void SetStatus(ServiceDeploymentRollbackMonitorsStatus value) { m_statusHasBeenSet = true; m_status = value; }
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) { m_alarmNamesHasBeenSet = true; m_alarmNames = std::forward<AlarmNamesT>(value); }
67 template<typename AlarmNamesT = Aws::Vector<Aws::String>>
68 ServiceDeploymentAlarms& WithAlarmNames(AlarmNamesT&& value) { SetAlarmNames(std::forward<AlarmNamesT>(value)); return *this;}
69 template<typename AlarmNamesT = Aws::String>
70 ServiceDeploymentAlarms& AddAlarmNames(AlarmNamesT&& value) { m_alarmNamesHasBeenSet = true; m_alarmNames.emplace_back(std::forward<AlarmNamesT>(value)); return *this; }
72
74
78 inline const Aws::Vector<Aws::String>& GetTriggeredAlarmNames() const { return m_triggeredAlarmNames; }
79 inline bool TriggeredAlarmNamesHasBeenSet() const { return m_triggeredAlarmNamesHasBeenSet; }
80 template<typename TriggeredAlarmNamesT = Aws::Vector<Aws::String>>
81 void SetTriggeredAlarmNames(TriggeredAlarmNamesT&& value) { m_triggeredAlarmNamesHasBeenSet = true; m_triggeredAlarmNames = std::forward<TriggeredAlarmNamesT>(value); }
82 template<typename TriggeredAlarmNamesT = Aws::Vector<Aws::String>>
83 ServiceDeploymentAlarms& WithTriggeredAlarmNames(TriggeredAlarmNamesT&& value) { SetTriggeredAlarmNames(std::forward<TriggeredAlarmNamesT>(value)); return *this;}
84 template<typename TriggeredAlarmNamesT = Aws::String>
85 ServiceDeploymentAlarms& AddTriggeredAlarmNames(TriggeredAlarmNamesT&& value) { m_triggeredAlarmNamesHasBeenSet = true; m_triggeredAlarmNames.emplace_back(std::forward<TriggeredAlarmNamesT>(value)); return *this; }
87 private:
88
90 bool m_statusHasBeenSet = false;
91
92 Aws::Vector<Aws::String> m_alarmNames;
93 bool m_alarmNamesHasBeenSet = false;
94
95 Aws::Vector<Aws::String> m_triggeredAlarmNames;
96 bool m_triggeredAlarmNamesHasBeenSet = false;
97 };
98
99} // namespace Model
100} // namespace ECS
101} // 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