AWS SDK for C++

AWS SDK for C++ Version 1.11.766

Loading...
Searching...
No Matches
ReputationOptions.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
9#include <aws/email/SES_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Xml {
16class XmlNode;
17} // namespace Xml
18} // namespace Utils
19namespace SES {
20namespace Model {
21
29 public:
30 AWS_SES_API ReputationOptions() = default;
31 AWS_SES_API ReputationOptions(const Aws::Utils::Xml::XmlNode& xmlNode);
33
34 AWS_SES_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
35 AWS_SES_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
36
38
46 inline bool GetSendingEnabled() const { return m_sendingEnabled; }
47 inline bool SendingEnabledHasBeenSet() const { return m_sendingEnabledHasBeenSet; }
48 inline void SetSendingEnabled(bool value) {
49 m_sendingEnabledHasBeenSet = true;
50 m_sendingEnabled = value;
51 }
53 SetSendingEnabled(value);
54 return *this;
55 }
57
59
66 inline bool GetReputationMetricsEnabled() const { return m_reputationMetricsEnabled; }
67 inline bool ReputationMetricsEnabledHasBeenSet() const { return m_reputationMetricsEnabledHasBeenSet; }
68 inline void SetReputationMetricsEnabled(bool value) {
69 m_reputationMetricsEnabledHasBeenSet = true;
70 m_reputationMetricsEnabled = value;
71 }
74 return *this;
75 }
77
79
89 inline const Aws::Utils::DateTime& GetLastFreshStart() const { return m_lastFreshStart; }
90 inline bool LastFreshStartHasBeenSet() const { return m_lastFreshStartHasBeenSet; }
91 template <typename LastFreshStartT = Aws::Utils::DateTime>
92 void SetLastFreshStart(LastFreshStartT&& value) {
93 m_lastFreshStartHasBeenSet = true;
94 m_lastFreshStart = std::forward<LastFreshStartT>(value);
95 }
96 template <typename LastFreshStartT = Aws::Utils::DateTime>
97 ReputationOptions& WithLastFreshStart(LastFreshStartT&& value) {
98 SetLastFreshStart(std::forward<LastFreshStartT>(value));
99 return *this;
100 }
102 private:
103 bool m_sendingEnabled{false};
104
105 bool m_reputationMetricsEnabled{false};
106
107 Aws::Utils::DateTime m_lastFreshStart{};
108 bool m_sendingEnabledHasBeenSet = false;
109 bool m_reputationMetricsEnabledHasBeenSet = false;
110 bool m_lastFreshStartHasBeenSet = false;
111};
112
113} // namespace Model
114} // namespace SES
115} // namespace Aws
ReputationOptions & WithLastFreshStart(LastFreshStartT &&value)
AWS_SES_API ReputationOptions & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
ReputationOptions & WithSendingEnabled(bool value)
void SetLastFreshStart(LastFreshStartT &&value)
AWS_SES_API void OutputToStream(Aws::OStream &oStream, const char *location) const
const Aws::Utils::DateTime & GetLastFreshStart() const
AWS_SES_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
AWS_SES_API ReputationOptions(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_SES_API ReputationOptions()=default
ReputationOptions & WithReputationMetricsEnabled(bool value)
std::basic_ostream< char, std::char_traits< char > > OStream