AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
EventSubscription.h
1
6#pragma once
7#include <aws/inspector/Inspector_EXPORTS.h>
8#include <aws/inspector/model/InspectorEvent.h>
9#include <aws/core/utils/DateTime.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 Inspector
23{
24namespace Model
25{
26
34 {
35 public:
36 AWS_INSPECTOR_API EventSubscription() = default;
37 AWS_INSPECTOR_API EventSubscription(Aws::Utils::Json::JsonView jsonValue);
39 AWS_INSPECTOR_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
47 inline InspectorEvent GetEvent() const { return m_event; }
48 inline bool EventHasBeenSet() const { return m_eventHasBeenSet; }
49 inline void SetEvent(InspectorEvent value) { m_eventHasBeenSet = true; m_event = value; }
50 inline EventSubscription& WithEvent(InspectorEvent value) { SetEvent(value); return *this;}
52
54
57 inline const Aws::Utils::DateTime& GetSubscribedAt() const { return m_subscribedAt; }
58 inline bool SubscribedAtHasBeenSet() const { return m_subscribedAtHasBeenSet; }
59 template<typename SubscribedAtT = Aws::Utils::DateTime>
60 void SetSubscribedAt(SubscribedAtT&& value) { m_subscribedAtHasBeenSet = true; m_subscribedAt = std::forward<SubscribedAtT>(value); }
61 template<typename SubscribedAtT = Aws::Utils::DateTime>
62 EventSubscription& WithSubscribedAt(SubscribedAtT&& value) { SetSubscribedAt(std::forward<SubscribedAtT>(value)); return *this;}
64 private:
65
67 bool m_eventHasBeenSet = false;
68
69 Aws::Utils::DateTime m_subscribedAt{};
70 bool m_subscribedAtHasBeenSet = false;
71 };
72
73} // namespace Model
74} // namespace Inspector
75} // namespace Aws
AWS_INSPECTOR_API EventSubscription(Aws::Utils::Json::JsonView jsonValue)
void SetSubscribedAt(SubscribedAtT &&value)
AWS_INSPECTOR_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_INSPECTOR_API EventSubscription()=default
const Aws::Utils::DateTime & GetSubscribedAt() const
EventSubscription & WithSubscribedAt(SubscribedAtT &&value)
EventSubscription & WithEvent(InspectorEvent value)
AWS_INSPECTOR_API EventSubscription & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::Utils::Json::JsonValue JsonValue