AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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:
45
46
48
52 inline const ServiceDeploymentRollbackMonitorsStatus& GetStatus() const{ return m_status; }
53 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
54 inline void SetStatus(const ServiceDeploymentRollbackMonitorsStatus& value) { m_statusHasBeenSet = true; m_status = value; }
55 inline void SetStatus(ServiceDeploymentRollbackMonitorsStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
57 inline ServiceDeploymentAlarms& WithStatus(ServiceDeploymentRollbackMonitorsStatus&& value) { SetStatus(std::move(value)); return *this;}
59
61
65 inline const Aws::Vector<Aws::String>& GetAlarmNames() const{ return m_alarmNames; }
66 inline bool AlarmNamesHasBeenSet() const { return m_alarmNamesHasBeenSet; }
67 inline void SetAlarmNames(const Aws::Vector<Aws::String>& value) { m_alarmNamesHasBeenSet = true; m_alarmNames = value; }
68 inline void SetAlarmNames(Aws::Vector<Aws::String>&& value) { m_alarmNamesHasBeenSet = true; m_alarmNames = std::move(value); }
70 inline ServiceDeploymentAlarms& WithAlarmNames(Aws::Vector<Aws::String>&& value) { SetAlarmNames(std::move(value)); return *this;}
71 inline ServiceDeploymentAlarms& AddAlarmNames(const Aws::String& value) { m_alarmNamesHasBeenSet = true; m_alarmNames.push_back(value); return *this; }
72 inline ServiceDeploymentAlarms& AddAlarmNames(Aws::String&& value) { m_alarmNamesHasBeenSet = true; m_alarmNames.push_back(std::move(value)); return *this; }
73 inline ServiceDeploymentAlarms& AddAlarmNames(const char* value) { m_alarmNamesHasBeenSet = true; m_alarmNames.push_back(value); return *this; }
75
77
81 inline const Aws::Vector<Aws::String>& GetTriggeredAlarmNames() const{ return m_triggeredAlarmNames; }
82 inline bool TriggeredAlarmNamesHasBeenSet() const { return m_triggeredAlarmNamesHasBeenSet; }
83 inline void SetTriggeredAlarmNames(const Aws::Vector<Aws::String>& value) { m_triggeredAlarmNamesHasBeenSet = true; m_triggeredAlarmNames = value; }
84 inline void SetTriggeredAlarmNames(Aws::Vector<Aws::String>&& value) { m_triggeredAlarmNamesHasBeenSet = true; m_triggeredAlarmNames = std::move(value); }
87 inline ServiceDeploymentAlarms& AddTriggeredAlarmNames(const Aws::String& value) { m_triggeredAlarmNamesHasBeenSet = true; m_triggeredAlarmNames.push_back(value); return *this; }
88 inline ServiceDeploymentAlarms& AddTriggeredAlarmNames(Aws::String&& value) { m_triggeredAlarmNamesHasBeenSet = true; m_triggeredAlarmNames.push_back(std::move(value)); return *this; }
89 inline ServiceDeploymentAlarms& AddTriggeredAlarmNames(const char* value) { m_triggeredAlarmNamesHasBeenSet = true; m_triggeredAlarmNames.push_back(value); return *this; }
91 private:
92
94 bool m_statusHasBeenSet = false;
95
96 Aws::Vector<Aws::String> m_alarmNames;
97 bool m_alarmNamesHasBeenSet = false;
98
99 Aws::Vector<Aws::String> m_triggeredAlarmNames;
100 bool m_triggeredAlarmNamesHasBeenSet = false;
101 };
102
103} // namespace Model
104} // namespace ECS
105} // namespace Aws
ServiceDeploymentAlarms & AddAlarmNames(Aws::String &&value)
ServiceDeploymentAlarms & WithAlarmNames(Aws::Vector< Aws::String > &&value)
const Aws::Vector< Aws::String > & GetTriggeredAlarmNames() const
const Aws::Vector< Aws::String > & GetAlarmNames() const
ServiceDeploymentAlarms & AddTriggeredAlarmNames(const Aws::String &value)
ServiceDeploymentAlarms & AddAlarmNames(const char *value)
void SetStatus(ServiceDeploymentRollbackMonitorsStatus &&value)
AWS_ECS_API ServiceDeploymentAlarms & operator=(Aws::Utils::Json::JsonView jsonValue)
ServiceDeploymentAlarms & AddTriggeredAlarmNames(Aws::String &&value)
void SetStatus(const ServiceDeploymentRollbackMonitorsStatus &value)
void SetAlarmNames(Aws::Vector< Aws::String > &&value)
const ServiceDeploymentRollbackMonitorsStatus & GetStatus() const
ServiceDeploymentAlarms & WithStatus(const ServiceDeploymentRollbackMonitorsStatus &value)
void SetAlarmNames(const Aws::Vector< Aws::String > &value)
ServiceDeploymentAlarms & WithStatus(ServiceDeploymentRollbackMonitorsStatus &&value)
AWS_ECS_API Aws::Utils::Json::JsonValue Jsonize() const
void SetTriggeredAlarmNames(Aws::Vector< Aws::String > &&value)
ServiceDeploymentAlarms & AddAlarmNames(const Aws::String &value)
AWS_ECS_API ServiceDeploymentAlarms(Aws::Utils::Json::JsonView jsonValue)
ServiceDeploymentAlarms & AddTriggeredAlarmNames(const char *value)
ServiceDeploymentAlarms & WithAlarmNames(const Aws::Vector< Aws::String > &value)
void SetTriggeredAlarmNames(const Aws::Vector< Aws::String > &value)
ServiceDeploymentAlarms & WithTriggeredAlarmNames(Aws::Vector< Aws::String > &&value)
ServiceDeploymentAlarms & WithTriggeredAlarmNames(const Aws::Vector< Aws::String > &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