AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
InsightsEvent.h
1
6#pragma once
7#include <aws/sesv2/SESV2_EXPORTS.h>
8#include <aws/core/utils/DateTime.h>
9#include <aws/sesv2/model/EventType.h>
10#include <aws/sesv2/model/EventDetails.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace SESV2
24{
25namespace Model
26{
27
35 {
36 public:
37 AWS_SESV2_API InsightsEvent();
38 AWS_SESV2_API InsightsEvent(Aws::Utils::Json::JsonView jsonValue);
40 AWS_SESV2_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
47 inline const Aws::Utils::DateTime& GetTimestamp() const{ return m_timestamp; }
48 inline bool TimestampHasBeenSet() const { return m_timestampHasBeenSet; }
49 inline void SetTimestamp(const Aws::Utils::DateTime& value) { m_timestampHasBeenSet = true; m_timestamp = value; }
50 inline void SetTimestamp(Aws::Utils::DateTime&& value) { m_timestampHasBeenSet = true; m_timestamp = std::move(value); }
51 inline InsightsEvent& WithTimestamp(const Aws::Utils::DateTime& value) { SetTimestamp(value); return *this;}
52 inline InsightsEvent& WithTimestamp(Aws::Utils::DateTime&& value) { SetTimestamp(std::move(value)); return *this;}
54
56
77 inline const EventType& GetType() const{ return m_type; }
78 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
79 inline void SetType(const EventType& value) { m_typeHasBeenSet = true; m_type = value; }
80 inline void SetType(EventType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
81 inline InsightsEvent& WithType(const EventType& value) { SetType(value); return *this;}
82 inline InsightsEvent& WithType(EventType&& value) { SetType(std::move(value)); return *this;}
84
86
89 inline const EventDetails& GetDetails() const{ return m_details; }
90 inline bool DetailsHasBeenSet() const { return m_detailsHasBeenSet; }
91 inline void SetDetails(const EventDetails& value) { m_detailsHasBeenSet = true; m_details = value; }
92 inline void SetDetails(EventDetails&& value) { m_detailsHasBeenSet = true; m_details = std::move(value); }
93 inline InsightsEvent& WithDetails(const EventDetails& value) { SetDetails(value); return *this;}
94 inline InsightsEvent& WithDetails(EventDetails&& value) { SetDetails(std::move(value)); return *this;}
96 private:
97
98 Aws::Utils::DateTime m_timestamp;
99 bool m_timestampHasBeenSet = false;
100
101 EventType m_type;
102 bool m_typeHasBeenSet = false;
103
104 EventDetails m_details;
105 bool m_detailsHasBeenSet = false;
106 };
107
108} // namespace Model
109} // namespace SESV2
110} // namespace Aws
AWS_SESV2_API Aws::Utils::Json::JsonValue Jsonize() const
InsightsEvent & WithTimestamp(Aws::Utils::DateTime &&value)
const Aws::Utils::DateTime & GetTimestamp() const
void SetType(const EventType &value)
void SetDetails(const EventDetails &value)
InsightsEvent & WithType(EventType &&value)
InsightsEvent & WithDetails(const EventDetails &value)
AWS_SESV2_API InsightsEvent & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_SESV2_API InsightsEvent(Aws::Utils::Json::JsonView jsonValue)
const EventType & GetType() const
InsightsEvent & WithDetails(EventDetails &&value)
void SetDetails(EventDetails &&value)
void SetTimestamp(const Aws::Utils::DateTime &value)
void SetTimestamp(Aws::Utils::DateTime &&value)
InsightsEvent & WithType(const EventType &value)
InsightsEvent & WithTimestamp(const Aws::Utils::DateTime &value)
const EventDetails & GetDetails() const
void SetType(EventType &&value)
Aws::Utils::Json::JsonValue JsonValue