/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include namespace Aws { namespace SESV2 { namespace Model { /** *

A request to change your account's suppression preferences.

See * Also:

AWS * API Reference

*/ class PutAccountSuppressionAttributesRequest : public SESV2Request { public: AWS_SESV2_API PutAccountSuppressionAttributesRequest(); // Service request name is the Operation name which will send this request out, // each operation should has unique request name, so that we can get operation's name from this request. // Note: this is not true for response, multiple operations may have the same response name, // so we can not get operation's name from response. inline virtual const char* GetServiceRequestName() const override { return "PutAccountSuppressionAttributes"; } AWS_SESV2_API Aws::String SerializePayload() const override; /** *

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 PutAccountSuppressionAttributesRequest& 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 PutAccountSuppressionAttributesRequest& 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 PutAccountSuppressionAttributesRequest& 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 PutAccountSuppressionAttributesRequest& 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