AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
DomainIspPlacement.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/pinpoint-email/PinpointEmail_EXPORTS.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace PinpointEmail {
20namespace Model {
21
29 public:
30 AWS_PINPOINTEMAIL_API DomainIspPlacement() = default;
31 AWS_PINPOINTEMAIL_API DomainIspPlacement(Aws::Utils::Json::JsonView jsonValue);
32 AWS_PINPOINTEMAIL_API DomainIspPlacement& operator=(Aws::Utils::Json::JsonView jsonValue);
33 AWS_PINPOINTEMAIL_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
39 inline const Aws::String& GetIspName() const { return m_ispName; }
40 inline bool IspNameHasBeenSet() const { return m_ispNameHasBeenSet; }
41 template <typename IspNameT = Aws::String>
42 void SetIspName(IspNameT&& value) {
43 m_ispNameHasBeenSet = true;
44 m_ispName = std::forward<IspNameT>(value);
45 }
46 template <typename IspNameT = Aws::String>
47 DomainIspPlacement& WithIspName(IspNameT&& value) {
48 SetIspName(std::forward<IspNameT>(value));
49 return *this;
50 }
52
54
58 inline long long GetInboxRawCount() const { return m_inboxRawCount; }
59 inline bool InboxRawCountHasBeenSet() const { return m_inboxRawCountHasBeenSet; }
60 inline void SetInboxRawCount(long long value) {
61 m_inboxRawCountHasBeenSet = true;
62 m_inboxRawCount = value;
63 }
64 inline DomainIspPlacement& WithInboxRawCount(long long value) {
65 SetInboxRawCount(value);
66 return *this;
67 }
69
71
76 inline long long GetSpamRawCount() const { return m_spamRawCount; }
77 inline bool SpamRawCountHasBeenSet() const { return m_spamRawCountHasBeenSet; }
78 inline void SetSpamRawCount(long long value) {
79 m_spamRawCountHasBeenSet = true;
80 m_spamRawCount = value;
81 }
82 inline DomainIspPlacement& WithSpamRawCount(long long value) {
83 SetSpamRawCount(value);
84 return *this;
85 }
87
89
93 inline double GetInboxPercentage() const { return m_inboxPercentage; }
94 inline bool InboxPercentageHasBeenSet() const { return m_inboxPercentageHasBeenSet; }
95 inline void SetInboxPercentage(double value) {
96 m_inboxPercentageHasBeenSet = true;
97 m_inboxPercentage = value;
98 }
100 SetInboxPercentage(value);
101 return *this;
102 }
104
106
111 inline double GetSpamPercentage() const { return m_spamPercentage; }
112 inline bool SpamPercentageHasBeenSet() const { return m_spamPercentageHasBeenSet; }
113 inline void SetSpamPercentage(double value) {
114 m_spamPercentageHasBeenSet = true;
115 m_spamPercentage = value;
116 }
118 SetSpamPercentage(value);
119 return *this;
120 }
122 private:
123 Aws::String m_ispName;
124
125 long long m_inboxRawCount{0};
126
127 long long m_spamRawCount{0};
128
129 double m_inboxPercentage{0.0};
130
131 double m_spamPercentage{0.0};
132 bool m_ispNameHasBeenSet = false;
133 bool m_inboxRawCountHasBeenSet = false;
134 bool m_spamRawCountHasBeenSet = false;
135 bool m_inboxPercentageHasBeenSet = false;
136 bool m_spamPercentageHasBeenSet = false;
137};
138
139} // namespace Model
140} // namespace PinpointEmail
141} // namespace Aws
AWS_PINPOINTEMAIL_API DomainIspPlacement(Aws::Utils::Json::JsonView jsonValue)
DomainIspPlacement & WithIspName(IspNameT &&value)
DomainIspPlacement & WithSpamRawCount(long long value)
DomainIspPlacement & WithInboxRawCount(long long value)
AWS_PINPOINTEMAIL_API Aws::Utils::Json::JsonValue Jsonize() const
DomainIspPlacement & WithInboxPercentage(double value)
AWS_PINPOINTEMAIL_API DomainIspPlacement()=default
AWS_PINPOINTEMAIL_API DomainIspPlacement & operator=(Aws::Utils::Json::JsonView jsonValue)
DomainIspPlacement & WithSpamPercentage(double value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue