AWS SDK for C++  0.14.3
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 
36  {
37  public:
39  Aws::String SerializePayload() const override;
40 
54  inline const Aws::String& GetSource() const{ return m_source; }
55 
69  inline void SetSource(const Aws::String& value) { m_sourceHasBeenSet = true; m_source = value; }
70 
84  inline void SetSource(Aws::String&& value) { m_sourceHasBeenSet = true; m_source = value; }
85 
99  inline void SetSource(const char* value) { m_sourceHasBeenSet = true; m_source.assign(value); }
100 
114  inline SendRawEmailRequest& WithSource(const Aws::String& value) { SetSource(value); return *this;}
115 
129  inline SendRawEmailRequest& WithSource(Aws::String&& value) { SetSource(value); return *this;}
130 
144  inline SendRawEmailRequest& WithSource(const char* value) { SetSource(value); return *this;}
145 
150  inline const Aws::Vector<Aws::String>& GetDestinations() const{ return m_destinations; }
151 
156  inline void SetDestinations(const Aws::Vector<Aws::String>& value) { m_destinationsHasBeenSet = true; m_destinations = value; }
157 
162  inline void SetDestinations(Aws::Vector<Aws::String>&& value) { m_destinationsHasBeenSet = true; m_destinations = value; }
163 
168  inline SendRawEmailRequest& WithDestinations(const Aws::Vector<Aws::String>& value) { SetDestinations(value); return *this;}
169 
174  inline SendRawEmailRequest& WithDestinations(Aws::Vector<Aws::String>&& value) { SetDestinations(value); return *this;}
175 
180  inline SendRawEmailRequest& AddDestinations(const Aws::String& value) { m_destinationsHasBeenSet = true; m_destinations.push_back(value); return *this; }
181 
186  inline SendRawEmailRequest& AddDestinations(Aws::String&& value) { m_destinationsHasBeenSet = true; m_destinations.push_back(value); return *this; }
187 
192  inline SendRawEmailRequest& AddDestinations(const char* value) { m_destinationsHasBeenSet = true; m_destinations.push_back(value); return *this; }
193 
205  inline const RawMessage& GetRawMessage() const{ return m_rawMessage; }
206 
218  inline void SetRawMessage(const RawMessage& value) { m_rawMessageHasBeenSet = true; m_rawMessage = value; }
219 
231  inline void SetRawMessage(RawMessage&& value) { m_rawMessageHasBeenSet = true; m_rawMessage = value; }
232 
244  inline SendRawEmailRequest& WithRawMessage(const RawMessage& value) { SetRawMessage(value); return *this;}
245 
257  inline SendRawEmailRequest& WithRawMessage(RawMessage&& value) { SetRawMessage(value); return *this;}
258 
272  inline const Aws::String& GetFromArn() const{ return m_fromArn; }
273 
287  inline void SetFromArn(const Aws::String& value) { m_fromArnHasBeenSet = true; m_fromArn = value; }
288 
302  inline void SetFromArn(Aws::String&& value) { m_fromArnHasBeenSet = true; m_fromArn = value; }
303 
317  inline void SetFromArn(const char* value) { m_fromArnHasBeenSet = true; m_fromArn.assign(value); }
318 
332  inline SendRawEmailRequest& WithFromArn(const Aws::String& value) { SetFromArn(value); return *this;}
333 
347  inline SendRawEmailRequest& WithFromArn(Aws::String&& value) { SetFromArn(value); return *this;}
348 
362  inline SendRawEmailRequest& WithFromArn(const char* value) { SetFromArn(value); return *this;}
363 
383  inline const Aws::String& GetSourceArn() const{ return m_sourceArn; }
384 
404  inline void SetSourceArn(const Aws::String& value) { m_sourceArnHasBeenSet = true; m_sourceArn = value; }
405 
425  inline void SetSourceArn(Aws::String&& value) { m_sourceArnHasBeenSet = true; m_sourceArn = value; }
426 
446  inline void SetSourceArn(const char* value) { m_sourceArnHasBeenSet = true; m_sourceArn.assign(value); }
447 
467  inline SendRawEmailRequest& WithSourceArn(const Aws::String& value) { SetSourceArn(value); return *this;}
468 
488  inline SendRawEmailRequest& WithSourceArn(Aws::String&& value) { SetSourceArn(value); return *this;}
489 
509  inline SendRawEmailRequest& WithSourceArn(const char* value) { SetSourceArn(value); return *this;}
510 
531  inline const Aws::String& GetReturnPathArn() const{ return m_returnPathArn; }
532 
553  inline void SetReturnPathArn(const Aws::String& value) { m_returnPathArnHasBeenSet = true; m_returnPathArn = value; }
554 
575  inline void SetReturnPathArn(Aws::String&& value) { m_returnPathArnHasBeenSet = true; m_returnPathArn = value; }
576 
597  inline void SetReturnPathArn(const char* value) { m_returnPathArnHasBeenSet = true; m_returnPathArn.assign(value); }
598 
619  inline SendRawEmailRequest& WithReturnPathArn(const Aws::String& value) { SetReturnPathArn(value); return *this;}
620 
641  inline SendRawEmailRequest& WithReturnPathArn(Aws::String&& value) { SetReturnPathArn(value); return *this;}
642 
663  inline SendRawEmailRequest& WithReturnPathArn(const char* value) { SetReturnPathArn(value); return *this;}
664 
665  private:
666  Aws::String m_source;
667  bool m_sourceHasBeenSet;
668  Aws::Vector<Aws::String> m_destinations;
669  bool m_destinationsHasBeenSet;
670  RawMessage m_rawMessage;
671  bool m_rawMessageHasBeenSet;
672  Aws::String m_fromArn;
673  bool m_fromArnHasBeenSet;
674  Aws::String m_sourceArn;
675  bool m_sourceArnHasBeenSet;
676  Aws::String m_returnPathArn;
677  bool m_returnPathArnHasBeenSet;
678  };
679 
680 } // namespace Model
681 } // namespace SES
682 } // 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:37
SendRawEmailRequest & WithSourceArn(Aws::String &&value)
void SetSourceArn(Aws::String &&value)
SendRawEmailRequest & WithFromArn(const char *value)
JSON (JavaScript Object Notation).