/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include namespace Aws { namespace Utils { namespace Xml { class XmlNode; } // namespace Xml } // namespace Utils namespace SES { namespace Model { /** *

Contains information about the reputation settings for a configuration * set.

See Also:

AWS * API Reference

*/ class ReputationOptions { public: AWS_SES_API ReputationOptions(); AWS_SES_API ReputationOptions(const Aws::Utils::Xml::XmlNode& xmlNode); AWS_SES_API ReputationOptions& operator=(const Aws::Utils::Xml::XmlNode& xmlNode); AWS_SES_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const; AWS_SES_API void OutputToStream(Aws::OStream& oStream, const char* location) const; /** *

Describes whether email sending is enabled or disabled for the configuration * set. If the value is true, then Amazon SES will send emails that * use the configuration set. If the value is false, Amazon SES will * not send emails that use the configuration set. The default value is * true. You can change this setting using * UpdateConfigurationSetSendingEnabled.

*/ inline bool GetSendingEnabled() const{ return m_sendingEnabled; } /** *

Describes whether email sending is enabled or disabled for the configuration * set. If the value is true, then Amazon SES will send emails that * use the configuration set. If the value is false, Amazon SES will * not send emails that use the configuration set. The default value is * true. You can change this setting using * UpdateConfigurationSetSendingEnabled.

*/ inline bool SendingEnabledHasBeenSet() const { return m_sendingEnabledHasBeenSet; } /** *

Describes whether email sending is enabled or disabled for the configuration * set. If the value is true, then Amazon SES will send emails that * use the configuration set. If the value is false, Amazon SES will * not send emails that use the configuration set. The default value is * true. You can change this setting using * UpdateConfigurationSetSendingEnabled.

*/ inline void SetSendingEnabled(bool value) { m_sendingEnabledHasBeenSet = true; m_sendingEnabled = value; } /** *

Describes whether email sending is enabled or disabled for the configuration * set. If the value is true, then Amazon SES will send emails that * use the configuration set. If the value is false, Amazon SES will * not send emails that use the configuration set. The default value is * true. You can change this setting using * UpdateConfigurationSetSendingEnabled.

*/ inline ReputationOptions& WithSendingEnabled(bool value) { SetSendingEnabled(value); return *this;} /** *

Describes whether or not Amazon SES publishes reputation metrics for the * configuration set, such as bounce and complaint rates, to Amazon CloudWatch.

*

If the value is true, reputation metrics are published. If the * value is false, reputation metrics are not published. The default * value is false.

*/ inline bool GetReputationMetricsEnabled() const{ return m_reputationMetricsEnabled; } /** *

Describes whether or not Amazon SES publishes reputation metrics for the * configuration set, such as bounce and complaint rates, to Amazon CloudWatch.

*

If the value is true, reputation metrics are published. If the * value is false, reputation metrics are not published. The default * value is false.

*/ inline bool ReputationMetricsEnabledHasBeenSet() const { return m_reputationMetricsEnabledHasBeenSet; } /** *

Describes whether or not Amazon SES publishes reputation metrics for the * configuration set, such as bounce and complaint rates, to Amazon CloudWatch.

*

If the value is true, reputation metrics are published. If the * value is false, reputation metrics are not published. The default * value is false.

*/ inline void SetReputationMetricsEnabled(bool value) { m_reputationMetricsEnabledHasBeenSet = true; m_reputationMetricsEnabled = value; } /** *

Describes whether or not Amazon SES publishes reputation metrics for the * configuration set, such as bounce and complaint rates, to Amazon CloudWatch.

*

If the value is true, reputation metrics are published. If the * value is false, reputation metrics are not published. The default * value is false.

*/ inline ReputationOptions& WithReputationMetricsEnabled(bool value) { SetReputationMetricsEnabled(value); return *this;} /** *

The date and time at which the reputation metrics for the configuration set * were last reset. Resetting these metrics is known as a fresh start.

*

When you disable email sending for a configuration set using * UpdateConfigurationSetSendingEnabled and later re-enable it, the * reputation metrics for the configuration set (but not for the entire Amazon SES * account) are reset.

If email sending for the configuration set has never * been disabled and later re-enabled, the value of this attribute is * null.

*/ inline const Aws::Utils::DateTime& GetLastFreshStart() const{ return m_lastFreshStart; } /** *

The date and time at which the reputation metrics for the configuration set * were last reset. Resetting these metrics is known as a fresh start.

*

When you disable email sending for a configuration set using * UpdateConfigurationSetSendingEnabled and later re-enable it, the * reputation metrics for the configuration set (but not for the entire Amazon SES * account) are reset.

If email sending for the configuration set has never * been disabled and later re-enabled, the value of this attribute is * null.

*/ inline bool LastFreshStartHasBeenSet() const { return m_lastFreshStartHasBeenSet; } /** *

The date and time at which the reputation metrics for the configuration set * were last reset. Resetting these metrics is known as a fresh start.

*

When you disable email sending for a configuration set using * UpdateConfigurationSetSendingEnabled and later re-enable it, the * reputation metrics for the configuration set (but not for the entire Amazon SES * account) are reset.

If email sending for the configuration set has never * been disabled and later re-enabled, the value of this attribute is * null.

*/ inline void SetLastFreshStart(const Aws::Utils::DateTime& value) { m_lastFreshStartHasBeenSet = true; m_lastFreshStart = value; } /** *

The date and time at which the reputation metrics for the configuration set * were last reset. Resetting these metrics is known as a fresh start.

*

When you disable email sending for a configuration set using * UpdateConfigurationSetSendingEnabled and later re-enable it, the * reputation metrics for the configuration set (but not for the entire Amazon SES * account) are reset.

If email sending for the configuration set has never * been disabled and later re-enabled, the value of this attribute is * null.

*/ inline void SetLastFreshStart(Aws::Utils::DateTime&& value) { m_lastFreshStartHasBeenSet = true; m_lastFreshStart = std::move(value); } /** *

The date and time at which the reputation metrics for the configuration set * were last reset. Resetting these metrics is known as a fresh start.

*

When you disable email sending for a configuration set using * UpdateConfigurationSetSendingEnabled and later re-enable it, the * reputation metrics for the configuration set (but not for the entire Amazon SES * account) are reset.

If email sending for the configuration set has never * been disabled and later re-enabled, the value of this attribute is * null.

*/ inline ReputationOptions& WithLastFreshStart(const Aws::Utils::DateTime& value) { SetLastFreshStart(value); return *this;} /** *

The date and time at which the reputation metrics for the configuration set * were last reset. Resetting these metrics is known as a fresh start.

*

When you disable email sending for a configuration set using * UpdateConfigurationSetSendingEnabled and later re-enable it, the * reputation metrics for the configuration set (but not for the entire Amazon SES * account) are reset.

If email sending for the configuration set has never * been disabled and later re-enabled, the value of this attribute is * null.

*/ inline ReputationOptions& WithLastFreshStart(Aws::Utils::DateTime&& value) { SetLastFreshStart(std::move(value)); return *this;} private: bool m_sendingEnabled; bool m_sendingEnabledHasBeenSet = false; bool m_reputationMetricsEnabled; bool m_reputationMetricsEnabledHasBeenSet = false; Aws::Utils::DateTime m_lastFreshStart; bool m_lastFreshStartHasBeenSet = false; }; } // namespace Model } // namespace SES } // namespace Aws