AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
MessageDsn.h
1
6#pragma once
7#include <aws/email/SES_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/DateTime.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/email/model/ExtensionField.h>
13#include <utility>
14
15namespace Aws
16{
17namespace Utils
18{
19namespace Xml
20{
21 class XmlNode;
22} // namespace Xml
23} // namespace Utils
24namespace SES
25{
26namespace Model
27{
28
39 {
40 public:
41 AWS_SES_API MessageDsn();
42 AWS_SES_API MessageDsn(const Aws::Utils::Xml::XmlNode& xmlNode);
43 AWS_SES_API MessageDsn& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
44
45 AWS_SES_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
46 AWS_SES_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
47
48
50
56 inline const Aws::String& GetReportingMta() const{ return m_reportingMta; }
57 inline bool ReportingMtaHasBeenSet() const { return m_reportingMtaHasBeenSet; }
58 inline void SetReportingMta(const Aws::String& value) { m_reportingMtaHasBeenSet = true; m_reportingMta = value; }
59 inline void SetReportingMta(Aws::String&& value) { m_reportingMtaHasBeenSet = true; m_reportingMta = std::move(value); }
60 inline void SetReportingMta(const char* value) { m_reportingMtaHasBeenSet = true; m_reportingMta.assign(value); }
61 inline MessageDsn& WithReportingMta(const Aws::String& value) { SetReportingMta(value); return *this;}
62 inline MessageDsn& WithReportingMta(Aws::String&& value) { SetReportingMta(std::move(value)); return *this;}
63 inline MessageDsn& WithReportingMta(const char* value) { SetReportingMta(value); return *this;}
65
67
71 inline const Aws::Utils::DateTime& GetArrivalDate() const{ return m_arrivalDate; }
72 inline bool ArrivalDateHasBeenSet() const { return m_arrivalDateHasBeenSet; }
73 inline void SetArrivalDate(const Aws::Utils::DateTime& value) { m_arrivalDateHasBeenSet = true; m_arrivalDate = value; }
74 inline void SetArrivalDate(Aws::Utils::DateTime&& value) { m_arrivalDateHasBeenSet = true; m_arrivalDate = std::move(value); }
75 inline MessageDsn& WithArrivalDate(const Aws::Utils::DateTime& value) { SetArrivalDate(value); return *this;}
76 inline MessageDsn& WithArrivalDate(Aws::Utils::DateTime&& value) { SetArrivalDate(std::move(value)); return *this;}
78
80
83 inline const Aws::Vector<ExtensionField>& GetExtensionFields() const{ return m_extensionFields; }
84 inline bool ExtensionFieldsHasBeenSet() const { return m_extensionFieldsHasBeenSet; }
85 inline void SetExtensionFields(const Aws::Vector<ExtensionField>& value) { m_extensionFieldsHasBeenSet = true; m_extensionFields = value; }
86 inline void SetExtensionFields(Aws::Vector<ExtensionField>&& value) { m_extensionFieldsHasBeenSet = true; m_extensionFields = std::move(value); }
88 inline MessageDsn& WithExtensionFields(Aws::Vector<ExtensionField>&& value) { SetExtensionFields(std::move(value)); return *this;}
89 inline MessageDsn& AddExtensionFields(const ExtensionField& value) { m_extensionFieldsHasBeenSet = true; m_extensionFields.push_back(value); return *this; }
90 inline MessageDsn& AddExtensionFields(ExtensionField&& value) { m_extensionFieldsHasBeenSet = true; m_extensionFields.push_back(std::move(value)); return *this; }
92 private:
93
94 Aws::String m_reportingMta;
95 bool m_reportingMtaHasBeenSet = false;
96
97 Aws::Utils::DateTime m_arrivalDate;
98 bool m_arrivalDateHasBeenSet = false;
99
100 Aws::Vector<ExtensionField> m_extensionFields;
101 bool m_extensionFieldsHasBeenSet = false;
102 };
103
104} // namespace Model
105} // namespace SES
106} // namespace Aws
MessageDsn & WithReportingMta(const Aws::String &value)
Definition MessageDsn.h:61
MessageDsn & AddExtensionFields(ExtensionField &&value)
Definition MessageDsn.h:90
void SetArrivalDate(Aws::Utils::DateTime &&value)
Definition MessageDsn.h:74
AWS_SES_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
MessageDsn & WithReportingMta(Aws::String &&value)
Definition MessageDsn.h:62
MessageDsn & WithExtensionFields(const Aws::Vector< ExtensionField > &value)
Definition MessageDsn.h:87
AWS_SES_API MessageDsn(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetReportingMta(const Aws::String &value)
Definition MessageDsn.h:58
void SetExtensionFields(const Aws::Vector< ExtensionField > &value)
Definition MessageDsn.h:85
bool ArrivalDateHasBeenSet() const
Definition MessageDsn.h:72
const Aws::Vector< ExtensionField > & GetExtensionFields() const
Definition MessageDsn.h:83
MessageDsn & WithArrivalDate(const Aws::Utils::DateTime &value)
Definition MessageDsn.h:75
const Aws::String & GetReportingMta() const
Definition MessageDsn.h:56
AWS_SES_API MessageDsn & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetExtensionFields(Aws::Vector< ExtensionField > &&value)
Definition MessageDsn.h:86
bool ReportingMtaHasBeenSet() const
Definition MessageDsn.h:57
void SetReportingMta(const char *value)
Definition MessageDsn.h:60
MessageDsn & WithExtensionFields(Aws::Vector< ExtensionField > &&value)
Definition MessageDsn.h:88
MessageDsn & WithReportingMta(const char *value)
Definition MessageDsn.h:63
void SetArrivalDate(const Aws::Utils::DateTime &value)
Definition MessageDsn.h:73
void SetReportingMta(Aws::String &&value)
Definition MessageDsn.h:59
AWS_SES_API void OutputToStream(Aws::OStream &oStream, const char *location) const
const Aws::Utils::DateTime & GetArrivalDate() const
Definition MessageDsn.h:71
MessageDsn & AddExtensionFields(const ExtensionField &value)
Definition MessageDsn.h:89
MessageDsn & WithArrivalDate(Aws::Utils::DateTime &&value)
Definition MessageDsn.h:76
bool ExtensionFieldsHasBeenSet() const
Definition MessageDsn.h:84
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
std::basic_ostream< char, std::char_traits< char > > OStream