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

A request to change the account suppression list preferences for a specific * configuration set.

See Also:

AWS * API Reference

*/ class PutConfigurationSetSuppressionOptionsRequest : public SESV2Request { public: AWS_SESV2_API PutConfigurationSetSuppressionOptionsRequest(); // 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 "PutConfigurationSetSuppressionOptions"; } AWS_SESV2_API Aws::String SerializePayload() const override; /** *

The name of the configuration set to change the suppression list preferences * for.

*/ inline const Aws::String& GetConfigurationSetName() const{ return m_configurationSetName; } /** *

The name of the configuration set to change the suppression list preferences * for.

*/ inline bool ConfigurationSetNameHasBeenSet() const { return m_configurationSetNameHasBeenSet; } /** *

The name of the configuration set to change the suppression list preferences * for.

*/ inline void SetConfigurationSetName(const Aws::String& value) { m_configurationSetNameHasBeenSet = true; m_configurationSetName = value; } /** *

The name of the configuration set to change the suppression list preferences * for.

*/ inline void SetConfigurationSetName(Aws::String&& value) { m_configurationSetNameHasBeenSet = true; m_configurationSetName = std::move(value); } /** *

The name of the configuration set to change the suppression list preferences * for.

*/ inline void SetConfigurationSetName(const char* value) { m_configurationSetNameHasBeenSet = true; m_configurationSetName.assign(value); } /** *

The name of the configuration set to change the suppression list preferences * for.

*/ inline PutConfigurationSetSuppressionOptionsRequest& WithConfigurationSetName(const Aws::String& value) { SetConfigurationSetName(value); return *this;} /** *

The name of the configuration set to change the suppression list preferences * for.

*/ inline PutConfigurationSetSuppressionOptionsRequest& WithConfigurationSetName(Aws::String&& value) { SetConfigurationSetName(std::move(value)); return *this;} /** *

The name of the configuration set to change the suppression list preferences * for.

*/ inline PutConfigurationSetSuppressionOptionsRequest& WithConfigurationSetName(const char* value) { SetConfigurationSetName(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 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 PutConfigurationSetSuppressionOptionsRequest& 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 PutConfigurationSetSuppressionOptionsRequest& 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 PutConfigurationSetSuppressionOptionsRequest& 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 PutConfigurationSetSuppressionOptionsRequest& AddSuppressedReasons(SuppressionListReason&& value) { m_suppressedReasonsHasBeenSet = true; m_suppressedReasons.push_back(std::move(value)); return *this; } private: Aws::String m_configurationSetName; bool m_configurationSetNameHasBeenSet = false; Aws::Vector m_suppressedReasons; bool m_suppressedReasonsHasBeenSet = false; }; } // namespace Model } // namespace SESV2 } // namespace Aws