AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
BouncedRecipientInfo.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/BounceType.h>
11#include <aws/email/model/RecipientDsnFields.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Xml
19{
20 class XmlNode;
21} // namespace Xml
22} // namespace Utils
23namespace SES
24{
25namespace Model
26{
27
38 {
39 public:
40 AWS_SES_API BouncedRecipientInfo() = default;
43
44 AWS_SES_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
45 AWS_SES_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
46
47
49
52 inline const Aws::String& GetRecipient() const { return m_recipient; }
53 inline bool RecipientHasBeenSet() const { return m_recipientHasBeenSet; }
54 template<typename RecipientT = Aws::String>
55 void SetRecipient(RecipientT&& value) { m_recipientHasBeenSet = true; m_recipient = std::forward<RecipientT>(value); }
56 template<typename RecipientT = Aws::String>
57 BouncedRecipientInfo& WithRecipient(RecipientT&& value) { SetRecipient(std::forward<RecipientT>(value)); return *this;}
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) { m_recipientArnHasBeenSet = true; m_recipientArn = std::forward<RecipientArnT>(value); }
73 template<typename RecipientArnT = Aws::String>
74 BouncedRecipientInfo& WithRecipientArn(RecipientArnT&& value) { SetRecipientArn(std::forward<RecipientArnT>(value)); return *this;}
76
78
82 inline BounceType GetBounceType() const { return m_bounceType; }
83 inline bool BounceTypeHasBeenSet() const { return m_bounceTypeHasBeenSet; }
84 inline void SetBounceType(BounceType value) { m_bounceTypeHasBeenSet = true; m_bounceType = value; }
85 inline BouncedRecipientInfo& WithBounceType(BounceType value) { SetBounceType(value); return *this;}
87
89
94 inline const RecipientDsnFields& GetRecipientDsnFields() const { return m_recipientDsnFields; }
95 inline bool RecipientDsnFieldsHasBeenSet() const { return m_recipientDsnFieldsHasBeenSet; }
96 template<typename RecipientDsnFieldsT = RecipientDsnFields>
97 void SetRecipientDsnFields(RecipientDsnFieldsT&& value) { m_recipientDsnFieldsHasBeenSet = true; m_recipientDsnFields = std::forward<RecipientDsnFieldsT>(value); }
98 template<typename RecipientDsnFieldsT = RecipientDsnFields>
99 BouncedRecipientInfo& WithRecipientDsnFields(RecipientDsnFieldsT&& value) { SetRecipientDsnFields(std::forward<RecipientDsnFieldsT>(value)); return *this;}
101 private:
102
103 Aws::String m_recipient;
104 bool m_recipientHasBeenSet = false;
105
106 Aws::String m_recipientArn;
107 bool m_recipientArnHasBeenSet = false;
108
109 BounceType m_bounceType{BounceType::NOT_SET};
110 bool m_bounceTypeHasBeenSet = false;
111
112 RecipientDsnFields m_recipientDsnFields;
113 bool m_recipientDsnFieldsHasBeenSet = false;
114 };
115
116} // namespace Model
117} // namespace SES
118} // 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