This repository has been archived on 2025-09-14. You can view files and clone it, but cannot push or open issues or pull requests.
Files
pxz-hos-client-cpp-module/support/aws-sdk-cpp-master/aws-cpp-sdk-sesv2/include/aws/sesv2/model/PutAccountSuppressionAttributesRequest.h

137 lines
7.5 KiB
C
Raw Normal View History

/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/sesv2/SESV2_EXPORTS.h>
#include <aws/sesv2/SESV2Request.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/sesv2/model/SuppressionListReason.h>
#include <utility>
namespace Aws
{
namespace SESV2
{
namespace Model
{
/**
* <p>A request to change your account's suppression preferences.</p><p><h3>See
* Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/sesv2-2019-09-27/PutAccountSuppressionAttributesRequest">AWS
* API Reference</a></p>
*/
class AWS_SESV2_API PutAccountSuppressionAttributesRequest : public SESV2Request
{
public:
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::String SerializePayload() const override;
/**
* <p>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:</p> <ul> <li> <p> <code>COMPLAINT</code> Amazon SES adds an
* email address to the suppression list for your account when a message sent to
* that address results in a complaint.</p> </li> <li> <p> <code>BOUNCE</code>
* 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.</p> </li> </ul>
*/
inline const Aws::Vector<SuppressionListReason>& GetSuppressedReasons() const{ return m_suppressedReasons; }
/**
* <p>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:</p> <ul> <li> <p> <code>COMPLAINT</code> Amazon SES adds an
* email address to the suppression list for your account when a message sent to
* that address results in a complaint.</p> </li> <li> <p> <code>BOUNCE</code>
* 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.</p> </li> </ul>
*/
inline bool SuppressedReasonsHasBeenSet() const { return m_suppressedReasonsHasBeenSet; }
/**
* <p>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:</p> <ul> <li> <p> <code>COMPLAINT</code> Amazon SES adds an
* email address to the suppression list for your account when a message sent to
* that address results in a complaint.</p> </li> <li> <p> <code>BOUNCE</code>
* 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.</p> </li> </ul>
*/
inline void SetSuppressedReasons(const Aws::Vector<SuppressionListReason>& value) { m_suppressedReasonsHasBeenSet = true; m_suppressedReasons = value; }
/**
* <p>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:</p> <ul> <li> <p> <code>COMPLAINT</code> Amazon SES adds an
* email address to the suppression list for your account when a message sent to
* that address results in a complaint.</p> </li> <li> <p> <code>BOUNCE</code>
* 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.</p> </li> </ul>
*/
inline void SetSuppressedReasons(Aws::Vector<SuppressionListReason>&& value) { m_suppressedReasonsHasBeenSet = true; m_suppressedReasons = std::move(value); }
/**
* <p>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:</p> <ul> <li> <p> <code>COMPLAINT</code> Amazon SES adds an
* email address to the suppression list for your account when a message sent to
* that address results in a complaint.</p> </li> <li> <p> <code>BOUNCE</code>
* 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.</p> </li> </ul>
*/
inline PutAccountSuppressionAttributesRequest& WithSuppressedReasons(const Aws::Vector<SuppressionListReason>& value) { SetSuppressedReasons(value); return *this;}
/**
* <p>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:</p> <ul> <li> <p> <code>COMPLAINT</code> Amazon SES adds an
* email address to the suppression list for your account when a message sent to
* that address results in a complaint.</p> </li> <li> <p> <code>BOUNCE</code>
* 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.</p> </li> </ul>
*/
inline PutAccountSuppressionAttributesRequest& WithSuppressedReasons(Aws::Vector<SuppressionListReason>&& value) { SetSuppressedReasons(std::move(value)); return *this;}
/**
* <p>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:</p> <ul> <li> <p> <code>COMPLAINT</code> Amazon SES adds an
* email address to the suppression list for your account when a message sent to
* that address results in a complaint.</p> </li> <li> <p> <code>BOUNCE</code>
* 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.</p> </li> </ul>
*/
inline PutAccountSuppressionAttributesRequest& AddSuppressedReasons(const SuppressionListReason& value) { m_suppressedReasonsHasBeenSet = true; m_suppressedReasons.push_back(value); return *this; }
/**
* <p>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:</p> <ul> <li> <p> <code>COMPLAINT</code> Amazon SES adds an
* email address to the suppression list for your account when a message sent to
* that address results in a complaint.</p> </li> <li> <p> <code>BOUNCE</code>
* 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.</p> </li> </ul>
*/
inline PutAccountSuppressionAttributesRequest& AddSuppressedReasons(SuppressionListReason&& value) { m_suppressedReasonsHasBeenSet = true; m_suppressedReasons.push_back(std::move(value)); return *this; }
private:
Aws::Vector<SuppressionListReason> m_suppressedReasons;
bool m_suppressedReasonsHasBeenSet;
};
} // namespace Model
} // namespace SESV2
} // namespace Aws