/** * 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 Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace SESV2 { namespace Model { /** *

An object that contains information about the email address suppression * preferences for your account in the current Amazon Web Services * Region.

See Also:

AWS * API Reference

*/ class SuppressionAttributes { public: AWS_SESV2_API SuppressionAttributes(); AWS_SESV2_API SuppressionAttributes(Aws::Utils::Json::JsonView jsonValue); AWS_SESV2_API SuppressionAttributes& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_SESV2_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

A list that contains the reasons that email addresses will be automatically * added to the suppression list for your account. This list can contain any or all * of the following:

  • COMPLAINT – Amazon SES adds an * email address to the suppression list for your account when a message sent to * that address results in a complaint.

  • BOUNCE – * Amazon SES adds an email address to the suppression list for your account when a * message sent to that address results in a hard bounce.

*/ inline const Aws::Vector& GetSuppressedReasons() const{ return m_suppressedReasons; } /** *

A list that contains the reasons that email addresses will be automatically * added to the suppression list for your account. This list can contain any or all * of the following:

  • COMPLAINT – Amazon SES adds an * email address to the suppression list for your account when a message sent to * that address results in a complaint.

  • BOUNCE – * Amazon SES adds an email address to the suppression list for your account when a * message sent to that address results in a hard bounce.

*/ inline bool SuppressedReasonsHasBeenSet() const { return m_suppressedReasonsHasBeenSet; } /** *

A list that contains the reasons that email addresses will be automatically * added to the suppression list for your account. This list can contain any or all * of the following:

  • COMPLAINT – Amazon SES adds an * email address to the suppression list for your account when a message sent to * that address results in a complaint.

  • BOUNCE – * Amazon SES adds an email address to the suppression list for your account when a * message sent to that address results in a hard bounce.

*/ inline void SetSuppressedReasons(const Aws::Vector& value) { m_suppressedReasonsHasBeenSet = true; m_suppressedReasons = value; } /** *

A list that contains the reasons that email addresses will be automatically * added to the suppression list for your account. This list can contain any or all * of the following:

  • COMPLAINT – Amazon SES adds an * email address to the suppression list for your account when a message sent to * that address results in a complaint.

  • BOUNCE – * Amazon SES adds an email address to the suppression list for your account when a * message sent to that address results in a hard bounce.

*/ inline void SetSuppressedReasons(Aws::Vector&& value) { m_suppressedReasonsHasBeenSet = true; m_suppressedReasons = std::move(value); } /** *

A list that contains the reasons that email addresses will be automatically * added to the suppression list for your account. This list can contain any or all * of the following:

  • COMPLAINT – Amazon SES adds an * email address to the suppression list for your account when a message sent to * that address results in a complaint.

  • BOUNCE – * Amazon SES adds an email address to the suppression list for your account when a * message sent to that address results in a hard bounce.

*/ inline SuppressionAttributes& WithSuppressedReasons(const Aws::Vector& value) { SetSuppressedReasons(value); return *this;} /** *

A list that contains the reasons that email addresses will be automatically * added to the suppression list for your account. This list can contain any or all * of the following:

  • COMPLAINT – Amazon SES adds an * email address to the suppression list for your account when a message sent to * that address results in a complaint.

  • BOUNCE – * Amazon SES adds an email address to the suppression list for your account when a * message sent to that address results in a hard bounce.

*/ inline SuppressionAttributes& WithSuppressedReasons(Aws::Vector&& value) { SetSuppressedReasons(std::move(value)); return *this;} /** *

A list that contains the reasons that email addresses will be automatically * added to the suppression list for your account. This list can contain any or all * of the following:

  • COMPLAINT – Amazon SES adds an * email address to the suppression list for your account when a message sent to * that address results in a complaint.

  • BOUNCE – * Amazon SES adds an email address to the suppression list for your account when a * message sent to that address results in a hard bounce.

*/ inline SuppressionAttributes& AddSuppressedReasons(const SuppressionListReason& value) { m_suppressedReasonsHasBeenSet = true; m_suppressedReasons.push_back(value); return *this; } /** *

A list that contains the reasons that email addresses will be automatically * added to the suppression list for your account. This list can contain any or all * of the following:

  • COMPLAINT – Amazon SES adds an * email address to the suppression list for your account when a message sent to * that address results in a complaint.

  • BOUNCE – * Amazon SES adds an email address to the suppression list for your account when a * message sent to that address results in a hard bounce.

*/ inline SuppressionAttributes& AddSuppressedReasons(SuppressionListReason&& value) { m_suppressedReasonsHasBeenSet = true; m_suppressedReasons.push_back(std::move(value)); return *this; } private: Aws::Vector m_suppressedReasons; bool m_suppressedReasonsHasBeenSet = false; }; } // namespace Model } // namespace SESV2 } // namespace Aws