AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetRecipient(const Aws::String& value) { m_recipientHasBeenSet = true; m_recipient = value; }
55 inline void SetRecipient(Aws::String&& value) { m_recipientHasBeenSet = true; m_recipient = std::move(value); }
56 inline void SetRecipient(const char* value) { m_recipientHasBeenSet = true; m_recipient.assign(value); }
57 inline BouncedRecipientInfo& WithRecipient(const Aws::String& value) { SetRecipient(value); return *this;}
58 inline BouncedRecipientInfo& WithRecipient(Aws::String&& value) { SetRecipient(std::move(value)); return *this;}
59 inline BouncedRecipientInfo& WithRecipient(const char* value) { SetRecipient(value); return *this;}
61
63
71 inline const Aws::String& GetRecipientArn() const{ return m_recipientArn; }
72 inline bool RecipientArnHasBeenSet() const { return m_recipientArnHasBeenSet; }
73 inline void SetRecipientArn(const Aws::String& value) { m_recipientArnHasBeenSet = true; m_recipientArn = value; }
74 inline void SetRecipientArn(Aws::String&& value) { m_recipientArnHasBeenSet = true; m_recipientArn = std::move(value); }
75 inline void SetRecipientArn(const char* value) { m_recipientArnHasBeenSet = true; m_recipientArn.assign(value); }
76 inline BouncedRecipientInfo& WithRecipientArn(const Aws::String& value) { SetRecipientArn(value); return *this;}
77 inline BouncedRecipientInfo& WithRecipientArn(Aws::String&& value) { SetRecipientArn(std::move(value)); return *this;}
78 inline BouncedRecipientInfo& WithRecipientArn(const char* value) { SetRecipientArn(value); return *this;}
80
82
86 inline const BounceType& GetBounceType() const{ return m_bounceType; }
87 inline bool BounceTypeHasBeenSet() const { return m_bounceTypeHasBeenSet; }
88 inline void SetBounceType(const BounceType& value) { m_bounceTypeHasBeenSet = true; m_bounceType = value; }
89 inline void SetBounceType(BounceType&& value) { m_bounceTypeHasBeenSet = true; m_bounceType = std::move(value); }
90 inline BouncedRecipientInfo& WithBounceType(const BounceType& value) { SetBounceType(value); return *this;}
91 inline BouncedRecipientInfo& WithBounceType(BounceType&& value) { SetBounceType(std::move(value)); return *this;}
93
95
100 inline const RecipientDsnFields& GetRecipientDsnFields() const{ return m_recipientDsnFields; }
101 inline bool RecipientDsnFieldsHasBeenSet() const { return m_recipientDsnFieldsHasBeenSet; }
102 inline void SetRecipientDsnFields(const RecipientDsnFields& value) { m_recipientDsnFieldsHasBeenSet = true; m_recipientDsnFields = value; }
103 inline void SetRecipientDsnFields(RecipientDsnFields&& value) { m_recipientDsnFieldsHasBeenSet = true; m_recipientDsnFields = std::move(value); }
105 inline BouncedRecipientInfo& WithRecipientDsnFields(RecipientDsnFields&& value) { SetRecipientDsnFields(std::move(value)); return *this;}
107 private:
108
109 Aws::String m_recipient;
110 bool m_recipientHasBeenSet = false;
111
112 Aws::String m_recipientArn;
113 bool m_recipientArnHasBeenSet = false;
114
115 BounceType m_bounceType;
116 bool m_bounceTypeHasBeenSet = false;
117
118 RecipientDsnFields m_recipientDsnFields;
119 bool m_recipientDsnFieldsHasBeenSet = false;
120 };
121
122} // namespace Model
123} // namespace SES
124} // namespace Aws
const Aws::String & GetRecipient() const
BouncedRecipientInfo & WithRecipient(const Aws::String &value)
AWS_SES_API BouncedRecipientInfo(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetRecipientDsnFields(RecipientDsnFields &&value)
const Aws::String & GetRecipientArn() const
BouncedRecipientInfo & WithRecipientArn(const Aws::String &value)
BouncedRecipientInfo & WithRecipientDsnFields(RecipientDsnFields &&value)
AWS_SES_API void OutputToStream(Aws::OStream &oStream, const char *location) const
void SetBounceType(const BounceType &value)
void SetRecipientArn(const Aws::String &value)
AWS_SES_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
BouncedRecipientInfo & WithBounceType(const BounceType &value)
BouncedRecipientInfo & WithRecipient(Aws::String &&value)
BouncedRecipientInfo & WithRecipientArn(Aws::String &&value)
BouncedRecipientInfo & WithRecipient(const char *value)
AWS_SES_API BouncedRecipientInfo & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
const RecipientDsnFields & GetRecipientDsnFields() const
BouncedRecipientInfo & WithBounceType(BounceType &&value)
void SetRecipient(const Aws::String &value)
void SetRecipientDsnFields(const RecipientDsnFields &value)
BouncedRecipientInfo & WithRecipientDsnFields(const RecipientDsnFields &value)
BouncedRecipientInfo & WithRecipientArn(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream