AWS SDK for C++  1.8.95
AWS SDK for C++
Destination.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace Utils
15 {
16 namespace Json
17 {
18  class JsonValue;
19  class JsonView;
20 } // namespace Json
21 } // namespace Utils
22 namespace PinpointEmail
23 {
24 namespace Model
25 {
26 
34  {
35  public:
36  Destination();
38  Destination& operator=(Aws::Utils::Json::JsonView jsonValue);
39  Aws::Utils::Json::JsonValue Jsonize() const;
40 
41 
46  inline const Aws::Vector<Aws::String>& GetToAddresses() const{ return m_toAddresses; }
47 
52  inline bool ToAddressesHasBeenSet() const { return m_toAddressesHasBeenSet; }
53 
58  inline void SetToAddresses(const Aws::Vector<Aws::String>& value) { m_toAddressesHasBeenSet = true; m_toAddresses = value; }
59 
64  inline void SetToAddresses(Aws::Vector<Aws::String>&& value) { m_toAddressesHasBeenSet = true; m_toAddresses = std::move(value); }
65 
70  inline Destination& WithToAddresses(const Aws::Vector<Aws::String>& value) { SetToAddresses(value); return *this;}
71 
76  inline Destination& WithToAddresses(Aws::Vector<Aws::String>&& value) { SetToAddresses(std::move(value)); return *this;}
77 
82  inline Destination& AddToAddresses(const Aws::String& value) { m_toAddressesHasBeenSet = true; m_toAddresses.push_back(value); return *this; }
83 
88  inline Destination& AddToAddresses(Aws::String&& value) { m_toAddressesHasBeenSet = true; m_toAddresses.push_back(std::move(value)); return *this; }
89 
94  inline Destination& AddToAddresses(const char* value) { m_toAddressesHasBeenSet = true; m_toAddresses.push_back(value); return *this; }
95 
96 
101  inline const Aws::Vector<Aws::String>& GetCcAddresses() const{ return m_ccAddresses; }
102 
107  inline bool CcAddressesHasBeenSet() const { return m_ccAddressesHasBeenSet; }
108 
113  inline void SetCcAddresses(const Aws::Vector<Aws::String>& value) { m_ccAddressesHasBeenSet = true; m_ccAddresses = value; }
114 
119  inline void SetCcAddresses(Aws::Vector<Aws::String>&& value) { m_ccAddressesHasBeenSet = true; m_ccAddresses = std::move(value); }
120 
125  inline Destination& WithCcAddresses(const Aws::Vector<Aws::String>& value) { SetCcAddresses(value); return *this;}
126 
131  inline Destination& WithCcAddresses(Aws::Vector<Aws::String>&& value) { SetCcAddresses(std::move(value)); return *this;}
132 
137  inline Destination& AddCcAddresses(const Aws::String& value) { m_ccAddressesHasBeenSet = true; m_ccAddresses.push_back(value); return *this; }
138 
143  inline Destination& AddCcAddresses(Aws::String&& value) { m_ccAddressesHasBeenSet = true; m_ccAddresses.push_back(std::move(value)); return *this; }
144 
149  inline Destination& AddCcAddresses(const char* value) { m_ccAddressesHasBeenSet = true; m_ccAddresses.push_back(value); return *this; }
150 
151 
156  inline const Aws::Vector<Aws::String>& GetBccAddresses() const{ return m_bccAddresses; }
157 
162  inline bool BccAddressesHasBeenSet() const { return m_bccAddressesHasBeenSet; }
163 
168  inline void SetBccAddresses(const Aws::Vector<Aws::String>& value) { m_bccAddressesHasBeenSet = true; m_bccAddresses = value; }
169 
174  inline void SetBccAddresses(Aws::Vector<Aws::String>&& value) { m_bccAddressesHasBeenSet = true; m_bccAddresses = std::move(value); }
175 
180  inline Destination& WithBccAddresses(const Aws::Vector<Aws::String>& value) { SetBccAddresses(value); return *this;}
181 
186  inline Destination& WithBccAddresses(Aws::Vector<Aws::String>&& value) { SetBccAddresses(std::move(value)); return *this;}
187 
192  inline Destination& AddBccAddresses(const Aws::String& value) { m_bccAddressesHasBeenSet = true; m_bccAddresses.push_back(value); return *this; }
193 
198  inline Destination& AddBccAddresses(Aws::String&& value) { m_bccAddressesHasBeenSet = true; m_bccAddresses.push_back(std::move(value)); return *this; }
199 
204  inline Destination& AddBccAddresses(const char* value) { m_bccAddressesHasBeenSet = true; m_bccAddresses.push_back(value); return *this; }
205 
206  private:
207 
208  Aws::Vector<Aws::String> m_toAddresses;
209  bool m_toAddressesHasBeenSet;
210 
211  Aws::Vector<Aws::String> m_ccAddresses;
212  bool m_ccAddressesHasBeenSet;
213 
214  Aws::Vector<Aws::String> m_bccAddresses;
215  bool m_bccAddressesHasBeenSet;
216  };
217 
218 } // namespace Model
219 } // namespace PinpointEmail
220 } // namespace Aws
Destination & AddToAddresses(Aws::String &&value)
Definition: Destination.h:88
void SetToAddresses(const Aws::Vector< Aws::String > &value)
Definition: Destination.h:58
void SetCcAddresses(Aws::Vector< Aws::String > &&value)
Definition: Destination.h:119
void SetBccAddresses(const Aws::Vector< Aws::String > &value)
Definition: Destination.h:168
void SetBccAddresses(Aws::Vector< Aws::String > &&value)
Definition: Destination.h:174
Destination & AddCcAddresses(Aws::String &&value)
Definition: Destination.h:143
#define AWS_PINPOINTEMAIL_API
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Destination & AddCcAddresses(const Aws::String &value)
Definition: Destination.h:137
Destination & AddBccAddresses(const char *value)
Definition: Destination.h:204
Destination & WithCcAddresses(const Aws::Vector< Aws::String > &value)
Definition: Destination.h:125
const Aws::Vector< Aws::String > & GetCcAddresses() const
Definition: Destination.h:101
void SetToAddresses(Aws::Vector< Aws::String > &&value)
Definition: Destination.h:64
Destination & AddBccAddresses(const Aws::String &value)
Definition: Destination.h:192
const Aws::Vector< Aws::String > & GetToAddresses() const
Definition: Destination.h:46
Destination & AddToAddresses(const char *value)
Definition: Destination.h:94
Destination & WithToAddresses(Aws::Vector< Aws::String > &&value)
Definition: Destination.h:76
Destination & WithBccAddresses(Aws::Vector< Aws::String > &&value)
Definition: Destination.h:186
void SetCcAddresses(const Aws::Vector< Aws::String > &value)
Definition: Destination.h:113
const Aws::Vector< Aws::String > & GetBccAddresses() const
Definition: Destination.h:156
Destination & WithBccAddresses(const Aws::Vector< Aws::String > &value)
Definition: Destination.h:180
Destination & WithCcAddresses(Aws::Vector< Aws::String > &&value)
Definition: Destination.h:131
Destination & AddBccAddresses(Aws::String &&value)
Definition: Destination.h:198
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Destination & AddToAddresses(const Aws::String &value)
Definition: Destination.h:82
Destination & WithToAddresses(const Aws::Vector< Aws::String > &value)
Definition: Destination.h:70
Destination & AddCcAddresses(const char *value)
Definition: Destination.h:149