AWS SDK for C++  0.12.9
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 
33  {
34  public:
36  Aws::String SerializePayload() const override;
37 
55  inline const Aws::String& GetSource() const{ return m_source; }
56 
74  inline void SetSource(const Aws::String& value) { m_sourceHasBeenSet = true; m_source = value; }
75 
93  inline void SetSource(Aws::String&& value) { m_sourceHasBeenSet = true; m_source = value; }
94 
112  inline void SetSource(const char* value) { m_sourceHasBeenSet = true; m_source.assign(value); }
113 
131  inline SendEmailRequest& WithSource(const Aws::String& value) { SetSource(value); return *this;}
132 
150  inline SendEmailRequest& WithSource(Aws::String&& value) { SetSource(value); return *this;}
151 
169  inline SendEmailRequest& WithSource(const char* value) { SetSource(value); return *this;}
170 
174  inline const Destination& GetDestination() const{ return m_destination; }
175 
179  inline void SetDestination(const Destination& value) { m_destinationHasBeenSet = true; m_destination = value; }
180 
184  inline void SetDestination(Destination&& value) { m_destinationHasBeenSet = true; m_destination = value; }
185 
189  inline SendEmailRequest& WithDestination(const Destination& value) { SetDestination(value); return *this;}
190 
194  inline SendEmailRequest& WithDestination(Destination&& value) { SetDestination(value); return *this;}
195 
199  inline const Message& GetMessage() const{ return m_message; }
200 
204  inline void SetMessage(const Message& value) { m_messageHasBeenSet = true; m_message = value; }
205 
209  inline void SetMessage(Message&& value) { m_messageHasBeenSet = true; m_message = value; }
210 
214  inline SendEmailRequest& WithMessage(const Message& value) { SetMessage(value); return *this;}
215 
219  inline SendEmailRequest& WithMessage(Message&& value) { SetMessage(value); return *this;}
220 
225  inline const Aws::Vector<Aws::String>& GetReplyToAddresses() const{ return m_replyToAddresses; }
226 
231  inline void SetReplyToAddresses(const Aws::Vector<Aws::String>& value) { m_replyToAddressesHasBeenSet = true; m_replyToAddresses = value; }
232 
237  inline void SetReplyToAddresses(Aws::Vector<Aws::String>&& value) { m_replyToAddressesHasBeenSet = true; m_replyToAddresses = value; }
238 
243  inline SendEmailRequest& WithReplyToAddresses(const Aws::Vector<Aws::String>& value) { SetReplyToAddresses(value); return *this;}
244 
249  inline SendEmailRequest& WithReplyToAddresses(Aws::Vector<Aws::String>&& value) { SetReplyToAddresses(value); return *this;}
250 
255  inline SendEmailRequest& AddReplyToAddresses(const Aws::String& value) { m_replyToAddressesHasBeenSet = true; m_replyToAddresses.push_back(value); return *this; }
256 
261  inline SendEmailRequest& AddReplyToAddresses(Aws::String&& value) { m_replyToAddressesHasBeenSet = true; m_replyToAddresses.push_back(value); return *this; }
262 
267  inline SendEmailRequest& AddReplyToAddresses(const char* value) { m_replyToAddressesHasBeenSet = true; m_replyToAddresses.push_back(value); return *this; }
268 
278  inline const Aws::String& GetReturnPath() const{ return m_returnPath; }
279 
289  inline void SetReturnPath(const Aws::String& value) { m_returnPathHasBeenSet = true; m_returnPath = value; }
290 
300  inline void SetReturnPath(Aws::String&& value) { m_returnPathHasBeenSet = true; m_returnPath = value; }
301 
311  inline void SetReturnPath(const char* value) { m_returnPathHasBeenSet = true; m_returnPath.assign(value); }
312 
322  inline SendEmailRequest& WithReturnPath(const Aws::String& value) { SetReturnPath(value); return *this;}
323 
333  inline SendEmailRequest& WithReturnPath(Aws::String&& value) { SetReturnPath(value); return *this;}
334 
344  inline SendEmailRequest& WithReturnPath(const char* value) { SetReturnPath(value); return *this;}
345 
360  inline const Aws::String& GetSourceArn() const{ return m_sourceArn; }
361 
376  inline void SetSourceArn(const Aws::String& value) { m_sourceArnHasBeenSet = true; m_sourceArn = value; }
377 
392  inline void SetSourceArn(Aws::String&& value) { m_sourceArnHasBeenSet = true; m_sourceArn = value; }
393 
408  inline void SetSourceArn(const char* value) { m_sourceArnHasBeenSet = true; m_sourceArn.assign(value); }
409 
424  inline SendEmailRequest& WithSourceArn(const Aws::String& value) { SetSourceArn(value); return *this;}
425 
440  inline SendEmailRequest& WithSourceArn(Aws::String&& value) { SetSourceArn(value); return *this;}
441 
456  inline SendEmailRequest& WithSourceArn(const char* value) { SetSourceArn(value); return *this;}
457 
473  inline const Aws::String& GetReturnPathArn() const{ return m_returnPathArn; }
474 
490  inline void SetReturnPathArn(const Aws::String& value) { m_returnPathArnHasBeenSet = true; m_returnPathArn = value; }
491 
507  inline void SetReturnPathArn(Aws::String&& value) { m_returnPathArnHasBeenSet = true; m_returnPathArn = value; }
508 
524  inline void SetReturnPathArn(const char* value) { m_returnPathArnHasBeenSet = true; m_returnPathArn.assign(value); }
525 
541  inline SendEmailRequest& WithReturnPathArn(const Aws::String& value) { SetReturnPathArn(value); return *this;}
542 
558  inline SendEmailRequest& WithReturnPathArn(Aws::String&& value) { SetReturnPathArn(value); return *this;}
559 
575  inline SendEmailRequest& WithReturnPathArn(const char* value) { SetReturnPathArn(value); return *this;}
576 
577  private:
578  Aws::String m_source;
579  bool m_sourceHasBeenSet;
580  Destination m_destination;
581  bool m_destinationHasBeenSet;
582  Message m_message;
583  bool m_messageHasBeenSet;
584  Aws::Vector<Aws::String> m_replyToAddresses;
585  bool m_replyToAddressesHasBeenSet;
586  Aws::String m_returnPath;
587  bool m_returnPathHasBeenSet;
588  Aws::String m_sourceArn;
589  bool m_sourceArnHasBeenSet;
590  Aws::String m_returnPathArn;
591  bool m_returnPathArnHasBeenSet;
592  };
593 
594 } // namespace Model
595 } // namespace SES
596 } // 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:34
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).