AWS SDK for C++

AWS SDK for C++ Version 1.11.935

Loading...
Searching...
No Matches
SuppressedDestinationSummary.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/SuppressionListReason.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace SESV2 {
22namespace Model {
23
31 public:
32 AWS_SESV2_API SuppressedDestinationSummary() = default;
35 AWS_SESV2_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
42 inline const Aws::String& GetEmailAddress() const { return m_emailAddress; }
43 inline bool EmailAddressHasBeenSet() const { return m_emailAddressHasBeenSet; }
44 template <typename EmailAddressT = Aws::String>
45 void SetEmailAddress(EmailAddressT&& value) {
46 m_emailAddressHasBeenSet = true;
47 m_emailAddress = std::forward<EmailAddressT>(value);
48 }
49 template <typename EmailAddressT = Aws::String>
51 SetEmailAddress(std::forward<EmailAddressT>(value));
52 return *this;
53 }
55
57
61 inline SuppressionListReason GetReason() const { return m_reason; }
62 inline bool ReasonHasBeenSet() const { return m_reasonHasBeenSet; }
63 inline void SetReason(SuppressionListReason value) {
64 m_reasonHasBeenSet = true;
65 m_reason = value;
66 }
68 SetReason(value);
69 return *this;
70 }
72
74
78 inline const Aws::Utils::DateTime& GetLastUpdateTime() const { return m_lastUpdateTime; }
79 inline bool LastUpdateTimeHasBeenSet() const { return m_lastUpdateTimeHasBeenSet; }
80 template <typename LastUpdateTimeT = Aws::Utils::DateTime>
81 void SetLastUpdateTime(LastUpdateTimeT&& value) {
82 m_lastUpdateTimeHasBeenSet = true;
83 m_lastUpdateTime = std::forward<LastUpdateTimeT>(value);
84 }
85 template <typename LastUpdateTimeT = Aws::Utils::DateTime>
87 SetLastUpdateTime(std::forward<LastUpdateTimeT>(value));
88 return *this;
89 }
91 private:
92 Aws::String m_emailAddress;
93
95
96 Aws::Utils::DateTime m_lastUpdateTime{};
97 bool m_emailAddressHasBeenSet = false;
98 bool m_reasonHasBeenSet = false;
99 bool m_lastUpdateTimeHasBeenSet = false;
100};
101
102} // namespace Model
103} // namespace SESV2
104} // namespace Aws
SuppressedDestinationSummary & WithReason(SuppressionListReason value)
AWS_SESV2_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_SESV2_API SuppressedDestinationSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_SESV2_API SuppressedDestinationSummary(Aws::Utils::Json::JsonView jsonValue)
AWS_SESV2_API SuppressedDestinationSummary()=default
SuppressedDestinationSummary & WithEmailAddress(EmailAddressT &&value)
SuppressedDestinationSummary & WithLastUpdateTime(LastUpdateTimeT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue