AWS SDK for C++

AWS SDK for C++ Version 1.11.605

Loading...
Searching...
No Matches
AutoRollbackConfiguration.h
1
6#pragma once
7#include <aws/codedeploy/CodeDeploy_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/codedeploy/model/AutoRollbackEvent.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 CodeDeploy
23{
24namespace Model
25{
26
35 {
36 public:
37 AWS_CODEDEPLOY_API AutoRollbackConfiguration() = default;
40 AWS_CODEDEPLOY_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
48 inline bool GetEnabled() const { return m_enabled; }
49 inline bool EnabledHasBeenSet() const { return m_enabledHasBeenSet; }
50 inline void SetEnabled(bool value) { m_enabledHasBeenSet = true; m_enabled = value; }
51 inline AutoRollbackConfiguration& WithEnabled(bool value) { SetEnabled(value); return *this;}
53
55
58 inline const Aws::Vector<AutoRollbackEvent>& GetEvents() const { return m_events; }
59 inline bool EventsHasBeenSet() const { return m_eventsHasBeenSet; }
60 template<typename EventsT = Aws::Vector<AutoRollbackEvent>>
61 void SetEvents(EventsT&& value) { m_eventsHasBeenSet = true; m_events = std::forward<EventsT>(value); }
62 template<typename EventsT = Aws::Vector<AutoRollbackEvent>>
63 AutoRollbackConfiguration& WithEvents(EventsT&& value) { SetEvents(std::forward<EventsT>(value)); return *this;}
64 inline AutoRollbackConfiguration& AddEvents(AutoRollbackEvent value) { m_eventsHasBeenSet = true; m_events.push_back(value); return *this; }
66 private:
67
68 bool m_enabled{false};
69 bool m_enabledHasBeenSet = false;
70
72 bool m_eventsHasBeenSet = false;
73 };
74
75} // namespace Model
76} // namespace CodeDeploy
77} // namespace Aws
const Aws::Vector< AutoRollbackEvent > & GetEvents() const
AWS_CODEDEPLOY_API AutoRollbackConfiguration()=default
AWS_CODEDEPLOY_API AutoRollbackConfiguration(Aws::Utils::Json::JsonView jsonValue)
AWS_CODEDEPLOY_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_CODEDEPLOY_API AutoRollbackConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
AutoRollbackConfiguration & AddEvents(AutoRollbackEvent value)
AutoRollbackConfiguration & WithEvents(EventsT &&value)
AutoRollbackConfiguration & WithEnabled(bool value)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue