AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
PlacementStatistics.h
1
6#pragma once
7#include <aws/pinpoint-email/PinpointEmail_EXPORTS.h>
8
9namespace Aws {
10namespace Utils {
11namespace Json {
12class JsonValue;
13class JsonView;
14} // namespace Json
15} // namespace Utils
16namespace PinpointEmail {
17namespace Model {
18
26 public:
27 AWS_PINPOINTEMAIL_API PlacementStatistics() = default;
28 AWS_PINPOINTEMAIL_API PlacementStatistics(Aws::Utils::Json::JsonView jsonValue);
29 AWS_PINPOINTEMAIL_API PlacementStatistics& operator=(Aws::Utils::Json::JsonView jsonValue);
30 AWS_PINPOINTEMAIL_API Aws::Utils::Json::JsonValue Jsonize() const;
31
33
37 inline double GetInboxPercentage() const { return m_inboxPercentage; }
38 inline bool InboxPercentageHasBeenSet() const { return m_inboxPercentageHasBeenSet; }
39 inline void SetInboxPercentage(double value) {
40 m_inboxPercentageHasBeenSet = true;
41 m_inboxPercentage = value;
42 }
44 SetInboxPercentage(value);
45 return *this;
46 }
48
50
54 inline double GetSpamPercentage() const { return m_spamPercentage; }
55 inline bool SpamPercentageHasBeenSet() const { return m_spamPercentageHasBeenSet; }
56 inline void SetSpamPercentage(double value) {
57 m_spamPercentageHasBeenSet = true;
58 m_spamPercentage = value;
59 }
61 SetSpamPercentage(value);
62 return *this;
63 }
65
67
71 inline double GetMissingPercentage() const { return m_missingPercentage; }
72 inline bool MissingPercentageHasBeenSet() const { return m_missingPercentageHasBeenSet; }
73 inline void SetMissingPercentage(double value) {
74 m_missingPercentageHasBeenSet = true;
75 m_missingPercentage = value;
76 }
79 return *this;
80 }
82
84
88 inline double GetSpfPercentage() const { return m_spfPercentage; }
89 inline bool SpfPercentageHasBeenSet() const { return m_spfPercentageHasBeenSet; }
90 inline void SetSpfPercentage(double value) {
91 m_spfPercentageHasBeenSet = true;
92 m_spfPercentage = value;
93 }
94 inline PlacementStatistics& WithSpfPercentage(double value) {
95 SetSpfPercentage(value);
96 return *this;
97 }
99
101
105 inline double GetDkimPercentage() const { return m_dkimPercentage; }
106 inline bool DkimPercentageHasBeenSet() const { return m_dkimPercentageHasBeenSet; }
107 inline void SetDkimPercentage(double value) {
108 m_dkimPercentageHasBeenSet = true;
109 m_dkimPercentage = value;
110 }
112 SetDkimPercentage(value);
113 return *this;
114 }
116 private:
117 double m_inboxPercentage{0.0};
118
119 double m_spamPercentage{0.0};
120
121 double m_missingPercentage{0.0};
122
123 double m_spfPercentage{0.0};
124
125 double m_dkimPercentage{0.0};
126 bool m_inboxPercentageHasBeenSet = false;
127 bool m_spamPercentageHasBeenSet = false;
128 bool m_missingPercentageHasBeenSet = false;
129 bool m_spfPercentageHasBeenSet = false;
130 bool m_dkimPercentageHasBeenSet = false;
131};
132
133} // namespace Model
134} // namespace PinpointEmail
135} // namespace Aws
AWS_PINPOINTEMAIL_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_PINPOINTEMAIL_API PlacementStatistics & operator=(Aws::Utils::Json::JsonView jsonValue)
PlacementStatistics & WithMissingPercentage(double value)
AWS_PINPOINTEMAIL_API PlacementStatistics(Aws::Utils::Json::JsonView jsonValue)
PlacementStatistics & WithInboxPercentage(double value)
PlacementStatistics & WithSpamPercentage(double value)
PlacementStatistics & WithSpfPercentage(double value)
AWS_PINPOINTEMAIL_API PlacementStatistics()=default
PlacementStatistics & WithDkimPercentage(double value)
Aws::Utils::Json::JsonValue JsonValue