AWS SDK for C++

AWS SDK for C++ Version 1.11.935

Loading...
Searching...
No Matches
SuppressedDestination.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/sesv2/SESV2_EXPORTS.h>
10#include <aws/sesv2/model/SuppressedDestinationAttributes.h>
11#include <aws/sesv2/model/SuppressionListReason.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace SESV2 {
23namespace Model {
24
33 public:
34 AWS_SESV2_API SuppressedDestination() = default;
37 AWS_SESV2_API Aws::Utils::Json::JsonValue Jsonize() const;
38
40
44 inline const Aws::String& GetEmailAddress() const { return m_emailAddress; }
45 inline bool EmailAddressHasBeenSet() const { return m_emailAddressHasBeenSet; }
46 template <typename EmailAddressT = Aws::String>
47 void SetEmailAddress(EmailAddressT&& value) {
48 m_emailAddressHasBeenSet = true;
49 m_emailAddress = std::forward<EmailAddressT>(value);
50 }
51 template <typename EmailAddressT = Aws::String>
52 SuppressedDestination& WithEmailAddress(EmailAddressT&& value) {
53 SetEmailAddress(std::forward<EmailAddressT>(value));
54 return *this;
55 }
57
59
63 inline SuppressionListReason GetReason() const { return m_reason; }
64 inline bool ReasonHasBeenSet() const { return m_reasonHasBeenSet; }
65 inline void SetReason(SuppressionListReason value) {
66 m_reasonHasBeenSet = true;
67 m_reason = value;
68 }
70 SetReason(value);
71 return *this;
72 }
74
76
80 inline const Aws::Utils::DateTime& GetLastUpdateTime() const { return m_lastUpdateTime; }
81 inline bool LastUpdateTimeHasBeenSet() const { return m_lastUpdateTimeHasBeenSet; }
82 template <typename LastUpdateTimeT = Aws::Utils::DateTime>
83 void SetLastUpdateTime(LastUpdateTimeT&& value) {
84 m_lastUpdateTimeHasBeenSet = true;
85 m_lastUpdateTime = std::forward<LastUpdateTimeT>(value);
86 }
87 template <typename LastUpdateTimeT = Aws::Utils::DateTime>
88 SuppressedDestination& WithLastUpdateTime(LastUpdateTimeT&& value) {
89 SetLastUpdateTime(std::forward<LastUpdateTimeT>(value));
90 return *this;
91 }
93
95
100 inline const SuppressedDestinationAttributes& GetAttributes() const { return m_attributes; }
101 inline bool AttributesHasBeenSet() const { return m_attributesHasBeenSet; }
102 template <typename AttributesT = SuppressedDestinationAttributes>
103 void SetAttributes(AttributesT&& value) {
104 m_attributesHasBeenSet = true;
105 m_attributes = std::forward<AttributesT>(value);
106 }
107 template <typename AttributesT = SuppressedDestinationAttributes>
108 SuppressedDestination& WithAttributes(AttributesT&& value) {
109 SetAttributes(std::forward<AttributesT>(value));
110 return *this;
111 }
113
115
120 inline const Aws::String& GetTenantName() const { return m_tenantName; }
121 inline bool TenantNameHasBeenSet() const { return m_tenantNameHasBeenSet; }
122 template <typename TenantNameT = Aws::String>
123 void SetTenantName(TenantNameT&& value) {
124 m_tenantNameHasBeenSet = true;
125 m_tenantName = std::forward<TenantNameT>(value);
126 }
127 template <typename TenantNameT = Aws::String>
128 SuppressedDestination& WithTenantName(TenantNameT&& value) {
129 SetTenantName(std::forward<TenantNameT>(value));
130 return *this;
131 }
133 private:
134 Aws::String m_emailAddress;
135
137
138 Aws::Utils::DateTime m_lastUpdateTime{};
139
140 SuppressedDestinationAttributes m_attributes;
141
142 Aws::String m_tenantName;
143 bool m_emailAddressHasBeenSet = false;
144 bool m_reasonHasBeenSet = false;
145 bool m_lastUpdateTimeHasBeenSet = false;
146 bool m_attributesHasBeenSet = false;
147 bool m_tenantNameHasBeenSet = false;
148};
149
150} // namespace Model
151} // namespace SESV2
152} // namespace Aws
const Aws::Utils::DateTime & GetLastUpdateTime() const
AWS_SESV2_API SuppressedDestination(Aws::Utils::Json::JsonView jsonValue)
SuppressedDestination & WithAttributes(AttributesT &&value)
SuppressedDestination & WithReason(SuppressionListReason value)
const SuppressedDestinationAttributes & GetAttributes() const
void SetLastUpdateTime(LastUpdateTimeT &&value)
AWS_SESV2_API Aws::Utils::Json::JsonValue Jsonize() const
SuppressedDestination & WithEmailAddress(EmailAddressT &&value)
AWS_SESV2_API SuppressedDestination()=default
SuppressedDestination & WithLastUpdateTime(LastUpdateTimeT &&value)
SuppressedDestination & WithTenantName(TenantNameT &&value)
void SetReason(SuppressionListReason value)
AWS_SESV2_API SuppressedDestination & operator=(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue