AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
AutoRollbackConfiguration.h
1
6#pragma once
7#include <aws/codedeploy/CodeDeploy_EXPORTS.h>
8#include <aws/codedeploy/model/AutoRollbackEvent.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace CodeDeploy {
21namespace Model {
22
31 public:
32 AWS_CODEDEPLOY_API AutoRollbackConfiguration() = default;
35 AWS_CODEDEPLOY_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
42 inline bool GetEnabled() const { return m_enabled; }
43 inline bool EnabledHasBeenSet() const { return m_enabledHasBeenSet; }
44 inline void SetEnabled(bool value) {
45 m_enabledHasBeenSet = true;
46 m_enabled = value;
47 }
49 SetEnabled(value);
50 return *this;
51 }
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) {
62 m_eventsHasBeenSet = true;
63 m_events = std::forward<EventsT>(value);
64 }
65 template <typename EventsT = Aws::Vector<AutoRollbackEvent>>
67 SetEvents(std::forward<EventsT>(value));
68 return *this;
69 }
71 m_eventsHasBeenSet = true;
72 m_events.push_back(value);
73 return *this;
74 }
76 private:
77 bool m_enabled{false};
78
80 bool m_enabledHasBeenSet = false;
81 bool m_eventsHasBeenSet = false;
82};
83
84} // namespace Model
85} // namespace CodeDeploy
86} // 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