AWS SDK for C++  0.12.9
AWS SDK for C++
SendDataPoint.h
Go to the documentation of this file.
1 /*
2 * Copyright 2010-2016 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License").
5 * You may not use this file except in compliance with the License.
6 * A copy of the License is located at
7 *
8 * http://aws.amazon.com/apache2.0
9 *
10 * or in the "license" file accompanying this file. This file is distributed
11 * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
12 * express or implied. See the License for the specific language governing
13 * permissions and limitations under the License.
14 */
15 #pragma once
16 #include <aws/email/SES_EXPORTS.h>
19 
20 namespace Aws
21 {
22 namespace Utils
23 {
24 namespace Xml
25 {
26  class XmlNode;
27 } // namespace Xml
28 } // namespace Utils
29 namespace SES
30 {
31 namespace Model
32 {
33 
39  {
40  public:
41  SendDataPoint();
43  SendDataPoint& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
44 
45  void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
46  void OutputToStream(Aws::OStream& oStream, const char* location) const;
47 
51  inline const Aws::Utils::DateTime& GetTimestamp() const{ return m_timestamp; }
52 
56  inline void SetTimestamp(const Aws::Utils::DateTime& value) { m_timestampHasBeenSet = true; m_timestamp = value; }
57 
61  inline void SetTimestamp(Aws::Utils::DateTime&& value) { m_timestampHasBeenSet = true; m_timestamp = value; }
62 
66  inline SendDataPoint& WithTimestamp(const Aws::Utils::DateTime& value) { SetTimestamp(value); return *this;}
67 
71  inline SendDataPoint& WithTimestamp(Aws::Utils::DateTime&& value) { SetTimestamp(value); return *this;}
72 
76  inline long long GetDeliveryAttempts() const{ return m_deliveryAttempts; }
77 
81  inline void SetDeliveryAttempts(long long value) { m_deliveryAttemptsHasBeenSet = true; m_deliveryAttempts = value; }
82 
86  inline SendDataPoint& WithDeliveryAttempts(long long value) { SetDeliveryAttempts(value); return *this;}
87 
91  inline long long GetBounces() const{ return m_bounces; }
92 
96  inline void SetBounces(long long value) { m_bouncesHasBeenSet = true; m_bounces = value; }
97 
101  inline SendDataPoint& WithBounces(long long value) { SetBounces(value); return *this;}
102 
106  inline long long GetComplaints() const{ return m_complaints; }
107 
111  inline void SetComplaints(long long value) { m_complaintsHasBeenSet = true; m_complaints = value; }
112 
116  inline SendDataPoint& WithComplaints(long long value) { SetComplaints(value); return *this;}
117 
121  inline long long GetRejects() const{ return m_rejects; }
122 
126  inline void SetRejects(long long value) { m_rejectsHasBeenSet = true; m_rejects = value; }
127 
131  inline SendDataPoint& WithRejects(long long value) { SetRejects(value); return *this;}
132 
133  private:
134  Aws::Utils::DateTime m_timestamp;
135  bool m_timestampHasBeenSet;
136  long long m_deliveryAttempts;
137  bool m_deliveryAttemptsHasBeenSet;
138  long long m_bounces;
139  bool m_bouncesHasBeenSet;
140  long long m_complaints;
141  bool m_complaintsHasBeenSet;
142  long long m_rejects;
143  bool m_rejectsHasBeenSet;
144  };
145 
146 } // namespace Model
147 } // namespace SES
148 } // namespace Aws
SendDataPoint & WithComplaints(long long value)
const Aws::Utils::DateTime & GetTimestamp() const
Definition: SendDataPoint.h:51
void SetBounces(long long value)
Definition: SendDataPoint.h:96
long long GetRejects() const
void SetDeliveryAttempts(long long value)
Definition: SendDataPoint.h:81
SendDataPoint & WithRejects(long long value)
void SetTimestamp(const Aws::Utils::DateTime &value)
Definition: SendDataPoint.h:56
SendDataPoint & WithTimestamp(const Aws::Utils::DateTime &value)
Definition: SendDataPoint.h:66
void SetRejects(long long value)
SendDataPoint & WithTimestamp(Aws::Utils::DateTime &&value)
Definition: SendDataPoint.h:71
SendDataPoint & WithBounces(long long value)
long long GetBounces() const
Definition: SendDataPoint.h:91
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:31
long long GetComplaints() const
long long GetDeliveryAttempts() const
Definition: SendDataPoint.h:76
void SetTimestamp(Aws::Utils::DateTime &&value)
Definition: SendDataPoint.h:61
void SetComplaints(long long value)
SendDataPoint & WithDeliveryAttempts(long long value)
Definition: SendDataPoint.h:86
#define AWS_SES_API
Definition: SES_EXPORTS.h:34
JSON (JavaScript Object Notation).