AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
RecipientDsnFields.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/email/model/DsnAction.h>
11#include <aws/core/utils/DateTime.h>
12#include <aws/core/utils/memory/stl/AWSVector.h>
13#include <aws/email/model/ExtensionField.h>
14#include <utility>
15
16namespace Aws
17{
18namespace Utils
19{
20namespace Xml
21{
22 class XmlNode;
23} // namespace Xml
24} // namespace Utils
25namespace SES
26{
27namespace Model
28{
29
40 {
41 public:
42 AWS_SES_API RecipientDsnFields();
43 AWS_SES_API RecipientDsnFields(const Aws::Utils::Xml::XmlNode& xmlNode);
45
46 AWS_SES_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
47 AWS_SES_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
48
49
51
62 inline const Aws::String& GetFinalRecipient() const{ return m_finalRecipient; }
63 inline bool FinalRecipientHasBeenSet() const { return m_finalRecipientHasBeenSet; }
64 inline void SetFinalRecipient(const Aws::String& value) { m_finalRecipientHasBeenSet = true; m_finalRecipient = value; }
65 inline void SetFinalRecipient(Aws::String&& value) { m_finalRecipientHasBeenSet = true; m_finalRecipient = std::move(value); }
66 inline void SetFinalRecipient(const char* value) { m_finalRecipientHasBeenSet = true; m_finalRecipient.assign(value); }
67 inline RecipientDsnFields& WithFinalRecipient(const Aws::String& value) { SetFinalRecipient(value); return *this;}
68 inline RecipientDsnFields& WithFinalRecipient(Aws::String&& value) { SetFinalRecipient(std::move(value)); return *this;}
69 inline RecipientDsnFields& WithFinalRecipient(const char* value) { SetFinalRecipient(value); return *this;}
71
73
78 inline const DsnAction& GetAction() const{ return m_action; }
79 inline bool ActionHasBeenSet() const { return m_actionHasBeenSet; }
80 inline void SetAction(const DsnAction& value) { m_actionHasBeenSet = true; m_action = value; }
81 inline void SetAction(DsnAction&& value) { m_actionHasBeenSet = true; m_action = std::move(value); }
82 inline RecipientDsnFields& WithAction(const DsnAction& value) { SetAction(value); return *this;}
83 inline RecipientDsnFields& WithAction(DsnAction&& value) { SetAction(std::move(value)); return *this;}
85
87
93 inline const Aws::String& GetRemoteMta() const{ return m_remoteMta; }
94 inline bool RemoteMtaHasBeenSet() const { return m_remoteMtaHasBeenSet; }
95 inline void SetRemoteMta(const Aws::String& value) { m_remoteMtaHasBeenSet = true; m_remoteMta = value; }
96 inline void SetRemoteMta(Aws::String&& value) { m_remoteMtaHasBeenSet = true; m_remoteMta = std::move(value); }
97 inline void SetRemoteMta(const char* value) { m_remoteMtaHasBeenSet = true; m_remoteMta.assign(value); }
98 inline RecipientDsnFields& WithRemoteMta(const Aws::String& value) { SetRemoteMta(value); return *this;}
99 inline RecipientDsnFields& WithRemoteMta(Aws::String&& value) { SetRemoteMta(std::move(value)); return *this;}
100 inline RecipientDsnFields& WithRemoteMta(const char* value) { SetRemoteMta(value); return *this;}
102
104
108 inline const Aws::String& GetStatus() const{ return m_status; }
109 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
110 inline void SetStatus(const Aws::String& value) { m_statusHasBeenSet = true; m_status = value; }
111 inline void SetStatus(Aws::String&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
112 inline void SetStatus(const char* value) { m_statusHasBeenSet = true; m_status.assign(value); }
113 inline RecipientDsnFields& WithStatus(const Aws::String& value) { SetStatus(value); return *this;}
114 inline RecipientDsnFields& WithStatus(Aws::String&& value) { SetStatus(std::move(value)); return *this;}
115 inline RecipientDsnFields& WithStatus(const char* value) { SetStatus(value); return *this;}
117
119
124 inline const Aws::String& GetDiagnosticCode() const{ return m_diagnosticCode; }
125 inline bool DiagnosticCodeHasBeenSet() const { return m_diagnosticCodeHasBeenSet; }
126 inline void SetDiagnosticCode(const Aws::String& value) { m_diagnosticCodeHasBeenSet = true; m_diagnosticCode = value; }
127 inline void SetDiagnosticCode(Aws::String&& value) { m_diagnosticCodeHasBeenSet = true; m_diagnosticCode = std::move(value); }
128 inline void SetDiagnosticCode(const char* value) { m_diagnosticCodeHasBeenSet = true; m_diagnosticCode.assign(value); }
129 inline RecipientDsnFields& WithDiagnosticCode(const Aws::String& value) { SetDiagnosticCode(value); return *this;}
130 inline RecipientDsnFields& WithDiagnosticCode(Aws::String&& value) { SetDiagnosticCode(std::move(value)); return *this;}
131 inline RecipientDsnFields& WithDiagnosticCode(const char* value) { SetDiagnosticCode(value); return *this;}
133
135
139 inline const Aws::Utils::DateTime& GetLastAttemptDate() const{ return m_lastAttemptDate; }
140 inline bool LastAttemptDateHasBeenSet() const { return m_lastAttemptDateHasBeenSet; }
141 inline void SetLastAttemptDate(const Aws::Utils::DateTime& value) { m_lastAttemptDateHasBeenSet = true; m_lastAttemptDate = value; }
142 inline void SetLastAttemptDate(Aws::Utils::DateTime&& value) { m_lastAttemptDateHasBeenSet = true; m_lastAttemptDate = std::move(value); }
144 inline RecipientDsnFields& WithLastAttemptDate(Aws::Utils::DateTime&& value) { SetLastAttemptDate(std::move(value)); return *this;}
146
148
151 inline const Aws::Vector<ExtensionField>& GetExtensionFields() const{ return m_extensionFields; }
152 inline bool ExtensionFieldsHasBeenSet() const { return m_extensionFieldsHasBeenSet; }
153 inline void SetExtensionFields(const Aws::Vector<ExtensionField>& value) { m_extensionFieldsHasBeenSet = true; m_extensionFields = value; }
154 inline void SetExtensionFields(Aws::Vector<ExtensionField>&& value) { m_extensionFieldsHasBeenSet = true; m_extensionFields = std::move(value); }
157 inline RecipientDsnFields& AddExtensionFields(const ExtensionField& value) { m_extensionFieldsHasBeenSet = true; m_extensionFields.push_back(value); return *this; }
158 inline RecipientDsnFields& AddExtensionFields(ExtensionField&& value) { m_extensionFieldsHasBeenSet = true; m_extensionFields.push_back(std::move(value)); return *this; }
160 private:
161
162 Aws::String m_finalRecipient;
163 bool m_finalRecipientHasBeenSet = false;
164
165 DsnAction m_action;
166 bool m_actionHasBeenSet = false;
167
168 Aws::String m_remoteMta;
169 bool m_remoteMtaHasBeenSet = false;
170
171 Aws::String m_status;
172 bool m_statusHasBeenSet = false;
173
174 Aws::String m_diagnosticCode;
175 bool m_diagnosticCodeHasBeenSet = false;
176
177 Aws::Utils::DateTime m_lastAttemptDate;
178 bool m_lastAttemptDateHasBeenSet = false;
179
180 Aws::Vector<ExtensionField> m_extensionFields;
181 bool m_extensionFieldsHasBeenSet = false;
182 };
183
184} // namespace Model
185} // namespace SES
186} // namespace Aws
void SetDiagnosticCode(Aws::String &&value)
RecipientDsnFields & WithLastAttemptDate(const Aws::Utils::DateTime &value)
RecipientDsnFields & AddExtensionFields(const ExtensionField &value)
AWS_SES_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
const Aws::String & GetRemoteMta() const
AWS_SES_API RecipientDsnFields(const Aws::Utils::Xml::XmlNode &xmlNode)
RecipientDsnFields & WithFinalRecipient(Aws::String &&value)
void SetFinalRecipient(Aws::String &&value)
AWS_SES_API RecipientDsnFields & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
const Aws::Utils::DateTime & GetLastAttemptDate() const
RecipientDsnFields & WithStatus(const Aws::String &value)
RecipientDsnFields & WithStatus(Aws::String &&value)
RecipientDsnFields & WithStatus(const char *value)
RecipientDsnFields & WithRemoteMta(const Aws::String &value)
RecipientDsnFields & WithAction(DsnAction &&value)
void SetExtensionFields(Aws::Vector< ExtensionField > &&value)
RecipientDsnFields & WithLastAttemptDate(Aws::Utils::DateTime &&value)
RecipientDsnFields & WithRemoteMta(const char *value)
const DsnAction & GetAction() const
AWS_SES_API void OutputToStream(Aws::OStream &oStream, const char *location) const
void SetRemoteMta(const Aws::String &value)
void SetRemoteMta(Aws::String &&value)
void SetLastAttemptDate(Aws::Utils::DateTime &&value)
RecipientDsnFields & WithFinalRecipient(const Aws::String &value)
const Aws::String & GetDiagnosticCode() const
void SetAction(const DsnAction &value)
void SetDiagnosticCode(const Aws::String &value)
RecipientDsnFields & WithRemoteMta(Aws::String &&value)
RecipientDsnFields & WithAction(const DsnAction &value)
void SetStatus(const Aws::String &value)
RecipientDsnFields & WithExtensionFields(const Aws::Vector< ExtensionField > &value)
void SetFinalRecipient(const Aws::String &value)
RecipientDsnFields & AddExtensionFields(ExtensionField &&value)
void SetLastAttemptDate(const Aws::Utils::DateTime &value)
void SetDiagnosticCode(const char *value)
RecipientDsnFields & WithFinalRecipient(const char *value)
const Aws::String & GetStatus() const
const Aws::String & GetFinalRecipient() const
void SetExtensionFields(const Aws::Vector< ExtensionField > &value)
RecipientDsnFields & WithDiagnosticCode(const Aws::String &value)
void SetFinalRecipient(const char *value)
const Aws::Vector< ExtensionField > & GetExtensionFields() const
RecipientDsnFields & WithDiagnosticCode(const char *value)
RecipientDsnFields & WithExtensionFields(Aws::Vector< ExtensionField > &&value)
RecipientDsnFields & WithDiagnosticCode(Aws::String &&value)
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