AWS SDK for C++

AWS SDK for C++ Version 1.11.767

Loading...
Searching...
No Matches
BouncedRecipientInfo.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/email/SES_EXPORTS.h>
10#include <aws/email/model/BounceType.h>
11#include <aws/email/model/RecipientDsnFields.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Xml {
18class XmlNode;
19} // namespace Xml
20} // namespace Utils
21namespace SES {
22namespace Model {
23
34 public:
35 AWS_SES_API BouncedRecipientInfo() = default;
38
39 AWS_SES_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
40 AWS_SES_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
41
43
46 inline const Aws::String& GetRecipient() const { return m_recipient; }
47 inline bool RecipientHasBeenSet() const { return m_recipientHasBeenSet; }
48 template <typename RecipientT = Aws::String>
49 void SetRecipient(RecipientT&& value) {
50 m_recipientHasBeenSet = true;
51 m_recipient = std::forward<RecipientT>(value);
52 }
53 template <typename RecipientT = Aws::String>
54 BouncedRecipientInfo& WithRecipient(RecipientT&& value) {
55 SetRecipient(std::forward<RecipientT>(value));
56 return *this;
57 }
59
61
69 inline const Aws::String& GetRecipientArn() const { return m_recipientArn; }
70 inline bool RecipientArnHasBeenSet() const { return m_recipientArnHasBeenSet; }
71 template <typename RecipientArnT = Aws::String>
72 void SetRecipientArn(RecipientArnT&& value) {
73 m_recipientArnHasBeenSet = true;
74 m_recipientArn = std::forward<RecipientArnT>(value);
75 }
76 template <typename RecipientArnT = Aws::String>
77 BouncedRecipientInfo& WithRecipientArn(RecipientArnT&& value) {
78 SetRecipientArn(std::forward<RecipientArnT>(value));
79 return *this;
80 }
82
84
88 inline BounceType GetBounceType() const { return m_bounceType; }
89 inline bool BounceTypeHasBeenSet() const { return m_bounceTypeHasBeenSet; }
90 inline void SetBounceType(BounceType value) {
91 m_bounceTypeHasBeenSet = true;
92 m_bounceType = value;
93 }
95 SetBounceType(value);
96 return *this;
97 }
99
101
106 inline const RecipientDsnFields& GetRecipientDsnFields() const { return m_recipientDsnFields; }
107 inline bool RecipientDsnFieldsHasBeenSet() const { return m_recipientDsnFieldsHasBeenSet; }
108 template <typename RecipientDsnFieldsT = RecipientDsnFields>
109 void SetRecipientDsnFields(RecipientDsnFieldsT&& value) {
110 m_recipientDsnFieldsHasBeenSet = true;
111 m_recipientDsnFields = std::forward<RecipientDsnFieldsT>(value);
112 }
113 template <typename RecipientDsnFieldsT = RecipientDsnFields>
114 BouncedRecipientInfo& WithRecipientDsnFields(RecipientDsnFieldsT&& value) {
115 SetRecipientDsnFields(std::forward<RecipientDsnFieldsT>(value));
116 return *this;
117 }
119 private:
120 Aws::String m_recipient;
121
122 Aws::String m_recipientArn;
123
124 BounceType m_bounceType{BounceType::NOT_SET};
125
126 RecipientDsnFields m_recipientDsnFields;
127 bool m_recipientHasBeenSet = false;
128 bool m_recipientArnHasBeenSet = false;
129 bool m_bounceTypeHasBeenSet = false;
130 bool m_recipientDsnFieldsHasBeenSet = false;
131};
132
133} // namespace Model
134} // namespace SES
135} // namespace Aws
const Aws::String & GetRecipient() const
void SetRecipientDsnFields(RecipientDsnFieldsT &&value)
AWS_SES_API BouncedRecipientInfo(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetRecipientArn(RecipientArnT &&value)
const Aws::String & GetRecipientArn() const
BouncedRecipientInfo & WithRecipientArn(RecipientArnT &&value)
AWS_SES_API void OutputToStream(Aws::OStream &oStream, const char *location) const
AWS_SES_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
BouncedRecipientInfo & WithBounceType(BounceType value)
BouncedRecipientInfo & WithRecipient(RecipientT &&value)
BouncedRecipientInfo & WithRecipientDsnFields(RecipientDsnFieldsT &&value)
AWS_SES_API BouncedRecipientInfo()=default
AWS_SES_API BouncedRecipientInfo & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
const RecipientDsnFields & GetRecipientDsnFields() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream