AWS SDK for C++

AWS SDK for C++ Version 1.11.935

Loading...
Searching...
No Matches
EmailInsights.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/sesv2/SESV2_EXPORTS.h>
10#include <aws/sesv2/model/InsightsEvent.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 EmailInsights() = default;
33 AWS_SESV2_API EmailInsights(Aws::Utils::Json::JsonView jsonValue);
35 AWS_SESV2_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
41 inline const Aws::String& GetDestination() const { return m_destination; }
42 inline bool DestinationHasBeenSet() const { return m_destinationHasBeenSet; }
43 template <typename DestinationT = Aws::String>
44 void SetDestination(DestinationT&& value) {
45 m_destinationHasBeenSet = true;
46 m_destination = std::forward<DestinationT>(value);
47 }
48 template <typename DestinationT = Aws::String>
49 EmailInsights& WithDestination(DestinationT&& value) {
50 SetDestination(std::forward<DestinationT>(value));
51 return *this;
52 }
54
56
59 inline const Aws::String& GetIsp() const { return m_isp; }
60 inline bool IspHasBeenSet() const { return m_ispHasBeenSet; }
61 template <typename IspT = Aws::String>
62 void SetIsp(IspT&& value) {
63 m_ispHasBeenSet = true;
64 m_isp = std::forward<IspT>(value);
65 }
66 template <typename IspT = Aws::String>
67 EmailInsights& WithIsp(IspT&& value) {
68 SetIsp(std::forward<IspT>(value));
69 return *this;
70 }
72
74
77 inline const Aws::Vector<InsightsEvent>& GetEvents() const { return m_events; }
78 inline bool EventsHasBeenSet() const { return m_eventsHasBeenSet; }
79 template <typename EventsT = Aws::Vector<InsightsEvent>>
80 void SetEvents(EventsT&& value) {
81 m_eventsHasBeenSet = true;
82 m_events = std::forward<EventsT>(value);
83 }
84 template <typename EventsT = Aws::Vector<InsightsEvent>>
85 EmailInsights& WithEvents(EventsT&& value) {
86 SetEvents(std::forward<EventsT>(value));
87 return *this;
88 }
89 template <typename EventsT = InsightsEvent>
90 EmailInsights& AddEvents(EventsT&& value) {
91 m_eventsHasBeenSet = true;
92 m_events.emplace_back(std::forward<EventsT>(value));
93 return *this;
94 }
96 private:
97 Aws::String m_destination;
98
99 Aws::String m_isp;
100
102 bool m_destinationHasBeenSet = false;
103 bool m_ispHasBeenSet = false;
104 bool m_eventsHasBeenSet = false;
105};
106
107} // namespace Model
108} // namespace SESV2
109} // namespace Aws
EmailInsights & AddEvents(EventsT &&value)
EmailInsights & WithEvents(EventsT &&value)
const Aws::String & GetIsp() const
const Aws::Vector< InsightsEvent > & GetEvents() const
EmailInsights & WithDestination(DestinationT &&value)
void SetEvents(EventsT &&value)
EmailInsights & WithIsp(IspT &&value)
AWS_SESV2_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_SESV2_API EmailInsights & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_SESV2_API EmailInsights(Aws::Utils::Json::JsonView jsonValue)
void SetDestination(DestinationT &&value)
const Aws::String & GetDestination() const
AWS_SESV2_API EmailInsights()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue