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/pinpoint-email/PinpointEmail_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 PinpointEmail
23{
24namespace Model
25{
26
34 {
35 public:
36 AWS_PINPOINTEMAIL_API Destination();
37 AWS_PINPOINTEMAIL_API Destination(Aws::Utils::Json::JsonView jsonValue);
38 AWS_PINPOINTEMAIL_API Destination& operator=(Aws::Utils::Json::JsonView jsonValue);
39 AWS_PINPOINTEMAIL_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
47 inline const Aws::Vector<Aws::String>& GetToAddresses() const{ return m_toAddresses; }
48 inline bool ToAddressesHasBeenSet() const { return m_toAddressesHasBeenSet; }
49 inline void SetToAddresses(const Aws::Vector<Aws::String>& value) { m_toAddressesHasBeenSet = true; m_toAddresses = value; }
50 inline void SetToAddresses(Aws::Vector<Aws::String>&& value) { m_toAddressesHasBeenSet = true; m_toAddresses = std::move(value); }
51 inline Destination& WithToAddresses(const Aws::Vector<Aws::String>& value) { SetToAddresses(value); return *this;}
52 inline Destination& WithToAddresses(Aws::Vector<Aws::String>&& value) { SetToAddresses(std::move(value)); return *this;}
53 inline Destination& AddToAddresses(const Aws::String& value) { m_toAddressesHasBeenSet = true; m_toAddresses.push_back(value); return *this; }
54 inline Destination& AddToAddresses(Aws::String&& value) { m_toAddressesHasBeenSet = true; m_toAddresses.push_back(std::move(value)); return *this; }
55 inline Destination& AddToAddresses(const char* value) { m_toAddressesHasBeenSet = true; m_toAddresses.push_back(value); return *this; }
57
59
63 inline const Aws::Vector<Aws::String>& GetCcAddresses() const{ return m_ccAddresses; }
64 inline bool CcAddressesHasBeenSet() const { return m_ccAddressesHasBeenSet; }
65 inline void SetCcAddresses(const Aws::Vector<Aws::String>& value) { m_ccAddressesHasBeenSet = true; m_ccAddresses = value; }
66 inline void SetCcAddresses(Aws::Vector<Aws::String>&& value) { m_ccAddressesHasBeenSet = true; m_ccAddresses = std::move(value); }
67 inline Destination& WithCcAddresses(const Aws::Vector<Aws::String>& value) { SetCcAddresses(value); return *this;}
68 inline Destination& WithCcAddresses(Aws::Vector<Aws::String>&& value) { SetCcAddresses(std::move(value)); return *this;}
69 inline Destination& AddCcAddresses(const Aws::String& value) { m_ccAddressesHasBeenSet = true; m_ccAddresses.push_back(value); return *this; }
70 inline Destination& AddCcAddresses(Aws::String&& value) { m_ccAddressesHasBeenSet = true; m_ccAddresses.push_back(std::move(value)); return *this; }
71 inline Destination& AddCcAddresses(const char* value) { m_ccAddressesHasBeenSet = true; m_ccAddresses.push_back(value); return *this; }
73
75
79 inline const Aws::Vector<Aws::String>& GetBccAddresses() const{ return m_bccAddresses; }
80 inline bool BccAddressesHasBeenSet() const { return m_bccAddressesHasBeenSet; }
81 inline void SetBccAddresses(const Aws::Vector<Aws::String>& value) { m_bccAddressesHasBeenSet = true; m_bccAddresses = value; }
82 inline void SetBccAddresses(Aws::Vector<Aws::String>&& value) { m_bccAddressesHasBeenSet = true; m_bccAddresses = std::move(value); }
83 inline Destination& WithBccAddresses(const Aws::Vector<Aws::String>& value) { SetBccAddresses(value); return *this;}
84 inline Destination& WithBccAddresses(Aws::Vector<Aws::String>&& value) { SetBccAddresses(std::move(value)); return *this;}
85 inline Destination& AddBccAddresses(const Aws::String& value) { m_bccAddressesHasBeenSet = true; m_bccAddresses.push_back(value); return *this; }
86 inline Destination& AddBccAddresses(Aws::String&& value) { m_bccAddressesHasBeenSet = true; m_bccAddresses.push_back(std::move(value)); return *this; }
87 inline Destination& AddBccAddresses(const char* value) { m_bccAddressesHasBeenSet = true; m_bccAddresses.push_back(value); return *this; }
89 private:
90
91 Aws::Vector<Aws::String> m_toAddresses;
92 bool m_toAddressesHasBeenSet = false;
93
94 Aws::Vector<Aws::String> m_ccAddresses;
95 bool m_ccAddressesHasBeenSet = false;
96
97 Aws::Vector<Aws::String> m_bccAddresses;
98 bool m_bccAddressesHasBeenSet = false;
99 };
100
101} // namespace Model
102} // namespace PinpointEmail
103} // namespace Aws
void SetCcAddresses(Aws::Vector< Aws::String > &&value)
Definition Destination.h:66
AWS_PINPOINTEMAIL_API Destination()
void SetToAddresses(Aws::Vector< Aws::String > &&value)
Definition Destination.h:50
Destination & WithBccAddresses(const Aws::Vector< Aws::String > &value)
Definition Destination.h:83
Destination & AddBccAddresses(Aws::String &&value)
Definition Destination.h:86
Destination & AddToAddresses(Aws::String &&value)
Definition Destination.h:54
Destination & WithToAddresses(const Aws::Vector< Aws::String > &value)
Definition Destination.h:51
Destination & WithToAddresses(Aws::Vector< Aws::String > &&value)
Definition Destination.h:52
Destination & WithBccAddresses(Aws::Vector< Aws::String > &&value)
Definition Destination.h:84
void SetCcAddresses(const Aws::Vector< Aws::String > &value)
Definition Destination.h:65
AWS_PINPOINTEMAIL_API Aws::Utils::Json::JsonValue Jsonize() const
Destination & AddBccAddresses(const Aws::String &value)
Definition Destination.h:85
const Aws::Vector< Aws::String > & GetBccAddresses() const
Definition Destination.h:79
Destination & AddCcAddresses(const char *value)
Definition Destination.h:71
Destination & WithCcAddresses(Aws::Vector< Aws::String > &&value)
Definition Destination.h:68
const Aws::Vector< Aws::String > & GetCcAddresses() const
Definition Destination.h:63
Destination & AddToAddresses(const char *value)
Definition Destination.h:55
void SetBccAddresses(Aws::Vector< Aws::String > &&value)
Definition Destination.h:82
Destination & WithCcAddresses(const Aws::Vector< Aws::String > &value)
Definition Destination.h:67
AWS_PINPOINTEMAIL_API Destination(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< Aws::String > & GetToAddresses() const
Definition Destination.h:47
Destination & AddCcAddresses(const Aws::String &value)
Definition Destination.h:69
Destination & AddToAddresses(const Aws::String &value)
Definition Destination.h:53
Destination & AddCcAddresses(Aws::String &&value)
Definition Destination.h:70
AWS_PINPOINTEMAIL_API Destination & operator=(Aws::Utils::Json::JsonView jsonValue)
Destination & AddBccAddresses(const char *value)
Definition Destination.h:87
void SetBccAddresses(const Aws::Vector< Aws::String > &value)
Definition Destination.h:81
void SetToAddresses(const Aws::Vector< Aws::String > &value)
Definition Destination.h:49
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue