AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
OnExitLifecycle.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
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace IoTEvents {
21namespace Model {
22
30 public:
31 AWS_IOTEVENTS_API OnExitLifecycle() = default;
32 AWS_IOTEVENTS_API OnExitLifecycle(Aws::Utils::Json::JsonView jsonValue);
34 AWS_IOTEVENTS_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
41 inline const Aws::Vector<Event>& GetEvents() const { return m_events; }
42 inline bool EventsHasBeenSet() const { return m_eventsHasBeenSet; }
43 template <typename EventsT = Aws::Vector<Event>>
44 void SetEvents(EventsT&& value) {
45 m_eventsHasBeenSet = true;
46 m_events = std::forward<EventsT>(value);
47 }
48 template <typename EventsT = Aws::Vector<Event>>
49 OnExitLifecycle& WithEvents(EventsT&& value) {
50 SetEvents(std::forward<EventsT>(value));
51 return *this;
52 }
53 template <typename EventsT = Event>
54 OnExitLifecycle& AddEvents(EventsT&& value) {
55 m_eventsHasBeenSet = true;
56 m_events.emplace_back(std::forward<EventsT>(value));
57 return *this;
58 }
60 private:
61 Aws::Vector<Event> m_events;
62 bool m_eventsHasBeenSet = false;
63};
64
65} // namespace Model
66} // namespace IoTEvents
67} // namespace Aws
AWS_IOTEVENTS_API OnExitLifecycle & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_IOTEVENTS_API OnExitLifecycle(Aws::Utils::Json::JsonView jsonValue)
OnExitLifecycle & AddEvents(EventsT &&value)
AWS_IOTEVENTS_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_IOTEVENTS_API OnExitLifecycle()=default
OnExitLifecycle & WithEvents(EventsT &&value)
const Aws::Vector< Event > & GetEvents() const
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue