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/sesv2/SESV2_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace SESV2
23{
24namespace Model
25{
26
42 {
43 public:
44 AWS_SESV2_API Destination();
45 AWS_SESV2_API Destination(Aws::Utils::Json::JsonView jsonValue);
47 AWS_SESV2_API Aws::Utils::Json::JsonValue Jsonize() const;
48
49
51
55 inline const Aws::Vector<Aws::String>& GetToAddresses() const{ return m_toAddresses; }
56 inline bool ToAddressesHasBeenSet() const { return m_toAddressesHasBeenSet; }
57 inline void SetToAddresses(const Aws::Vector<Aws::String>& value) { m_toAddressesHasBeenSet = true; m_toAddresses = value; }
58 inline void SetToAddresses(Aws::Vector<Aws::String>&& value) { m_toAddressesHasBeenSet = true; m_toAddresses = std::move(value); }
59 inline Destination& WithToAddresses(const Aws::Vector<Aws::String>& value) { SetToAddresses(value); return *this;}
60 inline Destination& WithToAddresses(Aws::Vector<Aws::String>&& value) { SetToAddresses(std::move(value)); return *this;}
61 inline Destination& AddToAddresses(const Aws::String& value) { m_toAddressesHasBeenSet = true; m_toAddresses.push_back(value); return *this; }
62 inline Destination& AddToAddresses(Aws::String&& value) { m_toAddressesHasBeenSet = true; m_toAddresses.push_back(std::move(value)); return *this; }
63 inline Destination& AddToAddresses(const char* value) { m_toAddressesHasBeenSet = true; m_toAddresses.push_back(value); return *this; }
65
67
71 inline const Aws::Vector<Aws::String>& GetCcAddresses() const{ return m_ccAddresses; }
72 inline bool CcAddressesHasBeenSet() const { return m_ccAddressesHasBeenSet; }
73 inline void SetCcAddresses(const Aws::Vector<Aws::String>& value) { m_ccAddressesHasBeenSet = true; m_ccAddresses = value; }
74 inline void SetCcAddresses(Aws::Vector<Aws::String>&& value) { m_ccAddressesHasBeenSet = true; m_ccAddresses = std::move(value); }
75 inline Destination& WithCcAddresses(const Aws::Vector<Aws::String>& value) { SetCcAddresses(value); return *this;}
76 inline Destination& WithCcAddresses(Aws::Vector<Aws::String>&& value) { SetCcAddresses(std::move(value)); return *this;}
77 inline Destination& AddCcAddresses(const Aws::String& value) { m_ccAddressesHasBeenSet = true; m_ccAddresses.push_back(value); return *this; }
78 inline Destination& AddCcAddresses(Aws::String&& value) { m_ccAddressesHasBeenSet = true; m_ccAddresses.push_back(std::move(value)); return *this; }
79 inline Destination& AddCcAddresses(const char* value) { m_ccAddressesHasBeenSet = true; m_ccAddresses.push_back(value); return *this; }
81
83
87 inline const Aws::Vector<Aws::String>& GetBccAddresses() const{ return m_bccAddresses; }
88 inline bool BccAddressesHasBeenSet() const { return m_bccAddressesHasBeenSet; }
89 inline void SetBccAddresses(const Aws::Vector<Aws::String>& value) { m_bccAddressesHasBeenSet = true; m_bccAddresses = value; }
90 inline void SetBccAddresses(Aws::Vector<Aws::String>&& value) { m_bccAddressesHasBeenSet = true; m_bccAddresses = std::move(value); }
91 inline Destination& WithBccAddresses(const Aws::Vector<Aws::String>& value) { SetBccAddresses(value); return *this;}
92 inline Destination& WithBccAddresses(Aws::Vector<Aws::String>&& value) { SetBccAddresses(std::move(value)); return *this;}
93 inline Destination& AddBccAddresses(const Aws::String& value) { m_bccAddressesHasBeenSet = true; m_bccAddresses.push_back(value); return *this; }
94 inline Destination& AddBccAddresses(Aws::String&& value) { m_bccAddressesHasBeenSet = true; m_bccAddresses.push_back(std::move(value)); return *this; }
95 inline Destination& AddBccAddresses(const char* value) { m_bccAddressesHasBeenSet = true; m_bccAddresses.push_back(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 SESV2
111} // namespace Aws
Destination & WithCcAddresses(const Aws::Vector< Aws::String > &value)
Definition Destination.h:75
void SetCcAddresses(Aws::Vector< Aws::String > &&value)
Definition Destination.h:74
Destination & WithCcAddresses(Aws::Vector< Aws::String > &&value)
Definition Destination.h:76
Destination & AddBccAddresses(const char *value)
Definition Destination.h:95
Destination & AddCcAddresses(const char *value)
Definition Destination.h:79
void SetToAddresses(const Aws::Vector< Aws::String > &value)
Definition Destination.h:57
AWS_SESV2_API Aws::Utils::Json::JsonValue Jsonize() const
Destination & WithBccAddresses(const Aws::Vector< Aws::String > &value)
Definition Destination.h:91
const Aws::Vector< Aws::String > & GetBccAddresses() const
Definition Destination.h:87
Destination & AddToAddresses(const char *value)
Definition Destination.h:63
Destination & AddBccAddresses(const Aws::String &value)
Definition Destination.h:93
Destination & WithToAddresses(const Aws::Vector< Aws::String > &value)
Definition Destination.h:59
AWS_SESV2_API Destination(Aws::Utils::Json::JsonView jsonValue)
Destination & AddToAddresses(Aws::String &&value)
Definition Destination.h:62
AWS_SESV2_API Destination & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< Aws::String > & GetToAddresses() const
Definition Destination.h:55
void SetToAddresses(Aws::Vector< Aws::String > &&value)
Definition Destination.h:58
void SetBccAddresses(Aws::Vector< Aws::String > &&value)
Definition Destination.h:90
Destination & AddCcAddresses(const Aws::String &value)
Definition Destination.h:77
Destination & AddCcAddresses(Aws::String &&value)
Definition Destination.h:78
const Aws::Vector< Aws::String > & GetCcAddresses() const
Definition Destination.h:71
void SetCcAddresses(const Aws::Vector< Aws::String > &value)
Definition Destination.h:73
Destination & WithToAddresses(Aws::Vector< Aws::String > &&value)
Definition Destination.h:60
Destination & AddToAddresses(const Aws::String &value)
Definition Destination.h:61
void SetBccAddresses(const Aws::Vector< Aws::String > &value)
Definition Destination.h:89
Destination & WithBccAddresses(Aws::Vector< Aws::String > &&value)
Definition Destination.h:92
Destination & AddBccAddresses(Aws::String &&value)
Definition Destination.h:94
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue