/** * 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 suppression list preferences * for your account.

See Also:

AWS * API Reference

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

A list that contains the reasons that email addresses are 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 are 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 are 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 are 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 are 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 SuppressionOptions& WithSuppressedReasons(const Aws::Vector& value) { SetSuppressedReasons(value); return *this;} /** *

A list that contains the reasons that email addresses are 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 SuppressionOptions& WithSuppressedReasons(Aws::Vector&& value) { SetSuppressedReasons(std::move(value)); return *this;} /** *

A list that contains the reasons that email addresses are 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 SuppressionOptions& AddSuppressedReasons(const SuppressionListReason& value) { m_suppressedReasonsHasBeenSet = true; m_suppressedReasons.push_back(value); return *this; } /** *

A list that contains the reasons that email addresses are 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 SuppressionOptions& 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