AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetEvents(const Aws::Vector<AutoRollbackEvent>& value) { m_eventsHasBeenSet = true; m_events = value; }
61 inline void SetEvents(Aws::Vector<AutoRollbackEvent>&& value) { m_eventsHasBeenSet = true; m_events = std::move(value); }
63 inline AutoRollbackConfiguration& WithEvents(Aws::Vector<AutoRollbackEvent>&& value) { SetEvents(std::move(value)); return *this;}
64 inline AutoRollbackConfiguration& AddEvents(const AutoRollbackEvent& value) { m_eventsHasBeenSet = true; m_events.push_back(value); return *this; }
65 inline AutoRollbackConfiguration& AddEvents(AutoRollbackEvent&& value) { m_eventsHasBeenSet = true; m_events.push_back(std::move(value)); return *this; }
67 private:
68
69 bool m_enabled;
70 bool m_enabledHasBeenSet = false;
71
73 bool m_eventsHasBeenSet = false;
74 };
75
76} // namespace Model
77} // namespace CodeDeploy
78} // namespace Aws
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
Aws::Utils::Json::JsonValue JsonValue