AWS SDK for C++  0.12.9
AWS SDK for C++
SendRawEmailRequest.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>
21 
22 namespace Aws
23 {
24 namespace SES
25 {
26 namespace Model
27 {
28 
32  {
33  public:
35  Aws::String SerializePayload() const override;
36 
50  inline const Aws::String& GetSource() const{ return m_source; }
51 
65  inline void SetSource(const Aws::String& value) { m_sourceHasBeenSet = true; m_source = value; }
66 
80  inline void SetSource(Aws::String&& value) { m_sourceHasBeenSet = true; m_source = value; }
81 
95  inline void SetSource(const char* value) { m_sourceHasBeenSet = true; m_source.assign(value); }
96 
110  inline SendRawEmailRequest& WithSource(const Aws::String& value) { SetSource(value); return *this;}
111 
125  inline SendRawEmailRequest& WithSource(Aws::String&& value) { SetSource(value); return *this;}
126 
140  inline SendRawEmailRequest& WithSource(const char* value) { SetSource(value); return *this;}
141 
146  inline const Aws::Vector<Aws::String>& GetDestinations() const{ return m_destinations; }
147 
152  inline void SetDestinations(const Aws::Vector<Aws::String>& value) { m_destinationsHasBeenSet = true; m_destinations = value; }
153 
158  inline void SetDestinations(Aws::Vector<Aws::String>&& value) { m_destinationsHasBeenSet = true; m_destinations = value; }
159 
164  inline SendRawEmailRequest& WithDestinations(const Aws::Vector<Aws::String>& value) { SetDestinations(value); return *this;}
165 
170  inline SendRawEmailRequest& WithDestinations(Aws::Vector<Aws::String>&& value) { SetDestinations(value); return *this;}
171 
176  inline SendRawEmailRequest& AddDestinations(const Aws::String& value) { m_destinationsHasBeenSet = true; m_destinations.push_back(value); return *this; }
177 
182  inline SendRawEmailRequest& AddDestinations(Aws::String&& value) { m_destinationsHasBeenSet = true; m_destinations.push_back(value); return *this; }
183 
188  inline SendRawEmailRequest& AddDestinations(const char* value) { m_destinationsHasBeenSet = true; m_destinations.push_back(value); return *this; }
189 
201  inline const RawMessage& GetRawMessage() const{ return m_rawMessage; }
202 
214  inline void SetRawMessage(const RawMessage& value) { m_rawMessageHasBeenSet = true; m_rawMessage = value; }
215 
227  inline void SetRawMessage(RawMessage&& value) { m_rawMessageHasBeenSet = true; m_rawMessage = value; }
228 
240  inline SendRawEmailRequest& WithRawMessage(const RawMessage& value) { SetRawMessage(value); return *this;}
241 
253  inline SendRawEmailRequest& WithRawMessage(RawMessage&& value) { SetRawMessage(value); return *this;}
254 
268  inline const Aws::String& GetFromArn() const{ return m_fromArn; }
269 
283  inline void SetFromArn(const Aws::String& value) { m_fromArnHasBeenSet = true; m_fromArn = value; }
284 
298  inline void SetFromArn(Aws::String&& value) { m_fromArnHasBeenSet = true; m_fromArn = value; }
299 
313  inline void SetFromArn(const char* value) { m_fromArnHasBeenSet = true; m_fromArn.assign(value); }
314 
328  inline SendRawEmailRequest& WithFromArn(const Aws::String& value) { SetFromArn(value); return *this;}
329 
343  inline SendRawEmailRequest& WithFromArn(Aws::String&& value) { SetFromArn(value); return *this;}
344 
358  inline SendRawEmailRequest& WithFromArn(const char* value) { SetFromArn(value); return *this;}
359 
379  inline const Aws::String& GetSourceArn() const{ return m_sourceArn; }
380 
400  inline void SetSourceArn(const Aws::String& value) { m_sourceArnHasBeenSet = true; m_sourceArn = value; }
401 
421  inline void SetSourceArn(Aws::String&& value) { m_sourceArnHasBeenSet = true; m_sourceArn = value; }
422 
442  inline void SetSourceArn(const char* value) { m_sourceArnHasBeenSet = true; m_sourceArn.assign(value); }
443 
463  inline SendRawEmailRequest& WithSourceArn(const Aws::String& value) { SetSourceArn(value); return *this;}
464 
484  inline SendRawEmailRequest& WithSourceArn(Aws::String&& value) { SetSourceArn(value); return *this;}
485 
505  inline SendRawEmailRequest& WithSourceArn(const char* value) { SetSourceArn(value); return *this;}
506 
527  inline const Aws::String& GetReturnPathArn() const{ return m_returnPathArn; }
528 
549  inline void SetReturnPathArn(const Aws::String& value) { m_returnPathArnHasBeenSet = true; m_returnPathArn = value; }
550 
571  inline void SetReturnPathArn(Aws::String&& value) { m_returnPathArnHasBeenSet = true; m_returnPathArn = value; }
572 
593  inline void SetReturnPathArn(const char* value) { m_returnPathArnHasBeenSet = true; m_returnPathArn.assign(value); }
594 
615  inline SendRawEmailRequest& WithReturnPathArn(const Aws::String& value) { SetReturnPathArn(value); return *this;}
616 
637  inline SendRawEmailRequest& WithReturnPathArn(Aws::String&& value) { SetReturnPathArn(value); return *this;}
638 
659  inline SendRawEmailRequest& WithReturnPathArn(const char* value) { SetReturnPathArn(value); return *this;}
660 
661  private:
662  Aws::String m_source;
663  bool m_sourceHasBeenSet;
664  Aws::Vector<Aws::String> m_destinations;
665  bool m_destinationsHasBeenSet;
666  RawMessage m_rawMessage;
667  bool m_rawMessageHasBeenSet;
668  Aws::String m_fromArn;
669  bool m_fromArnHasBeenSet;
670  Aws::String m_sourceArn;
671  bool m_sourceArnHasBeenSet;
672  Aws::String m_returnPathArn;
673  bool m_returnPathArnHasBeenSet;
674  };
675 
676 } // namespace Model
677 } // namespace SES
678 } // namespace Aws
const Aws::String & GetSourceArn() const
const Aws::String & GetFromArn() const
void SetDestinations(Aws::Vector< Aws::String > &&value)
SendRawEmailRequest & WithSource(const Aws::String &value)
void SetSource(const Aws::String &value)
SendRawEmailRequest & WithReturnPathArn(Aws::String &&value)
void SetRawMessage(const RawMessage &value)
const RawMessage & GetRawMessage() const
SendRawEmailRequest & WithReturnPathArn(const char *value)
void SetFromArn(const Aws::String &value)
SendRawEmailRequest & WithSourceArn(const char *value)
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:27
SendRawEmailRequest & WithFromArn(const Aws::String &value)
const Aws::String & GetSource() const
SendRawEmailRequest & WithSourceArn(const Aws::String &value)
SendRawEmailRequest & WithSource(Aws::String &&value)
void SetSourceArn(const Aws::String &value)
void SetDestinations(const Aws::Vector< Aws::String > &value)
const Aws::Vector< Aws::String > & GetDestinations() const
SendRawEmailRequest & WithDestinations(const Aws::Vector< Aws::String > &value)
SendRawEmailRequest & WithDestinations(Aws::Vector< Aws::String > &&value)
SendRawEmailRequest & WithRawMessage(const RawMessage &value)
void SetReturnPathArn(const Aws::String &value)
SendRawEmailRequest & WithReturnPathArn(const Aws::String &value)
SendRawEmailRequest & AddDestinations(const char *value)
SendRawEmailRequest & WithFromArn(Aws::String &&value)
SendRawEmailRequest & WithRawMessage(RawMessage &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
void SetReturnPathArn(Aws::String &&value)
SendRawEmailRequest & AddDestinations(Aws::String &&value)
const Aws::String & GetReturnPathArn() const
SendRawEmailRequest & AddDestinations(const Aws::String &value)
SendRawEmailRequest & WithSource(const char *value)
#define AWS_SES_API
Definition: SES_EXPORTS.h:34
SendRawEmailRequest & WithSourceArn(Aws::String &&value)
void SetSourceArn(Aws::String &&value)
SendRawEmailRequest & WithFromArn(const char *value)
JSON (JavaScript Object Notation).