/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include namespace Aws { namespace Utils { namespace Xml { class XmlNode; } // namespace Xml } // namespace Utils namespace SES { namespace Model { /** *

Represents sending statistics data. Each SendDataPoint contains * statistics for a 15-minute period of sending activity.

See Also:

* AWS * API Reference

*/ class SendDataPoint { public: AWS_SES_API SendDataPoint(); AWS_SES_API SendDataPoint(const Aws::Utils::Xml::XmlNode& xmlNode); AWS_SES_API SendDataPoint& operator=(const Aws::Utils::Xml::XmlNode& xmlNode); AWS_SES_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const; AWS_SES_API void OutputToStream(Aws::OStream& oStream, const char* location) const; /** *

Time of the data point.

*/ inline const Aws::Utils::DateTime& GetTimestamp() const{ return m_timestamp; } /** *

Time of the data point.

*/ inline bool TimestampHasBeenSet() const { return m_timestampHasBeenSet; } /** *

Time of the data point.

*/ inline void SetTimestamp(const Aws::Utils::DateTime& value) { m_timestampHasBeenSet = true; m_timestamp = value; } /** *

Time of the data point.

*/ inline void SetTimestamp(Aws::Utils::DateTime&& value) { m_timestampHasBeenSet = true; m_timestamp = std::move(value); } /** *

Time of the data point.

*/ inline SendDataPoint& WithTimestamp(const Aws::Utils::DateTime& value) { SetTimestamp(value); return *this;} /** *

Time of the data point.

*/ inline SendDataPoint& WithTimestamp(Aws::Utils::DateTime&& value) { SetTimestamp(std::move(value)); return *this;} /** *

Number of emails that have been sent.

*/ inline long long GetDeliveryAttempts() const{ return m_deliveryAttempts; } /** *

Number of emails that have been sent.

*/ inline bool DeliveryAttemptsHasBeenSet() const { return m_deliveryAttemptsHasBeenSet; } /** *

Number of emails that have been sent.

*/ inline void SetDeliveryAttempts(long long value) { m_deliveryAttemptsHasBeenSet = true; m_deliveryAttempts = value; } /** *

Number of emails that have been sent.

*/ inline SendDataPoint& WithDeliveryAttempts(long long value) { SetDeliveryAttempts(value); return *this;} /** *

Number of emails that have bounced.

*/ inline long long GetBounces() const{ return m_bounces; } /** *

Number of emails that have bounced.

*/ inline bool BouncesHasBeenSet() const { return m_bouncesHasBeenSet; } /** *

Number of emails that have bounced.

*/ inline void SetBounces(long long value) { m_bouncesHasBeenSet = true; m_bounces = value; } /** *

Number of emails that have bounced.

*/ inline SendDataPoint& WithBounces(long long value) { SetBounces(value); return *this;} /** *

Number of unwanted emails that were rejected by recipients.

*/ inline long long GetComplaints() const{ return m_complaints; } /** *

Number of unwanted emails that were rejected by recipients.

*/ inline bool ComplaintsHasBeenSet() const { return m_complaintsHasBeenSet; } /** *

Number of unwanted emails that were rejected by recipients.

*/ inline void SetComplaints(long long value) { m_complaintsHasBeenSet = true; m_complaints = value; } /** *

Number of unwanted emails that were rejected by recipients.

*/ inline SendDataPoint& WithComplaints(long long value) { SetComplaints(value); return *this;} /** *

Number of emails rejected by Amazon SES.

*/ inline long long GetRejects() const{ return m_rejects; } /** *

Number of emails rejected by Amazon SES.

*/ inline bool RejectsHasBeenSet() const { return m_rejectsHasBeenSet; } /** *

Number of emails rejected by Amazon SES.

*/ inline void SetRejects(long long value) { m_rejectsHasBeenSet = true; m_rejects = value; } /** *

Number of emails rejected by Amazon SES.

*/ inline SendDataPoint& WithRejects(long long value) { SetRejects(value); return *this;} private: Aws::Utils::DateTime m_timestamp; bool m_timestampHasBeenSet = false; long long m_deliveryAttempts; bool m_deliveryAttemptsHasBeenSet = false; long long m_bounces; bool m_bouncesHasBeenSet = false; long long m_complaints; bool m_complaintsHasBeenSet = false; long long m_rejects; bool m_rejectsHasBeenSet = false; }; } // namespace Model } // namespace SES } // namespace Aws