AWS SDK for C++  1.9.19
AWS SDK for C++
RecipientDsnFields.h
Go to the documentation of this file.
1 
6 #pragma once
14 #include <utility>
15 
16 namespace Aws
17 {
18 namespace Utils
19 {
20 namespace Xml
21 {
22  class XmlNode;
23 } // namespace Xml
24 } // namespace Utils
25 namespace SES
26 {
27 namespace Model
28 {
29 
40  {
41  public:
45 
46  void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
47  void OutputToStream(Aws::OStream& oStream, const char* location) const;
48 
49 
61  inline const Aws::String& GetFinalRecipient() const{ return m_finalRecipient; }
62 
74  inline bool FinalRecipientHasBeenSet() const { return m_finalRecipientHasBeenSet; }
75 
87  inline void SetFinalRecipient(const Aws::String& value) { m_finalRecipientHasBeenSet = true; m_finalRecipient = value; }
88 
100  inline void SetFinalRecipient(Aws::String&& value) { m_finalRecipientHasBeenSet = true; m_finalRecipient = std::move(value); }
101 
113  inline void SetFinalRecipient(const char* value) { m_finalRecipientHasBeenSet = true; m_finalRecipient.assign(value); }
114 
126  inline RecipientDsnFields& WithFinalRecipient(const Aws::String& value) { SetFinalRecipient(value); return *this;}
127 
139  inline RecipientDsnFields& WithFinalRecipient(Aws::String&& value) { SetFinalRecipient(std::move(value)); return *this;}
140 
152  inline RecipientDsnFields& WithFinalRecipient(const char* value) { SetFinalRecipient(value); return *this;}
153 
154 
160  inline const DsnAction& GetAction() const{ return m_action; }
161 
167  inline bool ActionHasBeenSet() const { return m_actionHasBeenSet; }
168 
174  inline void SetAction(const DsnAction& value) { m_actionHasBeenSet = true; m_action = value; }
175 
181  inline void SetAction(DsnAction&& value) { m_actionHasBeenSet = true; m_action = std::move(value); }
182 
188  inline RecipientDsnFields& WithAction(const DsnAction& value) { SetAction(value); return *this;}
189 
195  inline RecipientDsnFields& WithAction(DsnAction&& value) { SetAction(std::move(value)); return *this;}
196 
197 
204  inline const Aws::String& GetRemoteMta() const{ return m_remoteMta; }
205 
212  inline bool RemoteMtaHasBeenSet() const { return m_remoteMtaHasBeenSet; }
213 
220  inline void SetRemoteMta(const Aws::String& value) { m_remoteMtaHasBeenSet = true; m_remoteMta = value; }
221 
228  inline void SetRemoteMta(Aws::String&& value) { m_remoteMtaHasBeenSet = true; m_remoteMta = std::move(value); }
229 
236  inline void SetRemoteMta(const char* value) { m_remoteMtaHasBeenSet = true; m_remoteMta.assign(value); }
237 
244  inline RecipientDsnFields& WithRemoteMta(const Aws::String& value) { SetRemoteMta(value); return *this;}
245 
252  inline RecipientDsnFields& WithRemoteMta(Aws::String&& value) { SetRemoteMta(std::move(value)); return *this;}
253 
260  inline RecipientDsnFields& WithRemoteMta(const char* value) { SetRemoteMta(value); return *this;}
261 
262 
267  inline const Aws::String& GetStatus() const{ return m_status; }
268 
273  inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
274 
279  inline void SetStatus(const Aws::String& value) { m_statusHasBeenSet = true; m_status = value; }
280 
285  inline void SetStatus(Aws::String&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
286 
291  inline void SetStatus(const char* value) { m_statusHasBeenSet = true; m_status.assign(value); }
292 
297  inline RecipientDsnFields& WithStatus(const Aws::String& value) { SetStatus(value); return *this;}
298 
303  inline RecipientDsnFields& WithStatus(Aws::String&& value) { SetStatus(std::move(value)); return *this;}
304 
309  inline RecipientDsnFields& WithStatus(const char* value) { SetStatus(value); return *this;}
310 
311 
317  inline const Aws::String& GetDiagnosticCode() const{ return m_diagnosticCode; }
318 
324  inline bool DiagnosticCodeHasBeenSet() const { return m_diagnosticCodeHasBeenSet; }
325 
331  inline void SetDiagnosticCode(const Aws::String& value) { m_diagnosticCodeHasBeenSet = true; m_diagnosticCode = value; }
332 
338  inline void SetDiagnosticCode(Aws::String&& value) { m_diagnosticCodeHasBeenSet = true; m_diagnosticCode = std::move(value); }
339 
345  inline void SetDiagnosticCode(const char* value) { m_diagnosticCodeHasBeenSet = true; m_diagnosticCode.assign(value); }
346 
352  inline RecipientDsnFields& WithDiagnosticCode(const Aws::String& value) { SetDiagnosticCode(value); return *this;}
353 
359  inline RecipientDsnFields& WithDiagnosticCode(Aws::String&& value) { SetDiagnosticCode(std::move(value)); return *this;}
360 
366  inline RecipientDsnFields& WithDiagnosticCode(const char* value) { SetDiagnosticCode(value); return *this;}
367 
368 
373  inline const Aws::Utils::DateTime& GetLastAttemptDate() const{ return m_lastAttemptDate; }
374 
379  inline bool LastAttemptDateHasBeenSet() const { return m_lastAttemptDateHasBeenSet; }
380 
385  inline void SetLastAttemptDate(const Aws::Utils::DateTime& value) { m_lastAttemptDateHasBeenSet = true; m_lastAttemptDate = value; }
386 
391  inline void SetLastAttemptDate(Aws::Utils::DateTime&& value) { m_lastAttemptDateHasBeenSet = true; m_lastAttemptDate = std::move(value); }
392 
397  inline RecipientDsnFields& WithLastAttemptDate(const Aws::Utils::DateTime& value) { SetLastAttemptDate(value); return *this;}
398 
403  inline RecipientDsnFields& WithLastAttemptDate(Aws::Utils::DateTime&& value) { SetLastAttemptDate(std::move(value)); return *this;}
404 
405 
409  inline const Aws::Vector<ExtensionField>& GetExtensionFields() const{ return m_extensionFields; }
410 
414  inline bool ExtensionFieldsHasBeenSet() const { return m_extensionFieldsHasBeenSet; }
415 
419  inline void SetExtensionFields(const Aws::Vector<ExtensionField>& value) { m_extensionFieldsHasBeenSet = true; m_extensionFields = value; }
420 
424  inline void SetExtensionFields(Aws::Vector<ExtensionField>&& value) { m_extensionFieldsHasBeenSet = true; m_extensionFields = std::move(value); }
425 
429  inline RecipientDsnFields& WithExtensionFields(const Aws::Vector<ExtensionField>& value) { SetExtensionFields(value); return *this;}
430 
434  inline RecipientDsnFields& WithExtensionFields(Aws::Vector<ExtensionField>&& value) { SetExtensionFields(std::move(value)); return *this;}
435 
439  inline RecipientDsnFields& AddExtensionFields(const ExtensionField& value) { m_extensionFieldsHasBeenSet = true; m_extensionFields.push_back(value); return *this; }
440 
444  inline RecipientDsnFields& AddExtensionFields(ExtensionField&& value) { m_extensionFieldsHasBeenSet = true; m_extensionFields.push_back(std::move(value)); return *this; }
445 
446  private:
447 
448  Aws::String m_finalRecipient;
449  bool m_finalRecipientHasBeenSet;
450 
451  DsnAction m_action;
452  bool m_actionHasBeenSet;
453 
454  Aws::String m_remoteMta;
455  bool m_remoteMtaHasBeenSet;
456 
457  Aws::String m_status;
458  bool m_statusHasBeenSet;
459 
460  Aws::String m_diagnosticCode;
461  bool m_diagnosticCodeHasBeenSet;
462 
463  Aws::Utils::DateTime m_lastAttemptDate;
464  bool m_lastAttemptDateHasBeenSet;
465 
466  Aws::Vector<ExtensionField> m_extensionFields;
467  bool m_extensionFieldsHasBeenSet;
468  };
469 
470 } // namespace Model
471 } // namespace SES
472 } // namespace Aws
Aws::Utils::DateTime
Definition: DateTime.h:55
Aws::SES::Model::RecipientDsnFields::SetAction
void SetAction(DsnAction &&value)
Definition: RecipientDsnFields.h:181
Aws::SES::Model::RecipientDsnFields::SetFinalRecipient
void SetFinalRecipient(const Aws::String &value)
Definition: RecipientDsnFields.h:87
Aws::SES::Model::RecipientDsnFields::WithDiagnosticCode
RecipientDsnFields & WithDiagnosticCode(Aws::String &&value)
Definition: RecipientDsnFields.h:359
Aws::SES::Model::RecipientDsnFields::DiagnosticCodeHasBeenSet
bool DiagnosticCodeHasBeenSet() const
Definition: RecipientDsnFields.h:324
DsnAction.h
Aws::SES::Model::RecipientDsnFields::FinalRecipientHasBeenSet
bool FinalRecipientHasBeenSet() const
Definition: RecipientDsnFields.h:74
Aws::SES::Model::RecipientDsnFields::AddExtensionFields
RecipientDsnFields & AddExtensionFields(ExtensionField &&value)
Definition: RecipientDsnFields.h:444
Aws::SES::Model::RecipientDsnFields::SetLastAttemptDate
void SetLastAttemptDate(const Aws::Utils::DateTime &value)
Definition: RecipientDsnFields.h:385
Aws::SES::Model::RecipientDsnFields::StatusHasBeenSet
bool StatusHasBeenSet() const
Definition: RecipientDsnFields.h:273
Aws::SES::Model::RecipientDsnFields::WithFinalRecipient
RecipientDsnFields & WithFinalRecipient(Aws::String &&value)
Definition: RecipientDsnFields.h:139
Aws::SES::Model::RecipientDsnFields::WithAction
RecipientDsnFields & WithAction(const DsnAction &value)
Definition: RecipientDsnFields.h:188
Aws::SES::Model::RecipientDsnFields::GetFinalRecipient
const Aws::String & GetFinalRecipient() const
Definition: RecipientDsnFields.h:61
DateTime.h
Aws::SES::Model::RecipientDsnFields::SetRemoteMta
void SetRemoteMta(Aws::String &&value)
Definition: RecipientDsnFields.h:228
Aws::SES::Model::RecipientDsnFields::GetAction
const DsnAction & GetAction() const
Definition: RecipientDsnFields.h:160
Aws::SES::Model::RecipientDsnFields::GetExtensionFields
const Aws::Vector< ExtensionField > & GetExtensionFields() const
Definition: RecipientDsnFields.h:409
Aws::SES::Model::RecipientDsnFields::WithExtensionFields
RecipientDsnFields & WithExtensionFields(Aws::Vector< ExtensionField > &&value)
Definition: RecipientDsnFields.h:434
Aws::SES::Model::RecipientDsnFields::SetDiagnosticCode
void SetDiagnosticCode(const Aws::String &value)
Definition: RecipientDsnFields.h:331
Aws::SES::Model::RecipientDsnFields::RecipientDsnFields
RecipientDsnFields(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::SES::Model::RecipientDsnFields::ExtensionFieldsHasBeenSet
bool ExtensionFieldsHasBeenSet() const
Definition: RecipientDsnFields.h:414
Aws::SES::Model::RecipientDsnFields::SetDiagnosticCode
void SetDiagnosticCode(Aws::String &&value)
Definition: RecipientDsnFields.h:338
AWSStreamFwd.h
Aws::SES::Model::RecipientDsnFields::WithDiagnosticCode
RecipientDsnFields & WithDiagnosticCode(const char *value)
Definition: RecipientDsnFields.h:366
Aws::SES::Model::RecipientDsnFields::WithExtensionFields
RecipientDsnFields & WithExtensionFields(const Aws::Vector< ExtensionField > &value)
Definition: RecipientDsnFields.h:429
AWSVector.h
Aws::SES::Model::RecipientDsnFields::OutputToStream
void OutputToStream(Aws::OStream &oStream, const char *location) const
Aws::SES::Model::RecipientDsnFields::WithStatus
RecipientDsnFields & WithStatus(Aws::String &&value)
Definition: RecipientDsnFields.h:303
Aws::SES::Model::RecipientDsnFields::WithDiagnosticCode
RecipientDsnFields & WithDiagnosticCode(const Aws::String &value)
Definition: RecipientDsnFields.h:352
Aws::SES::Model::RecipientDsnFields::RecipientDsnFields
RecipientDsnFields()
Aws::SES::Model::RecipientDsnFields::WithRemoteMta
RecipientDsnFields & WithRemoteMta(Aws::String &&value)
Definition: RecipientDsnFields.h:252
Aws::OStream
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:21
Aws::SES::Model::RecipientDsnFields::SetStatus
void SetStatus(Aws::String &&value)
Definition: RecipientDsnFields.h:285
Aws::SES::Model::RecipientDsnFields::SetStatus
void SetStatus(const char *value)
Definition: RecipientDsnFields.h:291
ExtensionField.h
Aws::SES::Model::RecipientDsnFields::SetAction
void SetAction(const DsnAction &value)
Definition: RecipientDsnFields.h:174
Aws::Utils::Xml::XmlNode
Definition: XmlSerializer.h:53
Aws::SES::Model::RecipientDsnFields::WithStatus
RecipientDsnFields & WithStatus(const Aws::String &value)
Definition: RecipientDsnFields.h:297
Aws::SES::Model::RecipientDsnFields::GetDiagnosticCode
const Aws::String & GetDiagnosticCode() const
Definition: RecipientDsnFields.h:317
Aws::SES::Model::RecipientDsnFields::WithLastAttemptDate
RecipientDsnFields & WithLastAttemptDate(const Aws::Utils::DateTime &value)
Definition: RecipientDsnFields.h:397
Aws::SES::Model::RecipientDsnFields::WithFinalRecipient
RecipientDsnFields & WithFinalRecipient(const Aws::String &value)
Definition: RecipientDsnFields.h:126
Aws::SES::Model::RecipientDsnFields::GetRemoteMta
const Aws::String & GetRemoteMta() const
Definition: RecipientDsnFields.h:204
Aws::SES::Model::RecipientDsnFields::WithRemoteMta
RecipientDsnFields & WithRemoteMta(const char *value)
Definition: RecipientDsnFields.h:260
Aws::SES::Model::RecipientDsnFields::SetFinalRecipient
void SetFinalRecipient(Aws::String &&value)
Definition: RecipientDsnFields.h:100
Aws::SES::Model::RecipientDsnFields::ActionHasBeenSet
bool ActionHasBeenSet() const
Definition: RecipientDsnFields.h:167
AWSString.h
Aws::SES::Model::DsnAction
DsnAction
Definition: DsnAction.h:17
Aws::SES::Model::RecipientDsnFields::WithAction
RecipientDsnFields & WithAction(DsnAction &&value)
Definition: RecipientDsnFields.h:195
SES_EXPORTS.h
Aws::SES::Model::RecipientDsnFields::SetExtensionFields
void SetExtensionFields(Aws::Vector< ExtensionField > &&value)
Definition: RecipientDsnFields.h:424
Aws::SES::Model::RecipientDsnFields::GetLastAttemptDate
const Aws::Utils::DateTime & GetLastAttemptDate() const
Definition: RecipientDsnFields.h:373
AWS_SES_API
#define AWS_SES_API
Definition: SES_EXPORTS.h:28
Aws::SES::Model::RecipientDsnFields::SetStatus
void SetStatus(const Aws::String &value)
Definition: RecipientDsnFields.h:279
Aws::SES::Model::RecipientDsnFields::OutputToStream
void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
Aws::SES::Model::RecipientDsnFields::RemoteMtaHasBeenSet
bool RemoteMtaHasBeenSet() const
Definition: RecipientDsnFields.h:212
Aws::SES::Model::RecipientDsnFields
Definition: RecipientDsnFields.h:40
Aws
Definition: AccessManagementClient.h:15
Aws::SES::Model::RecipientDsnFields::WithRemoteMta
RecipientDsnFields & WithRemoteMta(const Aws::String &value)
Definition: RecipientDsnFields.h:244
Aws::SES::Model::RecipientDsnFields::SetRemoteMta
void SetRemoteMta(const Aws::String &value)
Definition: RecipientDsnFields.h:220
Aws::SES::Model::RecipientDsnFields::SetRemoteMta
void SetRemoteMta(const char *value)
Definition: RecipientDsnFields.h:236
Aws::SES::Model::RecipientDsnFields::SetFinalRecipient
void SetFinalRecipient(const char *value)
Definition: RecipientDsnFields.h:113
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::SES::Model::RecipientDsnFields::WithLastAttemptDate
RecipientDsnFields & WithLastAttemptDate(Aws::Utils::DateTime &&value)
Definition: RecipientDsnFields.h:403
index
int index
Definition: cJSON.h:171
Aws::SES::Model::RecipientDsnFields::LastAttemptDateHasBeenSet
bool LastAttemptDateHasBeenSet() const
Definition: RecipientDsnFields.h:379
Aws::SES::Model::RecipientDsnFields::operator=
RecipientDsnFields & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::SES::Model::RecipientDsnFields::WithStatus
RecipientDsnFields & WithStatus(const char *value)
Definition: RecipientDsnFields.h:309
Aws::SES::Model::RecipientDsnFields::SetLastAttemptDate
void SetLastAttemptDate(Aws::Utils::DateTime &&value)
Definition: RecipientDsnFields.h:391
Aws::SES::Model::RecipientDsnFields::WithFinalRecipient
RecipientDsnFields & WithFinalRecipient(const char *value)
Definition: RecipientDsnFields.h:152
Aws::SES::Model::RecipientDsnFields::SetExtensionFields
void SetExtensionFields(const Aws::Vector< ExtensionField > &value)
Definition: RecipientDsnFields.h:419
Aws::SES::Model::RecipientDsnFields::SetDiagnosticCode
void SetDiagnosticCode(const char *value)
Definition: RecipientDsnFields.h:345
Aws::SES::Model::RecipientDsnFields::AddExtensionFields
RecipientDsnFields & AddExtensionFields(const ExtensionField &value)
Definition: RecipientDsnFields.h:439
Aws::SES::Model::ExtensionField
Definition: ExtensionField.h:36
Aws::SES::Model::RecipientDsnFields::GetStatus
const Aws::String & GetStatus() const
Definition: RecipientDsnFields.h:267