AWS SDK for C++

AWS SDK for C++ Version 1.11.935

Loading...
Searching...
No Matches
InsightsEvent.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/sesv2/SESV2_EXPORTS.h>
9#include <aws/sesv2/model/EventDetails.h>
10#include <aws/sesv2/model/EventType.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace SESV2 {
22namespace Model {
23
31 public:
32 AWS_SESV2_API InsightsEvent() = default;
33 AWS_SESV2_API InsightsEvent(Aws::Utils::Json::JsonView jsonValue);
35 AWS_SESV2_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
41 inline const Aws::Utils::DateTime& GetTimestamp() const { return m_timestamp; }
42 inline bool TimestampHasBeenSet() const { return m_timestampHasBeenSet; }
43 template <typename TimestampT = Aws::Utils::DateTime>
44 void SetTimestamp(TimestampT&& value) {
45 m_timestampHasBeenSet = true;
46 m_timestamp = std::forward<TimestampT>(value);
47 }
48 template <typename TimestampT = Aws::Utils::DateTime>
49 InsightsEvent& WithTimestamp(TimestampT&& value) {
50 SetTimestamp(std::forward<TimestampT>(value));
51 return *this;
52 }
54
56
77 inline EventType GetType() const { return m_type; }
78 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
79 inline void SetType(EventType value) {
80 m_typeHasBeenSet = true;
81 m_type = value;
82 }
84 SetType(value);
85 return *this;
86 }
88
90
93 inline const EventDetails& GetDetails() const { return m_details; }
94 inline bool DetailsHasBeenSet() const { return m_detailsHasBeenSet; }
95 template <typename DetailsT = EventDetails>
96 void SetDetails(DetailsT&& value) {
97 m_detailsHasBeenSet = true;
98 m_details = std::forward<DetailsT>(value);
99 }
100 template <typename DetailsT = EventDetails>
101 InsightsEvent& WithDetails(DetailsT&& value) {
102 SetDetails(std::forward<DetailsT>(value));
103 return *this;
104 }
106 private:
107 Aws::Utils::DateTime m_timestamp{};
108
110
111 EventDetails m_details;
112 bool m_timestampHasBeenSet = false;
113 bool m_typeHasBeenSet = false;
114 bool m_detailsHasBeenSet = false;
115};
116
117} // namespace Model
118} // namespace SESV2
119} // namespace Aws
AWS_SESV2_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::Utils::DateTime & GetTimestamp() const
InsightsEvent & WithDetails(DetailsT &&value)
InsightsEvent & WithType(EventType value)
AWS_SESV2_API InsightsEvent & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_SESV2_API InsightsEvent()=default
InsightsEvent & WithTimestamp(TimestampT &&value)
AWS_SESV2_API InsightsEvent(Aws::Utils::Json::JsonView jsonValue)
void SetTimestamp(TimestampT &&value)
void SetDetails(DetailsT &&value)
const EventDetails & GetDetails() const
void SetType(EventType value)
Aws::Utils::Json::JsonValue JsonValue