AWS SDK for C++  0.14.3
AWS SDK for C++
Destination.h
Go to the documentation of this file.
1 /*
2 * Copyright 2010-2016 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License").
5 * You may not use this file except in compliance with the License.
6 * A copy of the License is located at
7 *
8 * http://aws.amazon.com/apache2.0
9 *
10 * or in the "license" file accompanying this file. This file is distributed
11 * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
12 * express or implied. See the License for the specific language governing
13 * permissions and limitations under the License.
14 */
15 #pragma once
16 #include <aws/email/SES_EXPORTS.h>
20 
21 namespace Aws
22 {
23 namespace Utils
24 {
25 namespace Xml
26 {
27  class XmlNode;
28 } // namespace Xml
29 } // namespace Utils
30 namespace SES
31 {
32 namespace Model
33 {
34 
44  {
45  public:
46  Destination();
47  Destination(const Aws::Utils::Xml::XmlNode& xmlNode);
48  Destination& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
49 
50  void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
51  void OutputToStream(Aws::OStream& oStream, const char* location) const;
52 
56  inline const Aws::Vector<Aws::String>& GetToAddresses() const{ return m_toAddresses; }
57 
61  inline void SetToAddresses(const Aws::Vector<Aws::String>& value) { m_toAddressesHasBeenSet = true; m_toAddresses = value; }
62 
66  inline void SetToAddresses(Aws::Vector<Aws::String>&& value) { m_toAddressesHasBeenSet = true; m_toAddresses = value; }
67 
71  inline Destination& WithToAddresses(const Aws::Vector<Aws::String>& value) { SetToAddresses(value); return *this;}
72 
76  inline Destination& WithToAddresses(Aws::Vector<Aws::String>&& value) { SetToAddresses(value); return *this;}
77 
81  inline Destination& AddToAddresses(const Aws::String& value) { m_toAddressesHasBeenSet = true; m_toAddresses.push_back(value); return *this; }
82 
86  inline Destination& AddToAddresses(Aws::String&& value) { m_toAddressesHasBeenSet = true; m_toAddresses.push_back(value); return *this; }
87 
91  inline Destination& AddToAddresses(const char* value) { m_toAddressesHasBeenSet = true; m_toAddresses.push_back(value); return *this; }
92 
96  inline const Aws::Vector<Aws::String>& GetCcAddresses() const{ return m_ccAddresses; }
97 
101  inline void SetCcAddresses(const Aws::Vector<Aws::String>& value) { m_ccAddressesHasBeenSet = true; m_ccAddresses = value; }
102 
106  inline void SetCcAddresses(Aws::Vector<Aws::String>&& value) { m_ccAddressesHasBeenSet = true; m_ccAddresses = value; }
107 
111  inline Destination& WithCcAddresses(const Aws::Vector<Aws::String>& value) { SetCcAddresses(value); return *this;}
112 
116  inline Destination& WithCcAddresses(Aws::Vector<Aws::String>&& value) { SetCcAddresses(value); return *this;}
117 
121  inline Destination& AddCcAddresses(const Aws::String& value) { m_ccAddressesHasBeenSet = true; m_ccAddresses.push_back(value); return *this; }
122 
126  inline Destination& AddCcAddresses(Aws::String&& value) { m_ccAddressesHasBeenSet = true; m_ccAddresses.push_back(value); return *this; }
127 
131  inline Destination& AddCcAddresses(const char* value) { m_ccAddressesHasBeenSet = true; m_ccAddresses.push_back(value); return *this; }
132 
136  inline const Aws::Vector<Aws::String>& GetBccAddresses() const{ return m_bccAddresses; }
137 
141  inline void SetBccAddresses(const Aws::Vector<Aws::String>& value) { m_bccAddressesHasBeenSet = true; m_bccAddresses = value; }
142 
146  inline void SetBccAddresses(Aws::Vector<Aws::String>&& value) { m_bccAddressesHasBeenSet = true; m_bccAddresses = value; }
147 
151  inline Destination& WithBccAddresses(const Aws::Vector<Aws::String>& value) { SetBccAddresses(value); return *this;}
152 
156  inline Destination& WithBccAddresses(Aws::Vector<Aws::String>&& value) { SetBccAddresses(value); return *this;}
157 
161  inline Destination& AddBccAddresses(const Aws::String& value) { m_bccAddressesHasBeenSet = true; m_bccAddresses.push_back(value); return *this; }
162 
166  inline Destination& AddBccAddresses(Aws::String&& value) { m_bccAddressesHasBeenSet = true; m_bccAddresses.push_back(value); return *this; }
167 
171  inline Destination& AddBccAddresses(const char* value) { m_bccAddressesHasBeenSet = true; m_bccAddresses.push_back(value); return *this; }
172 
173  private:
174  Aws::Vector<Aws::String> m_toAddresses;
175  bool m_toAddressesHasBeenSet;
176  Aws::Vector<Aws::String> m_ccAddresses;
177  bool m_ccAddressesHasBeenSet;
178  Aws::Vector<Aws::String> m_bccAddresses;
179  bool m_bccAddressesHasBeenSet;
180  };
181 
182 } // namespace Model
183 } // namespace SES
184 } // namespace Aws
void SetBccAddresses(const Aws::Vector< Aws::String > &value)
Definition: Destination.h:141
Destination & AddBccAddresses(Aws::String &&value)
Definition: Destination.h:166
void SetToAddresses(Aws::Vector< Aws::String > &&value)
Definition: Destination.h:66
void SetCcAddresses(const Aws::Vector< Aws::String > &value)
Definition: Destination.h:101
Destination & AddBccAddresses(const char *value)
Definition: Destination.h:171
Destination & AddToAddresses(const char *value)
Definition: Destination.h:91
const Aws::Vector< Aws::String > & GetBccAddresses() const
Definition: Destination.h:136
Destination & WithToAddresses(Aws::Vector< Aws::String > &&value)
Definition: Destination.h:76
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:27
Destination & WithBccAddresses(Aws::Vector< Aws::String > &&value)
Definition: Destination.h:156
const Aws::Vector< Aws::String > & GetToAddresses() const
Definition: Destination.h:56
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:31
Destination & WithCcAddresses(const Aws::Vector< Aws::String > &value)
Definition: Destination.h:111
Destination & WithToAddresses(const Aws::Vector< Aws::String > &value)
Definition: Destination.h:71
Destination & WithBccAddresses(const Aws::Vector< Aws::String > &value)
Definition: Destination.h:151
void SetBccAddresses(Aws::Vector< Aws::String > &&value)
Definition: Destination.h:146
Destination & AddCcAddresses(const char *value)
Definition: Destination.h:131
void SetCcAddresses(Aws::Vector< Aws::String > &&value)
Definition: Destination.h:106
void SetToAddresses(const Aws::Vector< Aws::String > &value)
Definition: Destination.h:61
Destination & AddBccAddresses(const Aws::String &value)
Definition: Destination.h:161
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
const Aws::Vector< Aws::String > & GetCcAddresses() const
Definition: Destination.h:96
Destination & WithCcAddresses(Aws::Vector< Aws::String > &&value)
Definition: Destination.h:116
Destination & AddCcAddresses(const Aws::String &value)
Definition: Destination.h:121
Destination & AddCcAddresses(Aws::String &&value)
Definition: Destination.h:126
#define AWS_SES_API
Definition: SES_EXPORTS.h:37
Destination & AddToAddresses(const Aws::String &value)
Definition: Destination.h:81
JSON (JavaScript Object Notation).
Destination & AddToAddresses(Aws::String &&value)
Definition: Destination.h:86