AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
PutAccountSuppressionAttributesRequest.h
1
6#pragma once
7#include <aws/sesv2/SESV2_EXPORTS.h>
8#include <aws/sesv2/SESV2Request.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/sesv2/model/SuppressionListReason.h>
11#include <utility>
12
13namespace Aws
14{
15namespace SESV2
16{
17namespace Model
18{
19
27 {
28 public:
30
31 // Service request name is the Operation name which will send this request out,
32 // each operation should has unique request name, so that we can get operation's name from this request.
33 // Note: this is not true for response, multiple operations may have the same response name,
34 // so we can not get operation's name from response.
35 inline virtual const char* GetServiceRequestName() const override { return "PutAccountSuppressionAttributes"; }
36
37 AWS_SESV2_API Aws::String SerializePayload() const override;
38
39
41
50 inline const Aws::Vector<SuppressionListReason>& GetSuppressedReasons() const{ return m_suppressedReasons; }
51 inline bool SuppressedReasonsHasBeenSet() const { return m_suppressedReasonsHasBeenSet; }
52 inline void SetSuppressedReasons(const Aws::Vector<SuppressionListReason>& value) { m_suppressedReasonsHasBeenSet = true; m_suppressedReasons = value; }
53 inline void SetSuppressedReasons(Aws::Vector<SuppressionListReason>&& value) { m_suppressedReasonsHasBeenSet = true; m_suppressedReasons = std::move(value); }
56 inline PutAccountSuppressionAttributesRequest& AddSuppressedReasons(const SuppressionListReason& value) { m_suppressedReasonsHasBeenSet = true; m_suppressedReasons.push_back(value); return *this; }
57 inline PutAccountSuppressionAttributesRequest& AddSuppressedReasons(SuppressionListReason&& value) { m_suppressedReasonsHasBeenSet = true; m_suppressedReasons.push_back(std::move(value)); return *this; }
59 private:
60
61 Aws::Vector<SuppressionListReason> m_suppressedReasons;
62 bool m_suppressedReasonsHasBeenSet = false;
63 };
64
65} // namespace Model
66} // namespace SESV2
67} // namespace Aws
PutAccountSuppressionAttributesRequest & AddSuppressedReasons(const SuppressionListReason &value)
const Aws::Vector< SuppressionListReason > & GetSuppressedReasons() const
void SetSuppressedReasons(Aws::Vector< SuppressionListReason > &&value)
PutAccountSuppressionAttributesRequest & WithSuppressedReasons(const Aws::Vector< SuppressionListReason > &value)
void SetSuppressedReasons(const Aws::Vector< SuppressionListReason > &value)
PutAccountSuppressionAttributesRequest & WithSuppressedReasons(Aws::Vector< SuppressionListReason > &&value)
PutAccountSuppressionAttributesRequest & AddSuppressedReasons(SuppressionListReason &&value)
AWS_SESV2_API Aws::String SerializePayload() const override
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector