AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
Destination.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/pinpoint-email/PinpointEmail_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace PinpointEmail {
21namespace Model {
22
30 public:
31 AWS_PINPOINTEMAIL_API Destination() = default;
32 AWS_PINPOINTEMAIL_API Destination(Aws::Utils::Json::JsonView jsonValue);
33 AWS_PINPOINTEMAIL_API Destination& operator=(Aws::Utils::Json::JsonView jsonValue);
34 AWS_PINPOINTEMAIL_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
41 inline const Aws::Vector<Aws::String>& GetToAddresses() const { return m_toAddresses; }
42 inline bool ToAddressesHasBeenSet() const { return m_toAddressesHasBeenSet; }
43 template <typename ToAddressesT = Aws::Vector<Aws::String>>
44 void SetToAddresses(ToAddressesT&& value) {
45 m_toAddressesHasBeenSet = true;
46 m_toAddresses = std::forward<ToAddressesT>(value);
47 }
48 template <typename ToAddressesT = Aws::Vector<Aws::String>>
49 Destination& WithToAddresses(ToAddressesT&& value) {
50 SetToAddresses(std::forward<ToAddressesT>(value));
51 return *this;
52 }
53 template <typename ToAddressesT = Aws::String>
54 Destination& AddToAddresses(ToAddressesT&& value) {
55 m_toAddressesHasBeenSet = true;
56 m_toAddresses.emplace_back(std::forward<ToAddressesT>(value));
57 return *this;
58 }
60
62
66 inline const Aws::Vector<Aws::String>& GetCcAddresses() const { return m_ccAddresses; }
67 inline bool CcAddressesHasBeenSet() const { return m_ccAddressesHasBeenSet; }
68 template <typename CcAddressesT = Aws::Vector<Aws::String>>
69 void SetCcAddresses(CcAddressesT&& value) {
70 m_ccAddressesHasBeenSet = true;
71 m_ccAddresses = std::forward<CcAddressesT>(value);
72 }
73 template <typename CcAddressesT = Aws::Vector<Aws::String>>
74 Destination& WithCcAddresses(CcAddressesT&& value) {
75 SetCcAddresses(std::forward<CcAddressesT>(value));
76 return *this;
77 }
78 template <typename CcAddressesT = Aws::String>
79 Destination& AddCcAddresses(CcAddressesT&& value) {
80 m_ccAddressesHasBeenSet = true;
81 m_ccAddresses.emplace_back(std::forward<CcAddressesT>(value));
82 return *this;
83 }
85
87
91 inline const Aws::Vector<Aws::String>& GetBccAddresses() const { return m_bccAddresses; }
92 inline bool BccAddressesHasBeenSet() const { return m_bccAddressesHasBeenSet; }
93 template <typename BccAddressesT = Aws::Vector<Aws::String>>
94 void SetBccAddresses(BccAddressesT&& value) {
95 m_bccAddressesHasBeenSet = true;
96 m_bccAddresses = std::forward<BccAddressesT>(value);
97 }
98 template <typename BccAddressesT = Aws::Vector<Aws::String>>
99 Destination& WithBccAddresses(BccAddressesT&& value) {
100 SetBccAddresses(std::forward<BccAddressesT>(value));
101 return *this;
102 }
103 template <typename BccAddressesT = Aws::String>
104 Destination& AddBccAddresses(BccAddressesT&& value) {
105 m_bccAddressesHasBeenSet = true;
106 m_bccAddresses.emplace_back(std::forward<BccAddressesT>(value));
107 return *this;
108 }
110 private:
111 Aws::Vector<Aws::String> m_toAddresses;
112
113 Aws::Vector<Aws::String> m_ccAddresses;
114
115 Aws::Vector<Aws::String> m_bccAddresses;
116 bool m_toAddressesHasBeenSet = false;
117 bool m_ccAddressesHasBeenSet = false;
118 bool m_bccAddressesHasBeenSet = false;
119};
120
121} // namespace Model
122} // namespace PinpointEmail
123} // namespace Aws
void SetToAddresses(ToAddressesT &&value)
Definition Destination.h:44
void SetBccAddresses(BccAddressesT &&value)
Definition Destination.h:94
AWS_PINPOINTEMAIL_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::Vector< Aws::String > & GetBccAddresses() const
Definition Destination.h:91
void SetCcAddresses(CcAddressesT &&value)
Definition Destination.h:69
Destination & AddBccAddresses(BccAddressesT &&value)
const Aws::Vector< Aws::String > & GetCcAddresses() const
Definition Destination.h:66
Destination & AddToAddresses(ToAddressesT &&value)
Definition Destination.h:54
Destination & WithBccAddresses(BccAddressesT &&value)
Definition Destination.h:99
AWS_PINPOINTEMAIL_API Destination(Aws::Utils::Json::JsonView jsonValue)
Destination & AddCcAddresses(CcAddressesT &&value)
Definition Destination.h:79
const Aws::Vector< Aws::String > & GetToAddresses() const
Definition Destination.h:41
Destination & WithToAddresses(ToAddressesT &&value)
Definition Destination.h:49
Destination & WithCcAddresses(CcAddressesT &&value)
Definition Destination.h:74
AWS_PINPOINTEMAIL_API Destination()=default
AWS_PINPOINTEMAIL_API Destination & operator=(Aws::Utils::Json::JsonView jsonValue)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue