AWS SDK for C++

AWS SDK for C++ Version 1.11.745

Loading...
Searching...
No Matches
DeploymentAlarms.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
39 public:
40 AWS_ECS_API DeploymentAlarms() = default;
44
46
49 inline const Aws::Vector<Aws::String>& GetAlarmNames() const { return m_alarmNames; }
50 inline bool AlarmNamesHasBeenSet() const { return m_alarmNamesHasBeenSet; }
51 template <typename AlarmNamesT = Aws::Vector<Aws::String>>
52 void SetAlarmNames(AlarmNamesT&& value) {
53 m_alarmNamesHasBeenSet = true;
54 m_alarmNames = std::forward<AlarmNamesT>(value);
55 }
56 template <typename AlarmNamesT = Aws::Vector<Aws::String>>
57 DeploymentAlarms& WithAlarmNames(AlarmNamesT&& value) {
58 SetAlarmNames(std::forward<AlarmNamesT>(value));
59 return *this;
60 }
61 template <typename AlarmNamesT = Aws::String>
62 DeploymentAlarms& AddAlarmNames(AlarmNamesT&& value) {
63 m_alarmNamesHasBeenSet = true;
64 m_alarmNames.emplace_back(std::forward<AlarmNamesT>(value));
65 return *this;
66 }
68
70
76 inline bool GetRollback() const { return m_rollback; }
77 inline bool RollbackHasBeenSet() const { return m_rollbackHasBeenSet; }
78 inline void SetRollback(bool value) {
79 m_rollbackHasBeenSet = true;
80 m_rollback = value;
81 }
82 inline DeploymentAlarms& WithRollback(bool value) {
83 SetRollback(value);
84 return *this;
85 }
87
89
93 inline bool GetEnable() const { return m_enable; }
94 inline bool EnableHasBeenSet() const { return m_enableHasBeenSet; }
95 inline void SetEnable(bool value) {
96 m_enableHasBeenSet = true;
97 m_enable = value;
98 }
99 inline DeploymentAlarms& WithEnable(bool value) {
100 SetEnable(value);
101 return *this;
102 }
104 private:
105 Aws::Vector<Aws::String> m_alarmNames;
106
107 bool m_rollback{false};
108
109 bool m_enable{false};
110 bool m_alarmNamesHasBeenSet = false;
111 bool m_rollbackHasBeenSet = false;
112 bool m_enableHasBeenSet = false;
113};
114
115} // namespace Model
116} // namespace ECS
117} // namespace Aws
AWS_ECS_API DeploymentAlarms(Aws::Utils::Json::JsonView jsonValue)
void SetAlarmNames(AlarmNamesT &&value)
DeploymentAlarms & WithEnable(bool value)
DeploymentAlarms & AddAlarmNames(AlarmNamesT &&value)
DeploymentAlarms & WithAlarmNames(AlarmNamesT &&value)
const Aws::Vector< Aws::String > & GetAlarmNames() const
AWS_ECS_API DeploymentAlarms()=default
AWS_ECS_API DeploymentAlarms & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_ECS_API Aws::Utils::Json::JsonValue Jsonize() const
DeploymentAlarms & WithRollback(bool value)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue