AWS SDK for C++

AWS SDK for C++ Version 1.11.768

Loading...
Searching...
No Matches
SendDataPoint.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
9#include <aws/email/SES_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Xml {
16class XmlNode;
17} // namespace Xml
18} // namespace Utils
19namespace SES {
20namespace Model {
21
30 public:
31 AWS_SES_API SendDataPoint() = default;
32 AWS_SES_API SendDataPoint(const Aws::Utils::Xml::XmlNode& xmlNode);
33 AWS_SES_API SendDataPoint& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
34
35 AWS_SES_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
36 AWS_SES_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
37
39
42 inline const Aws::Utils::DateTime& GetTimestamp() const { return m_timestamp; }
43 inline bool TimestampHasBeenSet() const { return m_timestampHasBeenSet; }
44 template <typename TimestampT = Aws::Utils::DateTime>
45 void SetTimestamp(TimestampT&& value) {
46 m_timestampHasBeenSet = true;
47 m_timestamp = std::forward<TimestampT>(value);
48 }
49 template <typename TimestampT = Aws::Utils::DateTime>
50 SendDataPoint& WithTimestamp(TimestampT&& value) {
51 SetTimestamp(std::forward<TimestampT>(value));
52 return *this;
53 }
55
57
60 inline long long GetDeliveryAttempts() const { return m_deliveryAttempts; }
61 inline bool DeliveryAttemptsHasBeenSet() const { return m_deliveryAttemptsHasBeenSet; }
62 inline void SetDeliveryAttempts(long long value) {
63 m_deliveryAttemptsHasBeenSet = true;
64 m_deliveryAttempts = value;
65 }
66 inline SendDataPoint& WithDeliveryAttempts(long long value) {
68 return *this;
69 }
71
73
76 inline long long GetBounces() const { return m_bounces; }
77 inline bool BouncesHasBeenSet() const { return m_bouncesHasBeenSet; }
78 inline void SetBounces(long long value) {
79 m_bouncesHasBeenSet = true;
80 m_bounces = value;
81 }
82 inline SendDataPoint& WithBounces(long long value) {
83 SetBounces(value);
84 return *this;
85 }
87
89
92 inline long long GetComplaints() const { return m_complaints; }
93 inline bool ComplaintsHasBeenSet() const { return m_complaintsHasBeenSet; }
94 inline void SetComplaints(long long value) {
95 m_complaintsHasBeenSet = true;
96 m_complaints = value;
97 }
98 inline SendDataPoint& WithComplaints(long long value) {
99 SetComplaints(value);
100 return *this;
101 }
103
105
108 inline long long GetRejects() const { return m_rejects; }
109 inline bool RejectsHasBeenSet() const { return m_rejectsHasBeenSet; }
110 inline void SetRejects(long long value) {
111 m_rejectsHasBeenSet = true;
112 m_rejects = value;
113 }
114 inline SendDataPoint& WithRejects(long long value) {
115 SetRejects(value);
116 return *this;
117 }
119 private:
120 Aws::Utils::DateTime m_timestamp{};
121
122 long long m_deliveryAttempts{0};
123
124 long long m_bounces{0};
125
126 long long m_complaints{0};
127
128 long long m_rejects{0};
129 bool m_timestampHasBeenSet = false;
130 bool m_deliveryAttemptsHasBeenSet = false;
131 bool m_bouncesHasBeenSet = false;
132 bool m_complaintsHasBeenSet = false;
133 bool m_rejectsHasBeenSet = false;
134};
135
136} // namespace Model
137} // namespace SES
138} // namespace Aws
AWS_SES_API SendDataPoint(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetTimestamp(TimestampT &&value)
SendDataPoint & WithDeliveryAttempts(long long value)
void SetComplaints(long long value)
void SetBounces(long long value)
SendDataPoint & WithComplaints(long long value)
AWS_SES_API SendDataPoint & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
SendDataPoint & WithBounces(long long value)
AWS_SES_API SendDataPoint()=default
AWS_SES_API void OutputToStream(Aws::OStream &oStream, const char *location) const
long long GetComplaints() const
void SetDeliveryAttempts(long long value)
void SetRejects(long long value)
SendDataPoint & WithRejects(long long value)
long long GetDeliveryAttempts() const
const Aws::Utils::DateTime & GetTimestamp() const
SendDataPoint & WithTimestamp(TimestampT &&value)
AWS_SES_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
std::basic_ostream< char, std::char_traits< char > > OStream