AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
DeploymentAlarms.h
1
6#pragma once
7#include <aws/ecs/ECS_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace ECS
23{
24namespace Model
25{
26
43 {
44 public:
45 AWS_ECS_API DeploymentAlarms();
49
50
52
55 inline const Aws::Vector<Aws::String>& GetAlarmNames() const{ return m_alarmNames; }
56 inline bool AlarmNamesHasBeenSet() const { return m_alarmNamesHasBeenSet; }
57 inline void SetAlarmNames(const Aws::Vector<Aws::String>& value) { m_alarmNamesHasBeenSet = true; m_alarmNames = value; }
58 inline void SetAlarmNames(Aws::Vector<Aws::String>&& value) { m_alarmNamesHasBeenSet = true; m_alarmNames = std::move(value); }
59 inline DeploymentAlarms& WithAlarmNames(const Aws::Vector<Aws::String>& value) { SetAlarmNames(value); return *this;}
60 inline DeploymentAlarms& WithAlarmNames(Aws::Vector<Aws::String>&& value) { SetAlarmNames(std::move(value)); return *this;}
61 inline DeploymentAlarms& AddAlarmNames(const Aws::String& value) { m_alarmNamesHasBeenSet = true; m_alarmNames.push_back(value); return *this; }
62 inline DeploymentAlarms& AddAlarmNames(Aws::String&& value) { m_alarmNamesHasBeenSet = true; m_alarmNames.push_back(std::move(value)); return *this; }
63 inline DeploymentAlarms& AddAlarmNames(const char* value) { m_alarmNamesHasBeenSet = true; m_alarmNames.push_back(value); return *this; }
65
67
73 inline bool GetRollback() const{ return m_rollback; }
74 inline bool RollbackHasBeenSet() const { return m_rollbackHasBeenSet; }
75 inline void SetRollback(bool value) { m_rollbackHasBeenSet = true; m_rollback = value; }
76 inline DeploymentAlarms& WithRollback(bool value) { SetRollback(value); return *this;}
78
80
84 inline bool GetEnable() const{ return m_enable; }
85 inline bool EnableHasBeenSet() const { return m_enableHasBeenSet; }
86 inline void SetEnable(bool value) { m_enableHasBeenSet = true; m_enable = value; }
87 inline DeploymentAlarms& WithEnable(bool value) { SetEnable(value); return *this;}
89 private:
90
91 Aws::Vector<Aws::String> m_alarmNames;
92 bool m_alarmNamesHasBeenSet = false;
93
94 bool m_rollback;
95 bool m_rollbackHasBeenSet = false;
96
97 bool m_enable;
98 bool m_enableHasBeenSet = false;
99 };
100
101} // namespace Model
102} // namespace ECS
103} // namespace Aws
void SetAlarmNames(const Aws::Vector< Aws::String > &value)
AWS_ECS_API DeploymentAlarms(Aws::Utils::Json::JsonView jsonValue)
DeploymentAlarms & AddAlarmNames(Aws::String &&value)
DeploymentAlarms & WithAlarmNames(Aws::Vector< Aws::String > &&value)
DeploymentAlarms & AddAlarmNames(const char *value)
DeploymentAlarms & WithEnable(bool value)
DeploymentAlarms & AddAlarmNames(const Aws::String &value)
DeploymentAlarms & WithAlarmNames(const Aws::Vector< Aws::String > &value)
void SetAlarmNames(Aws::Vector< Aws::String > &&value)
const Aws::Vector< Aws::String > & GetAlarmNames() const
AWS_ECS_API DeploymentAlarms & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_ECS_API Aws::Utils::Json::JsonValue Jsonize() const
DeploymentAlarms & WithRollback(bool value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue