AWS SDK for C++

AWS SDK for C++ Version 1.11.746

Loading...
Searching...
No Matches
EventSubscription.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/inspector/Inspector_EXPORTS.h>
9#include <aws/inspector/model/InspectorEvent.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace Inspector {
21namespace Model {
22
30 public:
31 AWS_INSPECTOR_API EventSubscription() = default;
32 AWS_INSPECTOR_API EventSubscription(Aws::Utils::Json::JsonView jsonValue);
34 AWS_INSPECTOR_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
41 inline InspectorEvent GetEvent() const { return m_event; }
42 inline bool EventHasBeenSet() const { return m_eventHasBeenSet; }
43 inline void SetEvent(InspectorEvent value) {
44 m_eventHasBeenSet = true;
45 m_event = value;
46 }
48 SetEvent(value);
49 return *this;
50 }
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) {
61 m_subscribedAtHasBeenSet = true;
62 m_subscribedAt = std::forward<SubscribedAtT>(value);
63 }
64 template <typename SubscribedAtT = Aws::Utils::DateTime>
65 EventSubscription& WithSubscribedAt(SubscribedAtT&& value) {
66 SetSubscribedAt(std::forward<SubscribedAtT>(value));
67 return *this;
68 }
70 private:
72
73 Aws::Utils::DateTime m_subscribedAt{};
74 bool m_eventHasBeenSet = false;
75 bool m_subscribedAtHasBeenSet = false;
76};
77
78} // namespace Model
79} // namespace Inspector
80} // 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