AWS SDK for C++

AWS SDK for C++ Version 1.11.935

Loading...
Searching...
No Matches
PutSuppressedDestinationRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/sesv2/SESV2Request.h>
9#include <aws/sesv2/SESV2_EXPORTS.h>
10#include <aws/sesv2/model/SuppressionListReason.h>
11
12#include <utility>
13
14namespace Aws {
15namespace SESV2 {
16namespace Model {
17
25 public:
26 AWS_SESV2_API PutSuppressedDestinationRequest() = default;
27
28 // Service request name is the Operation name which will send this request out,
29 // each operation should has unique request name, so that we can get operation's name from this request.
30 // Note: this is not true for response, multiple operations may have the same response name,
31 // so we can not get operation's name from response.
32 inline virtual const char* GetServiceRequestName() const override { return "PutSuppressedDestination"; }
33
34 AWS_SESV2_API Aws::String SerializePayload() const override;
35
37
41 inline const Aws::String& GetEmailAddress() const { return m_emailAddress; }
42 inline bool EmailAddressHasBeenSet() const { return m_emailAddressHasBeenSet; }
43 template <typename EmailAddressT = Aws::String>
44 void SetEmailAddress(EmailAddressT&& value) {
45 m_emailAddressHasBeenSet = true;
46 m_emailAddress = std::forward<EmailAddressT>(value);
47 }
48 template <typename EmailAddressT = Aws::String>
50 SetEmailAddress(std::forward<EmailAddressT>(value));
51 return *this;
52 }
54
56
60 inline SuppressionListReason GetReason() const { return m_reason; }
61 inline bool ReasonHasBeenSet() const { return m_reasonHasBeenSet; }
62 inline void SetReason(SuppressionListReason value) {
63 m_reasonHasBeenSet = true;
64 m_reason = value;
65 }
67 SetReason(value);
68 return *this;
69 }
71
73
78 inline const Aws::String& GetTenantName() const { return m_tenantName; }
79 inline bool TenantNameHasBeenSet() const { return m_tenantNameHasBeenSet; }
80 template <typename TenantNameT = Aws::String>
81 void SetTenantName(TenantNameT&& value) {
82 m_tenantNameHasBeenSet = true;
83 m_tenantName = std::forward<TenantNameT>(value);
84 }
85 template <typename TenantNameT = Aws::String>
87 SetTenantName(std::forward<TenantNameT>(value));
88 return *this;
89 }
91 private:
92 Aws::String m_emailAddress;
93
95
96 Aws::String m_tenantName;
97 bool m_emailAddressHasBeenSet = false;
98 bool m_reasonHasBeenSet = false;
99 bool m_tenantNameHasBeenSet = false;
100};
101
102} // namespace Model
103} // namespace SESV2
104} // namespace Aws
AWS_SESV2_API Aws::String SerializePayload() const override
PutSuppressedDestinationRequest & WithTenantName(TenantNameT &&value)
PutSuppressedDestinationRequest & WithEmailAddress(EmailAddressT &&value)
PutSuppressedDestinationRequest & WithReason(SuppressionListReason value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String