AWS SDK for C++

AWS SDK for C++ Version 1.11.935

Loading...
Searching...
No Matches
EventDetails.h
1
6#pragma once
7#include <aws/sesv2/SESV2_EXPORTS.h>
8#include <aws/sesv2/model/Bounce.h>
9#include <aws/sesv2/model/Complaint.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace SESV2 {
21namespace Model {
22
31 public:
32 AWS_SESV2_API EventDetails() = default;
33 AWS_SESV2_API EventDetails(Aws::Utils::Json::JsonView jsonValue);
35 AWS_SESV2_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
41 inline const Bounce& GetBounce() const { return m_bounce; }
42 inline bool BounceHasBeenSet() const { return m_bounceHasBeenSet; }
43 template <typename BounceT = Bounce>
44 void SetBounce(BounceT&& value) {
45 m_bounceHasBeenSet = true;
46 m_bounce = std::forward<BounceT>(value);
47 }
48 template <typename BounceT = Bounce>
49 EventDetails& WithBounce(BounceT&& value) {
50 SetBounce(std::forward<BounceT>(value));
51 return *this;
52 }
54
56
59 inline const Complaint& GetComplaint() const { return m_complaint; }
60 inline bool ComplaintHasBeenSet() const { return m_complaintHasBeenSet; }
61 template <typename ComplaintT = Complaint>
62 void SetComplaint(ComplaintT&& value) {
63 m_complaintHasBeenSet = true;
64 m_complaint = std::forward<ComplaintT>(value);
65 }
66 template <typename ComplaintT = Complaint>
67 EventDetails& WithComplaint(ComplaintT&& value) {
68 SetComplaint(std::forward<ComplaintT>(value));
69 return *this;
70 }
72 private:
73 Bounce m_bounce;
74
75 Complaint m_complaint;
76 bool m_bounceHasBeenSet = false;
77 bool m_complaintHasBeenSet = false;
78};
79
80} // namespace Model
81} // namespace SESV2
82} // namespace Aws
AWS_SESV2_API EventDetails(Aws::Utils::Json::JsonView jsonValue)
AWS_SESV2_API Aws::Utils::Json::JsonValue Jsonize() const
const Bounce & GetBounce() const
AWS_SESV2_API EventDetails()=default
EventDetails & WithComplaint(ComplaintT &&value)
EventDetails & WithBounce(BounceT &&value)
AWS_SESV2_API EventDetails & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetComplaint(ComplaintT &&value)
void SetBounce(BounceT &&value)
const Complaint & GetComplaint() const
Aws::Utils::Json::JsonValue JsonValue