AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
Destination.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/AWSVector.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Xml
18{
19 class XmlNode;
20} // namespace Xml
21} // namespace Utils
22namespace SES
23{
24namespace Model
25{
26
46 {
47 public:
48 AWS_SES_API Destination() = default;
49 AWS_SES_API Destination(const Aws::Utils::Xml::XmlNode& xmlNode);
50 AWS_SES_API Destination& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
51
52 AWS_SES_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
53 AWS_SES_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
54
55
57
60 inline const Aws::Vector<Aws::String>& GetToAddresses() const { return m_toAddresses; }
61 inline bool ToAddressesHasBeenSet() const { return m_toAddressesHasBeenSet; }
62 template<typename ToAddressesT = Aws::Vector<Aws::String>>
63 void SetToAddresses(ToAddressesT&& value) { m_toAddressesHasBeenSet = true; m_toAddresses = std::forward<ToAddressesT>(value); }
64 template<typename ToAddressesT = Aws::Vector<Aws::String>>
65 Destination& WithToAddresses(ToAddressesT&& value) { SetToAddresses(std::forward<ToAddressesT>(value)); return *this;}
66 template<typename ToAddressesT = Aws::String>
67 Destination& AddToAddresses(ToAddressesT&& value) { m_toAddressesHasBeenSet = true; m_toAddresses.emplace_back(std::forward<ToAddressesT>(value)); return *this; }
69
71
74 inline const Aws::Vector<Aws::String>& GetCcAddresses() const { return m_ccAddresses; }
75 inline bool CcAddressesHasBeenSet() const { return m_ccAddressesHasBeenSet; }
76 template<typename CcAddressesT = Aws::Vector<Aws::String>>
77 void SetCcAddresses(CcAddressesT&& value) { m_ccAddressesHasBeenSet = true; m_ccAddresses = std::forward<CcAddressesT>(value); }
78 template<typename CcAddressesT = Aws::Vector<Aws::String>>
79 Destination& WithCcAddresses(CcAddressesT&& value) { SetCcAddresses(std::forward<CcAddressesT>(value)); return *this;}
80 template<typename CcAddressesT = Aws::String>
81 Destination& AddCcAddresses(CcAddressesT&& value) { m_ccAddressesHasBeenSet = true; m_ccAddresses.emplace_back(std::forward<CcAddressesT>(value)); return *this; }
83
85
88 inline const Aws::Vector<Aws::String>& GetBccAddresses() const { return m_bccAddresses; }
89 inline bool BccAddressesHasBeenSet() const { return m_bccAddressesHasBeenSet; }
90 template<typename BccAddressesT = Aws::Vector<Aws::String>>
91 void SetBccAddresses(BccAddressesT&& value) { m_bccAddressesHasBeenSet = true; m_bccAddresses = std::forward<BccAddressesT>(value); }
92 template<typename BccAddressesT = Aws::Vector<Aws::String>>
93 Destination& WithBccAddresses(BccAddressesT&& value) { SetBccAddresses(std::forward<BccAddressesT>(value)); return *this;}
94 template<typename BccAddressesT = Aws::String>
95 Destination& AddBccAddresses(BccAddressesT&& value) { m_bccAddressesHasBeenSet = true; m_bccAddresses.emplace_back(std::forward<BccAddressesT>(value)); return *this; }
97 private:
98
99 Aws::Vector<Aws::String> m_toAddresses;
100 bool m_toAddressesHasBeenSet = false;
101
102 Aws::Vector<Aws::String> m_ccAddresses;
103 bool m_ccAddressesHasBeenSet = false;
104
105 Aws::Vector<Aws::String> m_bccAddresses;
106 bool m_bccAddressesHasBeenSet = false;
107 };
108
109} // namespace Model
110} // namespace SES
111} // namespace Aws
void SetToAddresses(ToAddressesT &&value)
Definition Destination.h:63
Destination & AddBccAddresses(BccAddressesT &&value)
Definition Destination.h:95
const Aws::Vector< Aws::String > & GetToAddresses() const
Definition Destination.h:60
Destination & WithToAddresses(ToAddressesT &&value)
Definition Destination.h:65
AWS_SES_API void OutputToStream(Aws::OStream &oStream, const char *location) const
void SetCcAddresses(CcAddressesT &&value)
Definition Destination.h:77
Destination & WithBccAddresses(BccAddressesT &&value)
Definition Destination.h:93
Destination & WithCcAddresses(CcAddressesT &&value)
Definition Destination.h:79
AWS_SES_API Destination(const Aws::Utils::Xml::XmlNode &xmlNode)
const Aws::Vector< Aws::String > & GetCcAddresses() const
Definition Destination.h:74
AWS_SES_API Destination & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_SES_API Destination()=default
bool ToAddressesHasBeenSet() const
Definition Destination.h:61
bool CcAddressesHasBeenSet() const
Definition Destination.h:75
Destination & AddCcAddresses(CcAddressesT &&value)
Definition Destination.h:81
Destination & AddToAddresses(ToAddressesT &&value)
Definition Destination.h:67
bool BccAddressesHasBeenSet() const
Definition Destination.h:89
void SetBccAddresses(BccAddressesT &&value)
Definition Destination.h:91
AWS_SES_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
const Aws::Vector< Aws::String > & GetBccAddresses() const
Definition Destination.h:88
std::vector< T, Aws::Allocator< T > > Vector
std::basic_ostream< char, std::char_traits< char > > OStream