AWS SDK for C++  0.14.3
AWS SDK for C++
SendEmailRequest.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>
17 #include <aws/email/SESRequest.h>
22 
23 namespace Aws
24 {
25 namespace SES
26 {
27 namespace Model
28 {
29 
37  {
38  public:
40  Aws::String SerializePayload() const override;
41 
59  inline const Aws::String& GetSource() const{ return m_source; }
60 
78  inline void SetSource(const Aws::String& value) { m_sourceHasBeenSet = true; m_source = value; }
79 
97  inline void SetSource(Aws::String&& value) { m_sourceHasBeenSet = true; m_source = value; }
98 
116  inline void SetSource(const char* value) { m_sourceHasBeenSet = true; m_source.assign(value); }
117 
135  inline SendEmailRequest& WithSource(const Aws::String& value) { SetSource(value); return *this;}
136 
154  inline SendEmailRequest& WithSource(Aws::String&& value) { SetSource(value); return *this;}
155 
173  inline SendEmailRequest& WithSource(const char* value) { SetSource(value); return *this;}
174 
178  inline const Destination& GetDestination() const{ return m_destination; }
179 
183  inline void SetDestination(const Destination& value) { m_destinationHasBeenSet = true; m_destination = value; }
184 
188  inline void SetDestination(Destination&& value) { m_destinationHasBeenSet = true; m_destination = value; }
189 
193  inline SendEmailRequest& WithDestination(const Destination& value) { SetDestination(value); return *this;}
194 
198  inline SendEmailRequest& WithDestination(Destination&& value) { SetDestination(value); return *this;}
199 
203  inline const Message& GetMessage() const{ return m_message; }
204 
208  inline void SetMessage(const Message& value) { m_messageHasBeenSet = true; m_message = value; }
209 
213  inline void SetMessage(Message&& value) { m_messageHasBeenSet = true; m_message = value; }
214 
218  inline SendEmailRequest& WithMessage(const Message& value) { SetMessage(value); return *this;}
219 
223  inline SendEmailRequest& WithMessage(Message&& value) { SetMessage(value); return *this;}
224 
229  inline const Aws::Vector<Aws::String>& GetReplyToAddresses() const{ return m_replyToAddresses; }
230 
235  inline void SetReplyToAddresses(const Aws::Vector<Aws::String>& value) { m_replyToAddressesHasBeenSet = true; m_replyToAddresses = value; }
236 
241  inline void SetReplyToAddresses(Aws::Vector<Aws::String>&& value) { m_replyToAddressesHasBeenSet = true; m_replyToAddresses = value; }
242 
247  inline SendEmailRequest& WithReplyToAddresses(const Aws::Vector<Aws::String>& value) { SetReplyToAddresses(value); return *this;}
248 
253  inline SendEmailRequest& WithReplyToAddresses(Aws::Vector<Aws::String>&& value) { SetReplyToAddresses(value); return *this;}
254 
259  inline SendEmailRequest& AddReplyToAddresses(const Aws::String& value) { m_replyToAddressesHasBeenSet = true; m_replyToAddresses.push_back(value); return *this; }
260 
265  inline SendEmailRequest& AddReplyToAddresses(Aws::String&& value) { m_replyToAddressesHasBeenSet = true; m_replyToAddresses.push_back(value); return *this; }
266 
271  inline SendEmailRequest& AddReplyToAddresses(const char* value) { m_replyToAddressesHasBeenSet = true; m_replyToAddresses.push_back(value); return *this; }
272 
282  inline const Aws::String& GetReturnPath() const{ return m_returnPath; }
283 
293  inline void SetReturnPath(const Aws::String& value) { m_returnPathHasBeenSet = true; m_returnPath = value; }
294 
304  inline void SetReturnPath(Aws::String&& value) { m_returnPathHasBeenSet = true; m_returnPath = value; }
305 
315  inline void SetReturnPath(const char* value) { m_returnPathHasBeenSet = true; m_returnPath.assign(value); }
316 
326  inline SendEmailRequest& WithReturnPath(const Aws::String& value) { SetReturnPath(value); return *this;}
327 
337  inline SendEmailRequest& WithReturnPath(Aws::String&& value) { SetReturnPath(value); return *this;}
338 
348  inline SendEmailRequest& WithReturnPath(const char* value) { SetReturnPath(value); return *this;}
349 
364  inline const Aws::String& GetSourceArn() const{ return m_sourceArn; }
365 
380  inline void SetSourceArn(const Aws::String& value) { m_sourceArnHasBeenSet = true; m_sourceArn = value; }
381 
396  inline void SetSourceArn(Aws::String&& value) { m_sourceArnHasBeenSet = true; m_sourceArn = value; }
397 
412  inline void SetSourceArn(const char* value) { m_sourceArnHasBeenSet = true; m_sourceArn.assign(value); }
413 
428  inline SendEmailRequest& WithSourceArn(const Aws::String& value) { SetSourceArn(value); return *this;}
429 
444  inline SendEmailRequest& WithSourceArn(Aws::String&& value) { SetSourceArn(value); return *this;}
445 
460  inline SendEmailRequest& WithSourceArn(const char* value) { SetSourceArn(value); return *this;}
461 
477  inline const Aws::String& GetReturnPathArn() const{ return m_returnPathArn; }
478 
494  inline void SetReturnPathArn(const Aws::String& value) { m_returnPathArnHasBeenSet = true; m_returnPathArn = value; }
495 
511  inline void SetReturnPathArn(Aws::String&& value) { m_returnPathArnHasBeenSet = true; m_returnPathArn = value; }
512 
528  inline void SetReturnPathArn(const char* value) { m_returnPathArnHasBeenSet = true; m_returnPathArn.assign(value); }
529 
545  inline SendEmailRequest& WithReturnPathArn(const Aws::String& value) { SetReturnPathArn(value); return *this;}
546 
562  inline SendEmailRequest& WithReturnPathArn(Aws::String&& value) { SetReturnPathArn(value); return *this;}
563 
579  inline SendEmailRequest& WithReturnPathArn(const char* value) { SetReturnPathArn(value); return *this;}
580 
581  private:
582  Aws::String m_source;
583  bool m_sourceHasBeenSet;
584  Destination m_destination;
585  bool m_destinationHasBeenSet;
586  Message m_message;
587  bool m_messageHasBeenSet;
588  Aws::Vector<Aws::String> m_replyToAddresses;
589  bool m_replyToAddressesHasBeenSet;
590  Aws::String m_returnPath;
591  bool m_returnPathHasBeenSet;
592  Aws::String m_sourceArn;
593  bool m_sourceArnHasBeenSet;
594  Aws::String m_returnPathArn;
595  bool m_returnPathArnHasBeenSet;
596  };
597 
598 } // namespace Model
599 } // namespace SES
600 } // namespace Aws
void SetSourceArn(Aws::String &&value)
SendEmailRequest & WithSourceArn(const Aws::String &value)
void SetSourceArn(const Aws::String &value)
void SetMessage(const Message &value)
SendEmailRequest & WithReplyToAddresses(const Aws::Vector< Aws::String > &value)
SendEmailRequest & WithReturnPath(Aws::String &&value)
void SetSource(Aws::String &&value)
void SetReturnPathArn(const Aws::String &value)
SendEmailRequest & WithDestination(Destination &&value)
SendEmailRequest & WithReturnPathArn(const Aws::String &value)
SendEmailRequest & WithDestination(const Destination &value)
void SetSourceArn(const char *value)
void SetReplyToAddresses(const Aws::Vector< Aws::String > &value)
SendEmailRequest & WithReturnPath(const Aws::String &value)
SendEmailRequest & WithReturnPath(const char *value)
void SetReplyToAddresses(Aws::Vector< Aws::String > &&value)
SendEmailRequest & WithSource(const char *value)
void SetReturnPath(const char *value)
SendEmailRequest & AddReplyToAddresses(const Aws::String &value)
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:27
void SetDestination(const Destination &value)
SendEmailRequest & WithReturnPathArn(const char *value)
SendEmailRequest & WithReplyToAddresses(Aws::Vector< Aws::String > &&value)
const Message & GetMessage() const
SendEmailRequest & WithSource(const Aws::String &value)
SendEmailRequest & WithReturnPathArn(Aws::String &&value)
const Aws::Vector< Aws::String > & GetReplyToAddresses() const
SendEmailRequest & AddReplyToAddresses(const char *value)
SendEmailRequest & WithMessage(Message &&value)
SendEmailRequest & WithSourceArn(Aws::String &&value)
const Aws::String & GetReturnPathArn() const
void SetSource(const char *value)
const Aws::String & GetReturnPath() const
SendEmailRequest & AddReplyToAddresses(Aws::String &&value)
void SetReturnPathArn(Aws::String &&value)
void SetDestination(Destination &&value)
void SetReturnPath(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
const Destination & GetDestination() const
void SetReturnPathArn(const char *value)
#define AWS_SES_API
Definition: SES_EXPORTS.h:37
const Aws::String & GetSource() const
SendEmailRequest & WithMessage(const Message &value)
const Aws::String & GetSourceArn() const
SendEmailRequest & WithSource(Aws::String &&value)
SendEmailRequest & WithSourceArn(const char *value)
void SetSource(const Aws::String &value)
void SetReturnPath(const Aws::String &value)
JSON (JavaScript Object Notation).