AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetToAddresses(const Aws::Vector<Aws::String>& value) { m_toAddressesHasBeenSet = true; m_toAddresses = value; }
63 inline void SetToAddresses(Aws::Vector<Aws::String>&& value) { m_toAddressesHasBeenSet = true; m_toAddresses = std::move(value); }
64 inline Destination& WithToAddresses(const Aws::Vector<Aws::String>& value) { SetToAddresses(value); return *this;}
65 inline Destination& WithToAddresses(Aws::Vector<Aws::String>&& value) { SetToAddresses(std::move(value)); return *this;}
66 inline Destination& AddToAddresses(const Aws::String& value) { m_toAddressesHasBeenSet = true; m_toAddresses.push_back(value); return *this; }
67 inline Destination& AddToAddresses(Aws::String&& value) { m_toAddressesHasBeenSet = true; m_toAddresses.push_back(std::move(value)); return *this; }
68 inline Destination& AddToAddresses(const char* value) { m_toAddressesHasBeenSet = true; m_toAddresses.push_back(value); return *this; }
70
72
75 inline const Aws::Vector<Aws::String>& GetCcAddresses() const{ return m_ccAddresses; }
76 inline bool CcAddressesHasBeenSet() const { return m_ccAddressesHasBeenSet; }
77 inline void SetCcAddresses(const Aws::Vector<Aws::String>& value) { m_ccAddressesHasBeenSet = true; m_ccAddresses = value; }
78 inline void SetCcAddresses(Aws::Vector<Aws::String>&& value) { m_ccAddressesHasBeenSet = true; m_ccAddresses = std::move(value); }
79 inline Destination& WithCcAddresses(const Aws::Vector<Aws::String>& value) { SetCcAddresses(value); return *this;}
80 inline Destination& WithCcAddresses(Aws::Vector<Aws::String>&& value) { SetCcAddresses(std::move(value)); return *this;}
81 inline Destination& AddCcAddresses(const Aws::String& value) { m_ccAddressesHasBeenSet = true; m_ccAddresses.push_back(value); return *this; }
82 inline Destination& AddCcAddresses(Aws::String&& value) { m_ccAddressesHasBeenSet = true; m_ccAddresses.push_back(std::move(value)); return *this; }
83 inline Destination& AddCcAddresses(const char* value) { m_ccAddressesHasBeenSet = true; m_ccAddresses.push_back(value); return *this; }
85
87
90 inline const Aws::Vector<Aws::String>& GetBccAddresses() const{ return m_bccAddresses; }
91 inline bool BccAddressesHasBeenSet() const { return m_bccAddressesHasBeenSet; }
92 inline void SetBccAddresses(const Aws::Vector<Aws::String>& value) { m_bccAddressesHasBeenSet = true; m_bccAddresses = value; }
93 inline void SetBccAddresses(Aws::Vector<Aws::String>&& value) { m_bccAddressesHasBeenSet = true; m_bccAddresses = std::move(value); }
94 inline Destination& WithBccAddresses(const Aws::Vector<Aws::String>& value) { SetBccAddresses(value); return *this;}
95 inline Destination& WithBccAddresses(Aws::Vector<Aws::String>&& value) { SetBccAddresses(std::move(value)); return *this;}
96 inline Destination& AddBccAddresses(const Aws::String& value) { m_bccAddressesHasBeenSet = true; m_bccAddresses.push_back(value); return *this; }
97 inline Destination& AddBccAddresses(Aws::String&& value) { m_bccAddressesHasBeenSet = true; m_bccAddresses.push_back(std::move(value)); return *this; }
98 inline Destination& AddBccAddresses(const char* value) { m_bccAddressesHasBeenSet = true; m_bccAddresses.push_back(value); return *this; }
100 private:
101
102 Aws::Vector<Aws::String> m_toAddresses;
103 bool m_toAddressesHasBeenSet = false;
104
105 Aws::Vector<Aws::String> m_ccAddresses;
106 bool m_ccAddressesHasBeenSet = false;
107
108 Aws::Vector<Aws::String> m_bccAddresses;
109 bool m_bccAddressesHasBeenSet = false;
110 };
111
112} // namespace Model
113} // namespace SES
114} // namespace Aws
Destination & AddCcAddresses(const char *value)
Definition Destination.h:83
void SetToAddresses(Aws::Vector< Aws::String > &&value)
Definition Destination.h:63
const Aws::Vector< Aws::String > & GetToAddresses() const
Definition Destination.h:60
Destination & WithToAddresses(Aws::Vector< Aws::String > &&value)
Definition Destination.h:65
void SetToAddresses(const Aws::Vector< Aws::String > &value)
Definition Destination.h:62
Destination & AddToAddresses(const Aws::String &value)
Definition Destination.h:66
AWS_SES_API void OutputToStream(Aws::OStream &oStream, const char *location) const
Destination & AddCcAddresses(const Aws::String &value)
Definition Destination.h:81
void SetBccAddresses(const Aws::Vector< Aws::String > &value)
Definition Destination.h:92
Destination & AddToAddresses(Aws::String &&value)
Definition Destination.h:67
Destination & AddToAddresses(const char *value)
Definition Destination.h:68
Destination & WithBccAddresses(Aws::Vector< Aws::String > &&value)
Definition Destination.h:95
Destination & WithCcAddresses(Aws::Vector< Aws::String > &&value)
Definition Destination.h:80
Destination & WithBccAddresses(const Aws::Vector< Aws::String > &value)
Definition Destination.h:94
Destination & AddBccAddresses(Aws::String &&value)
Definition Destination.h:97
AWS_SES_API Destination(const Aws::Utils::Xml::XmlNode &xmlNode)
const Aws::Vector< Aws::String > & GetCcAddresses() const
Definition Destination.h:75
AWS_SES_API Destination & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
Destination & AddBccAddresses(const Aws::String &value)
Definition Destination.h:96
Destination & WithToAddresses(const Aws::Vector< Aws::String > &value)
Definition Destination.h:64
bool ToAddressesHasBeenSet() const
Definition Destination.h:61
bool CcAddressesHasBeenSet() const
Definition Destination.h:76
void SetCcAddresses(Aws::Vector< Aws::String > &&value)
Definition Destination.h:78
Destination & AddBccAddresses(const char *value)
Definition Destination.h:98
Destination & WithCcAddresses(const Aws::Vector< Aws::String > &value)
Definition Destination.h:79
Destination & AddCcAddresses(Aws::String &&value)
Definition Destination.h:82
bool BccAddressesHasBeenSet() const
Definition Destination.h:91
void SetCcAddresses(const Aws::Vector< Aws::String > &value)
Definition Destination.h:77
void SetBccAddresses(Aws::Vector< Aws::String > &&value)
Definition Destination.h:93
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:90
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