AWS SDK for C++  1.9.159
AWS SDK for C++
SuppressedDestination.h
Go to the documentation of this file.
1 
6 #pragma once
12 #include <utility>
13 
14 namespace Aws
15 {
16 namespace Utils
17 {
18 namespace Json
19 {
20  class JsonValue;
21  class JsonView;
22 } // namespace Json
23 } // namespace Utils
24 namespace SESV2
25 {
26 namespace Model
27 {
28 
36  {
37  public:
42 
43 
47  inline const Aws::String& GetEmailAddress() const{ return m_emailAddress; }
48 
52  inline bool EmailAddressHasBeenSet() const { return m_emailAddressHasBeenSet; }
53 
57  inline void SetEmailAddress(const Aws::String& value) { m_emailAddressHasBeenSet = true; m_emailAddress = value; }
58 
62  inline void SetEmailAddress(Aws::String&& value) { m_emailAddressHasBeenSet = true; m_emailAddress = std::move(value); }
63 
67  inline void SetEmailAddress(const char* value) { m_emailAddressHasBeenSet = true; m_emailAddress.assign(value); }
68 
72  inline SuppressedDestination& WithEmailAddress(const Aws::String& value) { SetEmailAddress(value); return *this;}
73 
77  inline SuppressedDestination& WithEmailAddress(Aws::String&& value) { SetEmailAddress(std::move(value)); return *this;}
78 
82  inline SuppressedDestination& WithEmailAddress(const char* value) { SetEmailAddress(value); return *this;}
83 
84 
89  inline const SuppressionListReason& GetReason() const{ return m_reason; }
90 
95  inline bool ReasonHasBeenSet() const { return m_reasonHasBeenSet; }
96 
101  inline void SetReason(const SuppressionListReason& value) { m_reasonHasBeenSet = true; m_reason = value; }
102 
107  inline void SetReason(SuppressionListReason&& value) { m_reasonHasBeenSet = true; m_reason = std::move(value); }
108 
113  inline SuppressedDestination& WithReason(const SuppressionListReason& value) { SetReason(value); return *this;}
114 
119  inline SuppressedDestination& WithReason(SuppressionListReason&& value) { SetReason(std::move(value)); return *this;}
120 
121 
126  inline const Aws::Utils::DateTime& GetLastUpdateTime() const{ return m_lastUpdateTime; }
127 
132  inline bool LastUpdateTimeHasBeenSet() const { return m_lastUpdateTimeHasBeenSet; }
133 
138  inline void SetLastUpdateTime(const Aws::Utils::DateTime& value) { m_lastUpdateTimeHasBeenSet = true; m_lastUpdateTime = value; }
139 
144  inline void SetLastUpdateTime(Aws::Utils::DateTime&& value) { m_lastUpdateTimeHasBeenSet = true; m_lastUpdateTime = std::move(value); }
145 
150  inline SuppressedDestination& WithLastUpdateTime(const Aws::Utils::DateTime& value) { SetLastUpdateTime(value); return *this;}
151 
156  inline SuppressedDestination& WithLastUpdateTime(Aws::Utils::DateTime&& value) { SetLastUpdateTime(std::move(value)); return *this;}
157 
158 
163  inline const SuppressedDestinationAttributes& GetAttributes() const{ return m_attributes; }
164 
169  inline bool AttributesHasBeenSet() const { return m_attributesHasBeenSet; }
170 
175  inline void SetAttributes(const SuppressedDestinationAttributes& value) { m_attributesHasBeenSet = true; m_attributes = value; }
176 
181  inline void SetAttributes(SuppressedDestinationAttributes&& value) { m_attributesHasBeenSet = true; m_attributes = std::move(value); }
182 
187  inline SuppressedDestination& WithAttributes(const SuppressedDestinationAttributes& value) { SetAttributes(value); return *this;}
188 
193  inline SuppressedDestination& WithAttributes(SuppressedDestinationAttributes&& value) { SetAttributes(std::move(value)); return *this;}
194 
195  private:
196 
197  Aws::String m_emailAddress;
198  bool m_emailAddressHasBeenSet;
199 
200  SuppressionListReason m_reason;
201  bool m_reasonHasBeenSet;
202 
203  Aws::Utils::DateTime m_lastUpdateTime;
204  bool m_lastUpdateTimeHasBeenSet;
205 
206  SuppressedDestinationAttributes m_attributes;
207  bool m_attributesHasBeenSet;
208  };
209 
210 } // namespace Model
211 } // namespace SESV2
212 } // namespace Aws
Aws::Utils::DateTime
Definition: DateTime.h:55
Aws::SESV2::Model::SuppressedDestination::SetAttributes
void SetAttributes(SuppressedDestinationAttributes &&value)
Definition: SuppressedDestination.h:181
Aws::SESV2::Model::SuppressedDestination::SetEmailAddress
void SetEmailAddress(const char *value)
Definition: SuppressedDestination.h:67
Aws::SESV2::Model::SuppressedDestination::EmailAddressHasBeenSet
bool EmailAddressHasBeenSet() const
Definition: SuppressedDestination.h:52
Aws::SESV2::Model::SuppressedDestination::WithEmailAddress
SuppressedDestination & WithEmailAddress(Aws::String &&value)
Definition: SuppressedDestination.h:77
AWS_SESV2_API
#define AWS_SESV2_API
Definition: SESV2_EXPORTS.h:28
Aws::SESV2::Model::SuppressedDestination::LastUpdateTimeHasBeenSet
bool LastUpdateTimeHasBeenSet() const
Definition: SuppressedDestination.h:132
Aws::SESV2::Model::SuppressedDestination::WithAttributes
SuppressedDestination & WithAttributes(SuppressedDestinationAttributes &&value)
Definition: SuppressedDestination.h:193
Aws::SESV2::Model::SuppressedDestinationAttributes
Definition: SuppressedDestinationAttributes.h:34
Aws::SESV2::Model::SuppressedDestination
Definition: SuppressedDestination.h:36
Aws::SESV2::Model::SuppressedDestination::SuppressedDestination
SuppressedDestination(Aws::Utils::Json::JsonView jsonValue)
Aws::SESV2::Model::SuppressedDestination::SetReason
void SetReason(const SuppressionListReason &value)
Definition: SuppressedDestination.h:101
Aws::SESV2::Model::SuppressedDestination::SetAttributes
void SetAttributes(const SuppressedDestinationAttributes &value)
Definition: SuppressedDestination.h:175
DateTime.h
Aws::SESV2::Model::SuppressedDestination::WithLastUpdateTime
SuppressedDestination & WithLastUpdateTime(const Aws::Utils::DateTime &value)
Definition: SuppressedDestination.h:150
Aws::SESV2::Model::SuppressedDestination::SuppressedDestination
SuppressedDestination()
Aws::SESV2::Model::SuppressedDestination::GetReason
const SuppressionListReason & GetReason() const
Definition: SuppressedDestination.h:89
Aws::SESV2::Model::SuppressedDestination::SetReason
void SetReason(SuppressionListReason &&value)
Definition: SuppressedDestination.h:107
SuppressedDestinationAttributes.h
Aws::SESV2::Model::SuppressedDestination::WithLastUpdateTime
SuppressedDestination & WithLastUpdateTime(Aws::Utils::DateTime &&value)
Definition: SuppressedDestination.h:156
SuppressionListReason.h
Aws::SESV2::Model::SuppressedDestination::SetLastUpdateTime
void SetLastUpdateTime(const Aws::Utils::DateTime &value)
Definition: SuppressedDestination.h:138
Aws::SESV2::Model::SuppressedDestination::SetLastUpdateTime
void SetLastUpdateTime(Aws::Utils::DateTime &&value)
Definition: SuppressedDestination.h:144
Aws::SESV2::Model::SuppressedDestination::ReasonHasBeenSet
bool ReasonHasBeenSet() const
Definition: SuppressedDestination.h:95
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
AWSString.h
Aws::SESV2::Model::SuppressedDestination::WithReason
SuppressedDestination & WithReason(const SuppressionListReason &value)
Definition: SuppressedDestination.h:113
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::SESV2::Model::SuppressedDestination::WithReason
SuppressedDestination & WithReason(SuppressionListReason &&value)
Definition: SuppressedDestination.h:119
SESV2_EXPORTS.h
Aws::SESV2::Model::SuppressionListReason
SuppressionListReason
Definition: SuppressionListReason.h:17
Aws::SESV2::Model::SuppressedDestination::operator=
SuppressedDestination & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::MigrationHubStrategyRecommendations::Model::OutputFormat::NOT_SET
@ NOT_SET
Aws
Definition: AccessManagementClient.h:15
Aws::SESV2::Model::SuppressedDestination::GetAttributes
const SuppressedDestinationAttributes & GetAttributes() const
Definition: SuppressedDestination.h:163
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::SESV2::Model::SuppressedDestination::WithAttributes
SuppressedDestination & WithAttributes(const SuppressedDestinationAttributes &value)
Definition: SuppressedDestination.h:187
Aws::SESV2::Model::SuppressedDestination::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::SESV2::Model::SuppressedDestination::GetEmailAddress
const Aws::String & GetEmailAddress() const
Definition: SuppressedDestination.h:47
Aws::SESV2::Model::SuppressedDestination::AttributesHasBeenSet
bool AttributesHasBeenSet() const
Definition: SuppressedDestination.h:169
Aws::SESV2::Model::SuppressedDestination::WithEmailAddress
SuppressedDestination & WithEmailAddress(const Aws::String &value)
Definition: SuppressedDestination.h:72
Aws::SESV2::Model::SuppressedDestination::GetLastUpdateTime
const Aws::Utils::DateTime & GetLastUpdateTime() const
Definition: SuppressedDestination.h:126
Aws::SESV2::Model::SuppressedDestination::SetEmailAddress
void SetEmailAddress(Aws::String &&value)
Definition: SuppressedDestination.h:62
Aws::SESV2::Model::SuppressedDestination::WithEmailAddress
SuppressedDestination & WithEmailAddress(const char *value)
Definition: SuppressedDestination.h:82
Aws::SESV2::Model::SuppressedDestination::SetEmailAddress
void SetEmailAddress(const Aws::String &value)
Definition: SuppressedDestination.h:57