AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
SendQuota.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
26class SendQuota {
27 public:
28 AWS_PINPOINTEMAIL_API SendQuota() = default;
29 AWS_PINPOINTEMAIL_API SendQuota(Aws::Utils::Json::JsonView jsonValue);
30 AWS_PINPOINTEMAIL_API SendQuota& operator=(Aws::Utils::Json::JsonView jsonValue);
31 AWS_PINPOINTEMAIL_API Aws::Utils::Json::JsonValue Jsonize() const;
32
34
38 inline double GetMax24HourSend() const { return m_max24HourSend; }
39 inline bool Max24HourSendHasBeenSet() const { return m_max24HourSendHasBeenSet; }
40 inline void SetMax24HourSend(double value) {
41 m_max24HourSendHasBeenSet = true;
42 m_max24HourSend = value;
43 }
44 inline SendQuota& WithMax24HourSend(double value) {
45 SetMax24HourSend(value);
46 return *this;
47 }
49
51
56 inline double GetMaxSendRate() const { return m_maxSendRate; }
57 inline bool MaxSendRateHasBeenSet() const { return m_maxSendRateHasBeenSet; }
58 inline void SetMaxSendRate(double value) {
59 m_maxSendRateHasBeenSet = true;
60 m_maxSendRate = value;
61 }
62 inline SendQuota& WithMaxSendRate(double value) {
63 SetMaxSendRate(value);
64 return *this;
65 }
67
69
73 inline double GetSentLast24Hours() const { return m_sentLast24Hours; }
74 inline bool SentLast24HoursHasBeenSet() const { return m_sentLast24HoursHasBeenSet; }
75 inline void SetSentLast24Hours(double value) {
76 m_sentLast24HoursHasBeenSet = true;
77 m_sentLast24Hours = value;
78 }
79 inline SendQuota& WithSentLast24Hours(double value) {
80 SetSentLast24Hours(value);
81 return *this;
82 }
84 private:
85 double m_max24HourSend{0.0};
86
87 double m_maxSendRate{0.0};
88
89 double m_sentLast24Hours{0.0};
90 bool m_max24HourSendHasBeenSet = false;
91 bool m_maxSendRateHasBeenSet = false;
92 bool m_sentLast24HoursHasBeenSet = false;
93};
94
95} // namespace Model
96} // namespace PinpointEmail
97} // namespace Aws
void SetMaxSendRate(double value)
Definition SendQuota.h:58
AWS_PINPOINTEMAIL_API SendQuota & operator=(Aws::Utils::Json::JsonView jsonValue)
SendQuota & WithMax24HourSend(double value)
Definition SendQuota.h:44
SendQuota & WithSentLast24Hours(double value)
Definition SendQuota.h:79
AWS_PINPOINTEMAIL_API SendQuota()=default
SendQuota & WithMaxSendRate(double value)
Definition SendQuota.h:62
AWS_PINPOINTEMAIL_API Aws::Utils::Json::JsonValue Jsonize() const
void SetMax24HourSend(double value)
Definition SendQuota.h:40
void SetSentLast24Hours(double value)
Definition SendQuota.h:75
AWS_PINPOINTEMAIL_API SendQuota(Aws::Utils::Json::JsonView jsonValue)
Aws::Utils::Json::JsonValue JsonValue