AWS SDK for C++  1.8.128
AWS SDK for C++
SendEmailRequest.h
Go to the documentation of this file.
1 
6 #pragma once
8 #include <aws/email/SESRequest.h>
14 #include <utility>
15 
16 namespace Aws
17 {
18 namespace SES
19 {
20 namespace Model
21 {
22 
32  {
33  public:
35 
36  // Service request name is the Operation name which will send this request out,
37  // each operation should has unique request name, so that we can get operation's name from this request.
38  // Note: this is not true for response, multiple operations may have the same response name,
39  // so we can not get operation's name from response.
40  inline virtual const char* GetServiceRequestName() const override { return "SendEmail"; }
41 
42  Aws::String SerializePayload() const override;
43 
44  protected:
45  void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
46 
47  public:
48 
74  inline const Aws::String& GetSource() const{ return m_source; }
75 
101  inline bool SourceHasBeenSet() const { return m_sourceHasBeenSet; }
102 
128  inline void SetSource(const Aws::String& value) { m_sourceHasBeenSet = true; m_source = value; }
129 
155  inline void SetSource(Aws::String&& value) { m_sourceHasBeenSet = true; m_source = std::move(value); }
156 
182  inline void SetSource(const char* value) { m_sourceHasBeenSet = true; m_source.assign(value); }
183 
209  inline SendEmailRequest& WithSource(const Aws::String& value) { SetSource(value); return *this;}
210 
236  inline SendEmailRequest& WithSource(Aws::String&& value) { SetSource(std::move(value)); return *this;}
237 
263  inline SendEmailRequest& WithSource(const char* value) { SetSource(value); return *this;}
264 
265 
269  inline const Destination& GetDestination() const{ return m_destination; }
270 
274  inline bool DestinationHasBeenSet() const { return m_destinationHasBeenSet; }
275 
279  inline void SetDestination(const Destination& value) { m_destinationHasBeenSet = true; m_destination = value; }
280 
284  inline void SetDestination(Destination&& value) { m_destinationHasBeenSet = true; m_destination = std::move(value); }
285 
289  inline SendEmailRequest& WithDestination(const Destination& value) { SetDestination(value); return *this;}
290 
294  inline SendEmailRequest& WithDestination(Destination&& value) { SetDestination(std::move(value)); return *this;}
295 
296 
300  inline const Message& GetMessage() const{ return m_message; }
301 
305  inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
306 
310  inline void SetMessage(const Message& value) { m_messageHasBeenSet = true; m_message = value; }
311 
315  inline void SetMessage(Message&& value) { m_messageHasBeenSet = true; m_message = std::move(value); }
316 
320  inline SendEmailRequest& WithMessage(const Message& value) { SetMessage(value); return *this;}
321 
325  inline SendEmailRequest& WithMessage(Message&& value) { SetMessage(std::move(value)); return *this;}
326 
327 
332  inline const Aws::Vector<Aws::String>& GetReplyToAddresses() const{ return m_replyToAddresses; }
333 
338  inline bool ReplyToAddressesHasBeenSet() const { return m_replyToAddressesHasBeenSet; }
339 
344  inline void SetReplyToAddresses(const Aws::Vector<Aws::String>& value) { m_replyToAddressesHasBeenSet = true; m_replyToAddresses = value; }
345 
350  inline void SetReplyToAddresses(Aws::Vector<Aws::String>&& value) { m_replyToAddressesHasBeenSet = true; m_replyToAddresses = std::move(value); }
351 
356  inline SendEmailRequest& WithReplyToAddresses(const Aws::Vector<Aws::String>& value) { SetReplyToAddresses(value); return *this;}
357 
362  inline SendEmailRequest& WithReplyToAddresses(Aws::Vector<Aws::String>&& value) { SetReplyToAddresses(std::move(value)); return *this;}
363 
368  inline SendEmailRequest& AddReplyToAddresses(const Aws::String& value) { m_replyToAddressesHasBeenSet = true; m_replyToAddresses.push_back(value); return *this; }
369 
374  inline SendEmailRequest& AddReplyToAddresses(Aws::String&& value) { m_replyToAddressesHasBeenSet = true; m_replyToAddresses.push_back(std::move(value)); return *this; }
375 
380  inline SendEmailRequest& AddReplyToAddresses(const char* value) { m_replyToAddressesHasBeenSet = true; m_replyToAddresses.push_back(value); return *this; }
381 
382 
392  inline const Aws::String& GetReturnPath() const{ return m_returnPath; }
393 
403  inline bool ReturnPathHasBeenSet() const { return m_returnPathHasBeenSet; }
404 
414  inline void SetReturnPath(const Aws::String& value) { m_returnPathHasBeenSet = true; m_returnPath = value; }
415 
425  inline void SetReturnPath(Aws::String&& value) { m_returnPathHasBeenSet = true; m_returnPath = std::move(value); }
426 
436  inline void SetReturnPath(const char* value) { m_returnPathHasBeenSet = true; m_returnPath.assign(value); }
437 
447  inline SendEmailRequest& WithReturnPath(const Aws::String& value) { SetReturnPath(value); return *this;}
448 
458  inline SendEmailRequest& WithReturnPath(Aws::String&& value) { SetReturnPath(std::move(value)); return *this;}
459 
469  inline SendEmailRequest& WithReturnPath(const char* value) { SetReturnPath(value); return *this;}
470 
471 
486  inline const Aws::String& GetSourceArn() const{ return m_sourceArn; }
487 
502  inline bool SourceArnHasBeenSet() const { return m_sourceArnHasBeenSet; }
503 
518  inline void SetSourceArn(const Aws::String& value) { m_sourceArnHasBeenSet = true; m_sourceArn = value; }
519 
534  inline void SetSourceArn(Aws::String&& value) { m_sourceArnHasBeenSet = true; m_sourceArn = std::move(value); }
535 
550  inline void SetSourceArn(const char* value) { m_sourceArnHasBeenSet = true; m_sourceArn.assign(value); }
551 
566  inline SendEmailRequest& WithSourceArn(const Aws::String& value) { SetSourceArn(value); return *this;}
567 
582  inline SendEmailRequest& WithSourceArn(Aws::String&& value) { SetSourceArn(std::move(value)); return *this;}
583 
598  inline SendEmailRequest& WithSourceArn(const char* value) { SetSourceArn(value); return *this;}
599 
600 
616  inline const Aws::String& GetReturnPathArn() const{ return m_returnPathArn; }
617 
633  inline bool ReturnPathArnHasBeenSet() const { return m_returnPathArnHasBeenSet; }
634 
650  inline void SetReturnPathArn(const Aws::String& value) { m_returnPathArnHasBeenSet = true; m_returnPathArn = value; }
651 
667  inline void SetReturnPathArn(Aws::String&& value) { m_returnPathArnHasBeenSet = true; m_returnPathArn = std::move(value); }
668 
684  inline void SetReturnPathArn(const char* value) { m_returnPathArnHasBeenSet = true; m_returnPathArn.assign(value); }
685 
701  inline SendEmailRequest& WithReturnPathArn(const Aws::String& value) { SetReturnPathArn(value); return *this;}
702 
718  inline SendEmailRequest& WithReturnPathArn(Aws::String&& value) { SetReturnPathArn(std::move(value)); return *this;}
719 
735  inline SendEmailRequest& WithReturnPathArn(const char* value) { SetReturnPathArn(value); return *this;}
736 
737 
743  inline const Aws::Vector<MessageTag>& GetTags() const{ return m_tags; }
744 
750  inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
751 
757  inline void SetTags(const Aws::Vector<MessageTag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
758 
764  inline void SetTags(Aws::Vector<MessageTag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
765 
771  inline SendEmailRequest& WithTags(const Aws::Vector<MessageTag>& value) { SetTags(value); return *this;}
772 
778  inline SendEmailRequest& WithTags(Aws::Vector<MessageTag>&& value) { SetTags(std::move(value)); return *this;}
779 
785  inline SendEmailRequest& AddTags(const MessageTag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
786 
792  inline SendEmailRequest& AddTags(MessageTag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
793 
794 
799  inline const Aws::String& GetConfigurationSetName() const{ return m_configurationSetName; }
800 
805  inline bool ConfigurationSetNameHasBeenSet() const { return m_configurationSetNameHasBeenSet; }
806 
811  inline void SetConfigurationSetName(const Aws::String& value) { m_configurationSetNameHasBeenSet = true; m_configurationSetName = value; }
812 
817  inline void SetConfigurationSetName(Aws::String&& value) { m_configurationSetNameHasBeenSet = true; m_configurationSetName = std::move(value); }
818 
823  inline void SetConfigurationSetName(const char* value) { m_configurationSetNameHasBeenSet = true; m_configurationSetName.assign(value); }
824 
829  inline SendEmailRequest& WithConfigurationSetName(const Aws::String& value) { SetConfigurationSetName(value); return *this;}
830 
835  inline SendEmailRequest& WithConfigurationSetName(Aws::String&& value) { SetConfigurationSetName(std::move(value)); return *this;}
836 
841  inline SendEmailRequest& WithConfigurationSetName(const char* value) { SetConfigurationSetName(value); return *this;}
842 
843  private:
844 
845  Aws::String m_source;
846  bool m_sourceHasBeenSet;
847 
848  Destination m_destination;
849  bool m_destinationHasBeenSet;
850 
851  Message m_message;
852  bool m_messageHasBeenSet;
853 
854  Aws::Vector<Aws::String> m_replyToAddresses;
855  bool m_replyToAddressesHasBeenSet;
856 
857  Aws::String m_returnPath;
858  bool m_returnPathHasBeenSet;
859 
860  Aws::String m_sourceArn;
861  bool m_sourceArnHasBeenSet;
862 
863  Aws::String m_returnPathArn;
864  bool m_returnPathArnHasBeenSet;
865 
867  bool m_tagsHasBeenSet;
868 
869  Aws::String m_configurationSetName;
870  bool m_configurationSetNameHasBeenSet;
871  };
872 
873 } // namespace Model
874 } // namespace SES
875 } // namespace Aws
Aws::SES::Model::SendEmailRequest::WithReplyToAddresses
SendEmailRequest & WithReplyToAddresses(Aws::Vector< Aws::String > &&value)
Definition: SendEmailRequest.h:362
Aws::SES::Model::MessageTag
Definition: MessageTag.h:37
Aws::SES::Model::SendEmailRequest::SourceArnHasBeenSet
bool SourceArnHasBeenSet() const
Definition: SendEmailRequest.h:502
Aws::SES::Model::SendEmailRequest::ReturnPathArnHasBeenSet
bool ReturnPathArnHasBeenSet() const
Definition: SendEmailRequest.h:633
Aws::Http::URI
Definition: URI.h:32
Aws::SES::Model::SendEmailRequest::SetSourceArn
void SetSourceArn(const Aws::String &value)
Definition: SendEmailRequest.h:518
Aws::SES::Model::SendEmailRequest::WithDestination
SendEmailRequest & WithDestination(Destination &&value)
Definition: SendEmailRequest.h:294
Aws::SES::Model::SendEmailRequest::SetConfigurationSetName
void SetConfigurationSetName(const Aws::String &value)
Definition: SendEmailRequest.h:811
Aws::SES::Model::SendEmailRequest::SetMessage
void SetMessage(const Message &value)
Definition: SendEmailRequest.h:310
Aws::SES::Model::SendEmailRequest::SetSource
void SetSource(Aws::String &&value)
Definition: SendEmailRequest.h:155
Aws::SES::Model::SendEmailRequest::WithReturnPath
SendEmailRequest & WithReturnPath(Aws::String &&value)
Definition: SendEmailRequest.h:458
Aws::SES::Model::SendEmailRequest::GetSourceArn
const Aws::String & GetSourceArn() const
Definition: SendEmailRequest.h:486
Aws::SES::Model::SendEmailRequest::WithReplyToAddresses
SendEmailRequest & WithReplyToAddresses(const Aws::Vector< Aws::String > &value)
Definition: SendEmailRequest.h:356
Aws::SES::Model::SendEmailRequest::WithReturnPath
SendEmailRequest & WithReturnPath(const char *value)
Definition: SendEmailRequest.h:469
Aws::SES::Model::SendEmailRequest::WithConfigurationSetName
SendEmailRequest & WithConfigurationSetName(const char *value)
Definition: SendEmailRequest.h:841
Aws::SES::Model::SendEmailRequest::WithConfigurationSetName
SendEmailRequest & WithConfigurationSetName(Aws::String &&value)
Definition: SendEmailRequest.h:835
Aws::SES::Model::SendEmailRequest::SetSource
void SetSource(const char *value)
Definition: SendEmailRequest.h:182
Aws::SES::Model::SendEmailRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: SendEmailRequest.h:40
Aws::SES::Model::Message
Definition: Message.h:34
Aws::SES::Model::SendEmailRequest::SetTags
void SetTags(const Aws::Vector< MessageTag > &value)
Definition: SendEmailRequest.h:757
Aws::SES::Model::SendEmailRequest::WithReturnPathArn
SendEmailRequest & WithReturnPathArn(Aws::String &&value)
Definition: SendEmailRequest.h:718
Aws::SES::Model::SendEmailRequest::WithReturnPath
SendEmailRequest & WithReturnPath(const Aws::String &value)
Definition: SendEmailRequest.h:447
Aws::SES::Model::SendEmailRequest::WithReturnPathArn
SendEmailRequest & WithReturnPathArn(const char *value)
Definition: SendEmailRequest.h:735
Aws::SES::Model::Destination
Definition: Destination.h:42
Aws::SES::Model::SendEmailRequest::SourceHasBeenSet
bool SourceHasBeenSet() const
Definition: SendEmailRequest.h:101
Aws::SES::Model::SendEmailRequest::WithTags
SendEmailRequest & WithTags(const Aws::Vector< MessageTag > &value)
Definition: SendEmailRequest.h:771
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::SES::Model::SendEmailRequest::SetSource
void SetSource(const Aws::String &value)
Definition: SendEmailRequest.h:128
Aws::SES::Model::SendEmailRequest::SetReturnPath
void SetReturnPath(const char *value)
Definition: SendEmailRequest.h:436
Aws::SES::Model::SendEmailRequest::GetSource
const Aws::String & GetSource() const
Definition: SendEmailRequest.h:74
Aws::SES::Model::SendEmailRequest::GetMessage
const Message & GetMessage() const
Definition: SendEmailRequest.h:300
Aws::SES::Model::SendEmailRequest::SetDestination
void SetDestination(Destination &&value)
Definition: SendEmailRequest.h:284
Aws::SES::Model::SendEmailRequest::SetDestination
void SetDestination(const Destination &value)
Definition: SendEmailRequest.h:279
AWSVector.h
Aws::SES::Model::SendEmailRequest::SetReturnPathArn
void SetReturnPathArn(Aws::String &&value)
Definition: SendEmailRequest.h:667
Aws::SES::Model::SendEmailRequest::WithSourceArn
SendEmailRequest & WithSourceArn(const char *value)
Definition: SendEmailRequest.h:598
Aws::SES::Model::SendEmailRequest::WithSourceArn
SendEmailRequest & WithSourceArn(const Aws::String &value)
Definition: SendEmailRequest.h:566
Aws::SES::Model::SendEmailRequest::GetTags
const Aws::Vector< MessageTag > & GetTags() const
Definition: SendEmailRequest.h:743
Aws::SES::Model::SendEmailRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::SES::Model::SendEmailRequest::AddTags
SendEmailRequest & AddTags(MessageTag &&value)
Definition: SendEmailRequest.h:792
Aws::SES::Model::SendEmailRequest::AddReplyToAddresses
SendEmailRequest & AddReplyToAddresses(Aws::String &&value)
Definition: SendEmailRequest.h:374
Destination.h
Aws::SES::Model::SendEmailRequest::MessageHasBeenSet
bool MessageHasBeenSet() const
Definition: SendEmailRequest.h:305
Aws::SES::Model::SendEmailRequest::GetReplyToAddresses
const Aws::Vector< Aws::String > & GetReplyToAddresses() const
Definition: SendEmailRequest.h:332
Aws::SES::Model::SendEmailRequest::GetConfigurationSetName
const Aws::String & GetConfigurationSetName() const
Definition: SendEmailRequest.h:799
SESRequest.h
Aws::SES::Model::SendEmailRequest::SetReturnPathArn
void SetReturnPathArn(const char *value)
Definition: SendEmailRequest.h:684
Aws::SES::Model::SendEmailRequest::TagsHasBeenSet
bool TagsHasBeenSet() const
Definition: SendEmailRequest.h:750
MessageTag.h
Aws::SES::Model::SendEmailRequest::WithSource
SendEmailRequest & WithSource(const Aws::String &value)
Definition: SendEmailRequest.h:209
Aws::SES::Model::SendEmailRequest::SetSourceArn
void SetSourceArn(const char *value)
Definition: SendEmailRequest.h:550
Aws::SES::Model::SendEmailRequest::SetReplyToAddresses
void SetReplyToAddresses(Aws::Vector< Aws::String > &&value)
Definition: SendEmailRequest.h:350
Aws::SES::Model::SendEmailRequest::WithSourceArn
SendEmailRequest & WithSourceArn(Aws::String &&value)
Definition: SendEmailRequest.h:582
Aws::SES::Model::SendEmailRequest::WithMessage
SendEmailRequest & WithMessage(const Message &value)
Definition: SendEmailRequest.h:320
Aws::SES::Model::SendEmailRequest::AddTags
SendEmailRequest & AddTags(const MessageTag &value)
Definition: SendEmailRequest.h:785
Aws::SES::Model::SendEmailRequest::WithReturnPathArn
SendEmailRequest & WithReturnPathArn(const Aws::String &value)
Definition: SendEmailRequest.h:701
AWSString.h
Aws::SES::Model::SendEmailRequest::WithMessage
SendEmailRequest & WithMessage(Message &&value)
Definition: SendEmailRequest.h:325
SES_EXPORTS.h
Aws::SES::Model::SendEmailRequest::ReturnPathHasBeenSet
bool ReturnPathHasBeenSet() const
Definition: SendEmailRequest.h:403
Aws::SES::Model::SendEmailRequest::SetReturnPathArn
void SetReturnPathArn(const Aws::String &value)
Definition: SendEmailRequest.h:650
AWS_SES_API
#define AWS_SES_API
Definition: SES_EXPORTS.h:28
Aws::SES::Model::SendEmailRequest::SetMessage
void SetMessage(Message &&value)
Definition: SendEmailRequest.h:315
Aws::SES::SESRequest
Definition: SESRequest.h:17
Aws::SES::Model::SendEmailRequest::WithConfigurationSetName
SendEmailRequest & WithConfigurationSetName(const Aws::String &value)
Definition: SendEmailRequest.h:829
Aws::SES::Model::SendEmailRequest::SetSourceArn
void SetSourceArn(Aws::String &&value)
Definition: SendEmailRequest.h:534
Aws::SES::Model::SendEmailRequest::WithTags
SendEmailRequest & WithTags(Aws::Vector< MessageTag > &&value)
Definition: SendEmailRequest.h:778
Aws::SES::Model::SendEmailRequest::DumpBodyToUrl
void DumpBodyToUrl(Aws::Http::URI &uri) const override
Message.h
Aws::SES::Model::SendEmailRequest::SetReturnPath
void SetReturnPath(Aws::String &&value)
Definition: SendEmailRequest.h:425
Aws::SES::Model::SendEmailRequest::ReplyToAddressesHasBeenSet
bool ReplyToAddressesHasBeenSet() const
Definition: SendEmailRequest.h:338
Aws
Definition: AccessManagementClient.h:15
Aws::SES::Model::SendEmailRequest::WithSource
SendEmailRequest & WithSource(const char *value)
Definition: SendEmailRequest.h:263
Aws::SES::Model::SendEmailRequest::AddReplyToAddresses
SendEmailRequest & AddReplyToAddresses(const Aws::String &value)
Definition: SendEmailRequest.h:368
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::SES::Model::SendEmailRequest::GetDestination
const Destination & GetDestination() const
Definition: SendEmailRequest.h:269
Aws::SES::Model::SendEmailRequest::WithDestination
SendEmailRequest & WithDestination(const Destination &value)
Definition: SendEmailRequest.h:289
Aws::SES::Model::SendEmailRequest
Definition: SendEmailRequest.h:32
Aws::SES::Model::SendEmailRequest::SetConfigurationSetName
void SetConfigurationSetName(const char *value)
Definition: SendEmailRequest.h:823
Aws::SES::Model::SendEmailRequest::SetConfigurationSetName
void SetConfigurationSetName(Aws::String &&value)
Definition: SendEmailRequest.h:817
Aws::SES::Model::SendEmailRequest::SetReplyToAddresses
void SetReplyToAddresses(const Aws::Vector< Aws::String > &value)
Definition: SendEmailRequest.h:344
Aws::SES::Model::SendEmailRequest::SetReturnPath
void SetReturnPath(const Aws::String &value)
Definition: SendEmailRequest.h:414
Aws::SES::Model::SendEmailRequest::ConfigurationSetNameHasBeenSet
bool ConfigurationSetNameHasBeenSet() const
Definition: SendEmailRequest.h:805
Aws::SES::Model::SendEmailRequest::WithSource
SendEmailRequest & WithSource(Aws::String &&value)
Definition: SendEmailRequest.h:236
Aws::SES::Model::SendEmailRequest::AddReplyToAddresses
SendEmailRequest & AddReplyToAddresses(const char *value)
Definition: SendEmailRequest.h:380
Aws::SES::Model::SendEmailRequest::GetReturnPath
const Aws::String & GetReturnPath() const
Definition: SendEmailRequest.h:392
Aws::SES::Model::SendEmailRequest::DestinationHasBeenSet
bool DestinationHasBeenSet() const
Definition: SendEmailRequest.h:274
Aws::SES::Model::SendEmailRequest::SetTags
void SetTags(Aws::Vector< MessageTag > &&value)
Definition: SendEmailRequest.h:764
Aws::SES::Model::SendEmailRequest::GetReturnPathArn
const Aws::String & GetReturnPathArn() const
Definition: SendEmailRequest.h:616
Aws::SES::Model::SendEmailRequest::SendEmailRequest
SendEmailRequest()