AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
SuppressedDestination.h
1
6#pragma once
7#include <aws/sesv2/SESV2_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/sesv2/model/SuppressionListReason.h>
10#include <aws/core/utils/DateTime.h>
11#include <aws/sesv2/model/SuppressedDestinationAttributes.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21 class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace SESV2
25{
26namespace Model
27{
28
36 {
37 public:
38 AWS_SESV2_API SuppressedDestination();
41 AWS_SESV2_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
48 inline const Aws::String& GetEmailAddress() const{ return m_emailAddress; }
49 inline bool EmailAddressHasBeenSet() const { return m_emailAddressHasBeenSet; }
50 inline void SetEmailAddress(const Aws::String& value) { m_emailAddressHasBeenSet = true; m_emailAddress = value; }
51 inline void SetEmailAddress(Aws::String&& value) { m_emailAddressHasBeenSet = true; m_emailAddress = std::move(value); }
52 inline void SetEmailAddress(const char* value) { m_emailAddressHasBeenSet = true; m_emailAddress.assign(value); }
53 inline SuppressedDestination& WithEmailAddress(const Aws::String& value) { SetEmailAddress(value); return *this;}
54 inline SuppressedDestination& WithEmailAddress(Aws::String&& value) { SetEmailAddress(std::move(value)); return *this;}
55 inline SuppressedDestination& WithEmailAddress(const char* value) { SetEmailAddress(value); return *this;}
57
59
63 inline const SuppressionListReason& GetReason() const{ return m_reason; }
64 inline bool ReasonHasBeenSet() const { return m_reasonHasBeenSet; }
65 inline void SetReason(const SuppressionListReason& value) { m_reasonHasBeenSet = true; m_reason = value; }
66 inline void SetReason(SuppressionListReason&& value) { m_reasonHasBeenSet = true; m_reason = std::move(value); }
67 inline SuppressedDestination& WithReason(const SuppressionListReason& value) { SetReason(value); return *this;}
68 inline SuppressedDestination& WithReason(SuppressionListReason&& value) { SetReason(std::move(value)); return *this;}
70
72
76 inline const Aws::Utils::DateTime& GetLastUpdateTime() const{ return m_lastUpdateTime; }
77 inline bool LastUpdateTimeHasBeenSet() const { return m_lastUpdateTimeHasBeenSet; }
78 inline void SetLastUpdateTime(const Aws::Utils::DateTime& value) { m_lastUpdateTimeHasBeenSet = true; m_lastUpdateTime = value; }
79 inline void SetLastUpdateTime(Aws::Utils::DateTime&& value) { m_lastUpdateTimeHasBeenSet = true; m_lastUpdateTime = std::move(value); }
81 inline SuppressedDestination& WithLastUpdateTime(Aws::Utils::DateTime&& value) { SetLastUpdateTime(std::move(value)); return *this;}
83
85
89 inline const SuppressedDestinationAttributes& GetAttributes() const{ return m_attributes; }
90 inline bool AttributesHasBeenSet() const { return m_attributesHasBeenSet; }
91 inline void SetAttributes(const SuppressedDestinationAttributes& value) { m_attributesHasBeenSet = true; m_attributes = value; }
92 inline void SetAttributes(SuppressedDestinationAttributes&& value) { m_attributesHasBeenSet = true; m_attributes = std::move(value); }
94 inline SuppressedDestination& WithAttributes(SuppressedDestinationAttributes&& value) { SetAttributes(std::move(value)); return *this;}
96 private:
97
98 Aws::String m_emailAddress;
99 bool m_emailAddressHasBeenSet = false;
100
101 SuppressionListReason m_reason;
102 bool m_reasonHasBeenSet = false;
103
104 Aws::Utils::DateTime m_lastUpdateTime;
105 bool m_lastUpdateTimeHasBeenSet = false;
106
108 bool m_attributesHasBeenSet = false;
109 };
110
111} // namespace Model
112} // namespace SESV2
113} // namespace Aws
SuppressedDestination & WithEmailAddress(Aws::String &&value)
const Aws::Utils::DateTime & GetLastUpdateTime() const
AWS_SESV2_API SuppressedDestination(Aws::Utils::Json::JsonView jsonValue)
SuppressedDestination & WithEmailAddress(const Aws::String &value)
SuppressedDestination & WithEmailAddress(const char *value)
const SuppressedDestinationAttributes & GetAttributes() const
const SuppressionListReason & GetReason() const
SuppressedDestination & WithAttributes(const SuppressedDestinationAttributes &value)
SuppressedDestination & WithLastUpdateTime(const Aws::Utils::DateTime &value)
void SetAttributes(const SuppressedDestinationAttributes &value)
SuppressedDestination & WithLastUpdateTime(Aws::Utils::DateTime &&value)
AWS_SESV2_API Aws::Utils::Json::JsonValue Jsonize() const
void SetReason(const SuppressionListReason &value)
SuppressedDestination & WithAttributes(SuppressedDestinationAttributes &&value)
void SetReason(SuppressionListReason &&value)
void SetLastUpdateTime(const Aws::Utils::DateTime &value)
SuppressedDestination & WithReason(SuppressionListReason &&value)
void SetAttributes(SuppressedDestinationAttributes &&value)
void SetLastUpdateTime(Aws::Utils::DateTime &&value)
void SetEmailAddress(const Aws::String &value)
AWS_SESV2_API SuppressedDestination & operator=(Aws::Utils::Json::JsonView jsonValue)
SuppressedDestination & WithReason(const SuppressionListReason &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue