AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 const InspectorEvent& GetEvent() const{ return m_event; }
48 inline bool EventHasBeenSet() const { return m_eventHasBeenSet; }
49 inline void SetEvent(const InspectorEvent& value) { m_eventHasBeenSet = true; m_event = value; }
50 inline void SetEvent(InspectorEvent&& value) { m_eventHasBeenSet = true; m_event = std::move(value); }
51 inline EventSubscription& WithEvent(const InspectorEvent& value) { SetEvent(value); return *this;}
52 inline EventSubscription& WithEvent(InspectorEvent&& value) { SetEvent(std::move(value)); return *this;}
54
56
59 inline const Aws::Utils::DateTime& GetSubscribedAt() const{ return m_subscribedAt; }
60 inline bool SubscribedAtHasBeenSet() const { return m_subscribedAtHasBeenSet; }
61 inline void SetSubscribedAt(const Aws::Utils::DateTime& value) { m_subscribedAtHasBeenSet = true; m_subscribedAt = value; }
62 inline void SetSubscribedAt(Aws::Utils::DateTime&& value) { m_subscribedAtHasBeenSet = true; m_subscribedAt = std::move(value); }
63 inline EventSubscription& WithSubscribedAt(const Aws::Utils::DateTime& value) { SetSubscribedAt(value); return *this;}
64 inline EventSubscription& WithSubscribedAt(Aws::Utils::DateTime&& value) { SetSubscribedAt(std::move(value)); return *this;}
66 private:
67
68 InspectorEvent m_event;
69 bool m_eventHasBeenSet = false;
70
71 Aws::Utils::DateTime m_subscribedAt;
72 bool m_subscribedAtHasBeenSet = false;
73 };
74
75} // namespace Model
76} // namespace Inspector
77} // namespace Aws
EventSubscription & WithSubscribedAt(const Aws::Utils::DateTime &value)
EventSubscription & WithSubscribedAt(Aws::Utils::DateTime &&value)
void SetSubscribedAt(const Aws::Utils::DateTime &value)
void SetSubscribedAt(Aws::Utils::DateTime &&value)
AWS_INSPECTOR_API EventSubscription(Aws::Utils::Json::JsonView jsonValue)
void SetEvent(InspectorEvent &&value)
EventSubscription & WithEvent(InspectorEvent &&value)
AWS_INSPECTOR_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::Utils::DateTime & GetSubscribedAt() const
void SetEvent(const InspectorEvent &value)
EventSubscription & WithEvent(const InspectorEvent &value)
const InspectorEvent & GetEvent() const
AWS_INSPECTOR_API EventSubscription & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::Utils::Json::JsonValue JsonValue