AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
DomainIspPlacement.h
1
6#pragma once
7#include <aws/pinpoint-email/PinpointEmail_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <utility>
10
11namespace Aws
12{
13namespace Utils
14{
15namespace Json
16{
17 class JsonValue;
18 class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace PinpointEmail
22{
23namespace Model
24{
25
33 {
34 public:
35 AWS_PINPOINTEMAIL_API DomainIspPlacement() = default;
36 AWS_PINPOINTEMAIL_API DomainIspPlacement(Aws::Utils::Json::JsonView jsonValue);
37 AWS_PINPOINTEMAIL_API DomainIspPlacement& operator=(Aws::Utils::Json::JsonView jsonValue);
38 AWS_PINPOINTEMAIL_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
45 inline const Aws::String& GetIspName() const { return m_ispName; }
46 inline bool IspNameHasBeenSet() const { return m_ispNameHasBeenSet; }
47 template<typename IspNameT = Aws::String>
48 void SetIspName(IspNameT&& value) { m_ispNameHasBeenSet = true; m_ispName = std::forward<IspNameT>(value); }
49 template<typename IspNameT = Aws::String>
50 DomainIspPlacement& WithIspName(IspNameT&& value) { SetIspName(std::forward<IspNameT>(value)); return *this;}
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) { m_inboxRawCountHasBeenSet = true; m_inboxRawCount = value; }
61 inline DomainIspPlacement& WithInboxRawCount(long long value) { SetInboxRawCount(value); return *this;}
63
65
70 inline long long GetSpamRawCount() const { return m_spamRawCount; }
71 inline bool SpamRawCountHasBeenSet() const { return m_spamRawCountHasBeenSet; }
72 inline void SetSpamRawCount(long long value) { m_spamRawCountHasBeenSet = true; m_spamRawCount = value; }
73 inline DomainIspPlacement& WithSpamRawCount(long long value) { SetSpamRawCount(value); return *this;}
75
77
81 inline double GetInboxPercentage() const { return m_inboxPercentage; }
82 inline bool InboxPercentageHasBeenSet() const { return m_inboxPercentageHasBeenSet; }
83 inline void SetInboxPercentage(double value) { m_inboxPercentageHasBeenSet = true; m_inboxPercentage = value; }
84 inline DomainIspPlacement& WithInboxPercentage(double value) { SetInboxPercentage(value); return *this;}
86
88
93 inline double GetSpamPercentage() const { return m_spamPercentage; }
94 inline bool SpamPercentageHasBeenSet() const { return m_spamPercentageHasBeenSet; }
95 inline void SetSpamPercentage(double value) { m_spamPercentageHasBeenSet = true; m_spamPercentage = value; }
96 inline DomainIspPlacement& WithSpamPercentage(double value) { SetSpamPercentage(value); return *this;}
98 private:
99
100 Aws::String m_ispName;
101 bool m_ispNameHasBeenSet = false;
102
103 long long m_inboxRawCount{0};
104 bool m_inboxRawCountHasBeenSet = false;
105
106 long long m_spamRawCount{0};
107 bool m_spamRawCountHasBeenSet = false;
108
109 double m_inboxPercentage{0.0};
110 bool m_inboxPercentageHasBeenSet = false;
111
112 double m_spamPercentage{0.0};
113 bool m_spamPercentageHasBeenSet = false;
114 };
115
116} // namespace Model
117} // namespace PinpointEmail
118} // 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