AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
OnInputLifecycle.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSVector.h>
8#include <aws/iotevents/IoTEvents_EXPORTS.h>
9#include <aws/iotevents/model/Event.h>
10#include <aws/iotevents/model/TransitionEvent.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace IoTEvents {
22namespace Model {
23
31 public:
32 AWS_IOTEVENTS_API OnInputLifecycle() = default;
33 AWS_IOTEVENTS_API OnInputLifecycle(Aws::Utils::Json::JsonView jsonValue);
35 AWS_IOTEVENTS_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
42 inline const Aws::Vector<Event>& GetEvents() const { return m_events; }
43 inline bool EventsHasBeenSet() const { return m_eventsHasBeenSet; }
44 template <typename EventsT = Aws::Vector<Event>>
45 void SetEvents(EventsT&& value) {
46 m_eventsHasBeenSet = true;
47 m_events = std::forward<EventsT>(value);
48 }
49 template <typename EventsT = Aws::Vector<Event>>
50 OnInputLifecycle& WithEvents(EventsT&& value) {
51 SetEvents(std::forward<EventsT>(value));
52 return *this;
53 }
54 template <typename EventsT = Event>
55 OnInputLifecycle& AddEvents(EventsT&& value) {
56 m_eventsHasBeenSet = true;
57 m_events.emplace_back(std::forward<EventsT>(value));
58 return *this;
59 }
61
63
67 inline const Aws::Vector<TransitionEvent>& GetTransitionEvents() const { return m_transitionEvents; }
68 inline bool TransitionEventsHasBeenSet() const { return m_transitionEventsHasBeenSet; }
69 template <typename TransitionEventsT = Aws::Vector<TransitionEvent>>
70 void SetTransitionEvents(TransitionEventsT&& value) {
71 m_transitionEventsHasBeenSet = true;
72 m_transitionEvents = std::forward<TransitionEventsT>(value);
73 }
74 template <typename TransitionEventsT = Aws::Vector<TransitionEvent>>
75 OnInputLifecycle& WithTransitionEvents(TransitionEventsT&& value) {
76 SetTransitionEvents(std::forward<TransitionEventsT>(value));
77 return *this;
78 }
79 template <typename TransitionEventsT = TransitionEvent>
80 OnInputLifecycle& AddTransitionEvents(TransitionEventsT&& value) {
81 m_transitionEventsHasBeenSet = true;
82 m_transitionEvents.emplace_back(std::forward<TransitionEventsT>(value));
83 return *this;
84 }
86 private:
87 Aws::Vector<Event> m_events;
88
89 Aws::Vector<TransitionEvent> m_transitionEvents;
90 bool m_eventsHasBeenSet = false;
91 bool m_transitionEventsHasBeenSet = false;
92};
93
94} // namespace Model
95} // namespace IoTEvents
96} // 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