AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
OnInputLifecycle.h
1
6#pragma once
7#include <aws/iotevents/IoTEvents_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/iotevents/model/Event.h>
10#include <aws/iotevents/model/TransitionEvent.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 IoTEvents
24{
25namespace Model
26{
27
35 {
36 public:
37 AWS_IOTEVENTS_API OnInputLifecycle();
38 AWS_IOTEVENTS_API OnInputLifecycle(Aws::Utils::Json::JsonView jsonValue);
40 AWS_IOTEVENTS_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
48 inline const Aws::Vector<Event>& GetEvents() const{ return m_events; }
49 inline bool EventsHasBeenSet() const { return m_eventsHasBeenSet; }
50 inline void SetEvents(const Aws::Vector<Event>& value) { m_eventsHasBeenSet = true; m_events = value; }
51 inline void SetEvents(Aws::Vector<Event>&& value) { m_eventsHasBeenSet = true; m_events = std::move(value); }
52 inline OnInputLifecycle& WithEvents(const Aws::Vector<Event>& value) { SetEvents(value); return *this;}
53 inline OnInputLifecycle& WithEvents(Aws::Vector<Event>&& value) { SetEvents(std::move(value)); return *this;}
54 inline OnInputLifecycle& AddEvents(const Event& value) { m_eventsHasBeenSet = true; m_events.push_back(value); return *this; }
55 inline OnInputLifecycle& AddEvents(Event&& value) { m_eventsHasBeenSet = true; m_events.push_back(std::move(value)); return *this; }
57
59
63 inline const Aws::Vector<TransitionEvent>& GetTransitionEvents() const{ return m_transitionEvents; }
64 inline bool TransitionEventsHasBeenSet() const { return m_transitionEventsHasBeenSet; }
65 inline void SetTransitionEvents(const Aws::Vector<TransitionEvent>& value) { m_transitionEventsHasBeenSet = true; m_transitionEvents = value; }
66 inline void SetTransitionEvents(Aws::Vector<TransitionEvent>&& value) { m_transitionEventsHasBeenSet = true; m_transitionEvents = std::move(value); }
69 inline OnInputLifecycle& AddTransitionEvents(const TransitionEvent& value) { m_transitionEventsHasBeenSet = true; m_transitionEvents.push_back(value); return *this; }
70 inline OnInputLifecycle& AddTransitionEvents(TransitionEvent&& value) { m_transitionEventsHasBeenSet = true; m_transitionEvents.push_back(std::move(value)); return *this; }
72 private:
73
74 Aws::Vector<Event> m_events;
75 bool m_eventsHasBeenSet = false;
76
77 Aws::Vector<TransitionEvent> m_transitionEvents;
78 bool m_transitionEventsHasBeenSet = false;
79 };
80
81} // namespace Model
82} // namespace IoTEvents
83} // namespace Aws
const Aws::Vector< TransitionEvent > & GetTransitionEvents() const
OnInputLifecycle & WithTransitionEvents(Aws::Vector< TransitionEvent > &&value)
void SetEvents(const Aws::Vector< Event > &value)
void SetTransitionEvents(const Aws::Vector< TransitionEvent > &value)
const Aws::Vector< Event > & GetEvents() const
OnInputLifecycle & WithEvents(const Aws::Vector< Event > &value)
void SetEvents(Aws::Vector< Event > &&value)
void SetTransitionEvents(Aws::Vector< TransitionEvent > &&value)
OnInputLifecycle & AddEvents(Event &&value)
OnInputLifecycle & AddEvents(const Event &value)
AWS_IOTEVENTS_API OnInputLifecycle(Aws::Utils::Json::JsonView jsonValue)
AWS_IOTEVENTS_API Aws::Utils::Json::JsonValue Jsonize() const
OnInputLifecycle & AddTransitionEvents(TransitionEvent &&value)
OnInputLifecycle & WithEvents(Aws::Vector< Event > &&value)
OnInputLifecycle & WithTransitionEvents(const Aws::Vector< TransitionEvent > &value)
AWS_IOTEVENTS_API OnInputLifecycle & operator=(Aws::Utils::Json::JsonView jsonValue)
OnInputLifecycle & AddTransitionEvents(const TransitionEvent &value)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue