AWS SDK for C++

AWS SDK for C++ Version 1.11.935

Loading...
Searching...
No Matches
PutTenantSuppressionAttributesRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/sesv2/SESV2Request.h>
10#include <aws/sesv2/SESV2_EXPORTS.h>
11#include <aws/sesv2/model/SuppressionListReason.h>
12#include <aws/sesv2/model/SuppressionListScope.h>
13
14#include <utility>
15
16namespace Aws {
17namespace SESV2 {
18namespace Model {
19
27 public:
28 AWS_SESV2_API PutTenantSuppressionAttributesRequest() = default;
29
30 // Service request name is the Operation name which will send this request out,
31 // each operation should has unique request name, so that we can get operation's name from this request.
32 // Note: this is not true for response, multiple operations may have the same response name,
33 // so we can not get operation's name from response.
34 inline virtual const char* GetServiceRequestName() const override { return "PutTenantSuppressionAttributes"; }
35
36 AWS_SESV2_API Aws::String SerializePayload() const override;
37
39
42 inline const Aws::String& GetTenantName() const { return m_tenantName; }
43 inline bool TenantNameHasBeenSet() const { return m_tenantNameHasBeenSet; }
44 template <typename TenantNameT = Aws::String>
45 void SetTenantName(TenantNameT&& value) {
46 m_tenantNameHasBeenSet = true;
47 m_tenantName = std::forward<TenantNameT>(value);
48 }
49 template <typename TenantNameT = Aws::String>
51 SetTenantName(std::forward<TenantNameT>(value));
52 return *this;
53 }
55
57
66 inline const Aws::Vector<SuppressionListReason>& GetSuppressedReasons() const { return m_suppressedReasons; }
67 inline bool SuppressedReasonsHasBeenSet() const { return m_suppressedReasonsHasBeenSet; }
68 template <typename SuppressedReasonsT = Aws::Vector<SuppressionListReason>>
69 void SetSuppressedReasons(SuppressedReasonsT&& value) {
70 m_suppressedReasonsHasBeenSet = true;
71 m_suppressedReasons = std::forward<SuppressedReasonsT>(value);
72 }
73 template <typename SuppressedReasonsT = Aws::Vector<SuppressionListReason>>
75 SetSuppressedReasons(std::forward<SuppressedReasonsT>(value));
76 return *this;
77 }
79 m_suppressedReasonsHasBeenSet = true;
80 m_suppressedReasons.push_back(value);
81 return *this;
82 }
84
86
93 inline SuppressionListScope GetSuppressionScope() const { return m_suppressionScope; }
94 inline bool SuppressionScopeHasBeenSet() const { return m_suppressionScopeHasBeenSet; }
96 m_suppressionScopeHasBeenSet = true;
97 m_suppressionScope = value;
98 }
104 private:
105 Aws::String m_tenantName;
106
107 Aws::Vector<SuppressionListReason> m_suppressedReasons;
108
110 bool m_tenantNameHasBeenSet = false;
111 bool m_suppressedReasonsHasBeenSet = false;
112 bool m_suppressionScopeHasBeenSet = false;
113};
114
115} // namespace Model
116} // namespace SESV2
117} // namespace Aws
PutTenantSuppressionAttributesRequest & AddSuppressedReasons(SuppressionListReason value)
const Aws::Vector< SuppressionListReason > & GetSuppressedReasons() const
PutTenantSuppressionAttributesRequest & WithSuppressedReasons(SuppressedReasonsT &&value)
PutTenantSuppressionAttributesRequest & WithSuppressionScope(SuppressionListScope value)
AWS_SESV2_API Aws::String SerializePayload() const override
PutTenantSuppressionAttributesRequest & WithTenantName(TenantNameT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector