AWS SDK for C++
AWS SDK for C++
Loading...
Searching...
No Matches
AutoRollbackConfiguration.h
Go to the documentation of this file.
1
6#pragma once
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 CodeDeploy
23{
24namespace Model
25{
26
35 {
36 public:
41
42
47 inline bool GetEnabled() const{ return m_enabled; }
48
53 inline bool EnabledHasBeenSet() const { return m_enabledHasBeenSet; }
54
59 inline void SetEnabled(bool value) { m_enabledHasBeenSet = true; m_enabled = value; }
60
65 inline AutoRollbackConfiguration& WithEnabled(bool value) { SetEnabled(value); return *this;}
66
67
71 inline const Aws::Vector<AutoRollbackEvent>& GetEvents() const{ return m_events; }
72
76 inline bool EventsHasBeenSet() const { return m_eventsHasBeenSet; }
77
81 inline void SetEvents(const Aws::Vector<AutoRollbackEvent>& value) { m_eventsHasBeenSet = true; m_events = value; }
82
86 inline void SetEvents(Aws::Vector<AutoRollbackEvent>&& value) { m_eventsHasBeenSet = true; m_events = std::move(value); }
87
92
96 inline AutoRollbackConfiguration& WithEvents(Aws::Vector<AutoRollbackEvent>&& value) { SetEvents(std::move(value)); return *this;}
97
101 inline AutoRollbackConfiguration& AddEvents(const AutoRollbackEvent& value) { m_eventsHasBeenSet = true; m_events.push_back(value); return *this; }
102
106 inline AutoRollbackConfiguration& AddEvents(AutoRollbackEvent&& value) { m_eventsHasBeenSet = true; m_events.push_back(std::move(value)); return *this; }
107
108 private:
109
110 bool m_enabled;
111 bool m_enabledHasBeenSet = false;
112
114 bool m_eventsHasBeenSet = false;
115 };
116
117} // namespace Model
118} // namespace CodeDeploy
119} // namespace Aws
#define AWS_CODEDEPLOY_API
AutoRollbackConfiguration & AddEvents(const AutoRollbackEvent &value)
const Aws::Vector< AutoRollbackEvent > & GetEvents() const
AWS_CODEDEPLOY_API AutoRollbackConfiguration(Aws::Utils::Json::JsonView jsonValue)
AutoRollbackConfiguration & AddEvents(AutoRollbackEvent &&value)
AWS_CODEDEPLOY_API Aws::Utils::Json::JsonValue Jsonize() const
AutoRollbackConfiguration & WithEvents(Aws::Vector< AutoRollbackEvent > &&value)
void SetEvents(Aws::Vector< AutoRollbackEvent > &&value)
AWS_CODEDEPLOY_API AutoRollbackConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
AutoRollbackConfiguration & WithEvents(const Aws::Vector< AutoRollbackEvent > &value)
AutoRollbackConfiguration & WithEnabled(bool value)
void SetEvents(const Aws::Vector< AutoRollbackEvent > &value)
std::vector< T, Aws::Allocator< T > > Vector