AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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() = default;
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 template<typename EventsT = Aws::Vector<Event>>
51 void SetEvents(EventsT&& value) { m_eventsHasBeenSet = true; m_events = std::forward<EventsT>(value); }
52 template<typename EventsT = Aws::Vector<Event>>
53 OnInputLifecycle& WithEvents(EventsT&& value) { SetEvents(std::forward<EventsT>(value)); return *this;}
54 template<typename EventsT = Event>
55 OnInputLifecycle& AddEvents(EventsT&& value) { m_eventsHasBeenSet = true; m_events.emplace_back(std::forward<EventsT>(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 template<typename TransitionEventsT = Aws::Vector<TransitionEvent>>
66 void SetTransitionEvents(TransitionEventsT&& value) { m_transitionEventsHasBeenSet = true; m_transitionEvents = std::forward<TransitionEventsT>(value); }
67 template<typename TransitionEventsT = Aws::Vector<TransitionEvent>>
68 OnInputLifecycle& WithTransitionEvents(TransitionEventsT&& value) { SetTransitionEvents(std::forward<TransitionEventsT>(value)); return *this;}
69 template<typename TransitionEventsT = TransitionEvent>
70 OnInputLifecycle& AddTransitionEvents(TransitionEventsT&& value) { m_transitionEventsHasBeenSet = true; m_transitionEvents.emplace_back(std::forward<TransitionEventsT>(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
void SetTransitionEvents(TransitionEventsT &&value)
const Aws::Vector< Event > & GetEvents() const
OnInputLifecycle & WithTransitionEvents(TransitionEventsT &&value)
OnInputLifecycle & WithEvents(EventsT &&value)
AWS_IOTEVENTS_API OnInputLifecycle(Aws::Utils::Json::JsonView jsonValue)
AWS_IOTEVENTS_API OnInputLifecycle()=default
OnInputLifecycle & AddEvents(EventsT &&value)
AWS_IOTEVENTS_API Aws::Utils::Json::JsonValue Jsonize() const
OnInputLifecycle & AddTransitionEvents(TransitionEventsT &&value)
AWS_IOTEVENTS_API OnInputLifecycle & operator=(Aws::Utils::Json::JsonView jsonValue)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue