AWS SDK for C++  1.8.129
AWS SDK for C++
SendRawEmailRequest.h
Go to the documentation of this file.
1 
6 #pragma once
8 #include <aws/email/SESRequest.h>
13 #include <utility>
14 
15 namespace Aws
16 {
17 namespace SES
18 {
19 namespace Model
20 {
21 
31  {
32  public:
34 
35  // Service request name is the Operation name which will send this request out,
36  // each operation should has unique request name, so that we can get operation's name from this request.
37  // Note: this is not true for response, multiple operations may have the same response name,
38  // so we can not get operation's name from response.
39  inline virtual const char* GetServiceRequestName() const override { return "SendRawEmail"; }
40 
41  Aws::String SerializePayload() const override;
42 
43  protected:
44  void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
45 
46  public:
47 
70  inline const Aws::String& GetSource() const{ return m_source; }
71 
94  inline bool SourceHasBeenSet() const { return m_sourceHasBeenSet; }
95 
118  inline void SetSource(const Aws::String& value) { m_sourceHasBeenSet = true; m_source = value; }
119 
142  inline void SetSource(Aws::String&& value) { m_sourceHasBeenSet = true; m_source = std::move(value); }
143 
166  inline void SetSource(const char* value) { m_sourceHasBeenSet = true; m_source.assign(value); }
167 
190  inline SendRawEmailRequest& WithSource(const Aws::String& value) { SetSource(value); return *this;}
191 
214  inline SendRawEmailRequest& WithSource(Aws::String&& value) { SetSource(std::move(value)); return *this;}
215 
238  inline SendRawEmailRequest& WithSource(const char* value) { SetSource(value); return *this;}
239 
240 
245  inline const Aws::Vector<Aws::String>& GetDestinations() const{ return m_destinations; }
246 
251  inline bool DestinationsHasBeenSet() const { return m_destinationsHasBeenSet; }
252 
257  inline void SetDestinations(const Aws::Vector<Aws::String>& value) { m_destinationsHasBeenSet = true; m_destinations = value; }
258 
263  inline void SetDestinations(Aws::Vector<Aws::String>&& value) { m_destinationsHasBeenSet = true; m_destinations = std::move(value); }
264 
269  inline SendRawEmailRequest& WithDestinations(const Aws::Vector<Aws::String>& value) { SetDestinations(value); return *this;}
270 
275  inline SendRawEmailRequest& WithDestinations(Aws::Vector<Aws::String>&& value) { SetDestinations(std::move(value)); return *this;}
276 
281  inline SendRawEmailRequest& AddDestinations(const Aws::String& value) { m_destinationsHasBeenSet = true; m_destinations.push_back(value); return *this; }
282 
287  inline SendRawEmailRequest& AddDestinations(Aws::String&& value) { m_destinationsHasBeenSet = true; m_destinations.push_back(std::move(value)); return *this; }
288 
293  inline SendRawEmailRequest& AddDestinations(const char* value) { m_destinationsHasBeenSet = true; m_destinations.push_back(value); return *this; }
294 
295 
316  inline const RawMessage& GetRawMessage() const{ return m_rawMessage; }
317 
338  inline bool RawMessageHasBeenSet() const { return m_rawMessageHasBeenSet; }
339 
360  inline void SetRawMessage(const RawMessage& value) { m_rawMessageHasBeenSet = true; m_rawMessage = value; }
361 
382  inline void SetRawMessage(RawMessage&& value) { m_rawMessageHasBeenSet = true; m_rawMessage = std::move(value); }
383 
404  inline SendRawEmailRequest& WithRawMessage(const RawMessage& value) { SetRawMessage(value); return *this;}
405 
426  inline SendRawEmailRequest& WithRawMessage(RawMessage&& value) { SetRawMessage(std::move(value)); return *this;}
427 
428 
442  inline const Aws::String& GetFromArn() const{ return m_fromArn; }
443 
457  inline bool FromArnHasBeenSet() const { return m_fromArnHasBeenSet; }
458 
472  inline void SetFromArn(const Aws::String& value) { m_fromArnHasBeenSet = true; m_fromArn = value; }
473 
487  inline void SetFromArn(Aws::String&& value) { m_fromArnHasBeenSet = true; m_fromArn = std::move(value); }
488 
502  inline void SetFromArn(const char* value) { m_fromArnHasBeenSet = true; m_fromArn.assign(value); }
503 
517  inline SendRawEmailRequest& WithFromArn(const Aws::String& value) { SetFromArn(value); return *this;}
518 
532  inline SendRawEmailRequest& WithFromArn(Aws::String&& value) { SetFromArn(std::move(value)); return *this;}
533 
547  inline SendRawEmailRequest& WithFromArn(const char* value) { SetFromArn(value); return *this;}
548 
549 
569  inline const Aws::String& GetSourceArn() const{ return m_sourceArn; }
570 
590  inline bool SourceArnHasBeenSet() const { return m_sourceArnHasBeenSet; }
591 
611  inline void SetSourceArn(const Aws::String& value) { m_sourceArnHasBeenSet = true; m_sourceArn = value; }
612 
632  inline void SetSourceArn(Aws::String&& value) { m_sourceArnHasBeenSet = true; m_sourceArn = std::move(value); }
633 
653  inline void SetSourceArn(const char* value) { m_sourceArnHasBeenSet = true; m_sourceArn.assign(value); }
654 
674  inline SendRawEmailRequest& WithSourceArn(const Aws::String& value) { SetSourceArn(value); return *this;}
675 
695  inline SendRawEmailRequest& WithSourceArn(Aws::String&& value) { SetSourceArn(std::move(value)); return *this;}
696 
716  inline SendRawEmailRequest& WithSourceArn(const char* value) { SetSourceArn(value); return *this;}
717 
718 
739  inline const Aws::String& GetReturnPathArn() const{ return m_returnPathArn; }
740 
761  inline bool ReturnPathArnHasBeenSet() const { return m_returnPathArnHasBeenSet; }
762 
783  inline void SetReturnPathArn(const Aws::String& value) { m_returnPathArnHasBeenSet = true; m_returnPathArn = value; }
784 
805  inline void SetReturnPathArn(Aws::String&& value) { m_returnPathArnHasBeenSet = true; m_returnPathArn = std::move(value); }
806 
827  inline void SetReturnPathArn(const char* value) { m_returnPathArnHasBeenSet = true; m_returnPathArn.assign(value); }
828 
849  inline SendRawEmailRequest& WithReturnPathArn(const Aws::String& value) { SetReturnPathArn(value); return *this;}
850 
871  inline SendRawEmailRequest& WithReturnPathArn(Aws::String&& value) { SetReturnPathArn(std::move(value)); return *this;}
872 
893  inline SendRawEmailRequest& WithReturnPathArn(const char* value) { SetReturnPathArn(value); return *this;}
894 
895 
901  inline const Aws::Vector<MessageTag>& GetTags() const{ return m_tags; }
902 
908  inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
909 
915  inline void SetTags(const Aws::Vector<MessageTag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
916 
922  inline void SetTags(Aws::Vector<MessageTag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
923 
929  inline SendRawEmailRequest& WithTags(const Aws::Vector<MessageTag>& value) { SetTags(value); return *this;}
930 
936  inline SendRawEmailRequest& WithTags(Aws::Vector<MessageTag>&& value) { SetTags(std::move(value)); return *this;}
937 
943  inline SendRawEmailRequest& AddTags(const MessageTag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
944 
950  inline SendRawEmailRequest& AddTags(MessageTag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
951 
952 
957  inline const Aws::String& GetConfigurationSetName() const{ return m_configurationSetName; }
958 
963  inline bool ConfigurationSetNameHasBeenSet() const { return m_configurationSetNameHasBeenSet; }
964 
969  inline void SetConfigurationSetName(const Aws::String& value) { m_configurationSetNameHasBeenSet = true; m_configurationSetName = value; }
970 
975  inline void SetConfigurationSetName(Aws::String&& value) { m_configurationSetNameHasBeenSet = true; m_configurationSetName = std::move(value); }
976 
981  inline void SetConfigurationSetName(const char* value) { m_configurationSetNameHasBeenSet = true; m_configurationSetName.assign(value); }
982 
987  inline SendRawEmailRequest& WithConfigurationSetName(const Aws::String& value) { SetConfigurationSetName(value); return *this;}
988 
993  inline SendRawEmailRequest& WithConfigurationSetName(Aws::String&& value) { SetConfigurationSetName(std::move(value)); return *this;}
994 
999  inline SendRawEmailRequest& WithConfigurationSetName(const char* value) { SetConfigurationSetName(value); return *this;}
1000 
1001  private:
1002 
1003  Aws::String m_source;
1004  bool m_sourceHasBeenSet;
1005 
1006  Aws::Vector<Aws::String> m_destinations;
1007  bool m_destinationsHasBeenSet;
1008 
1009  RawMessage m_rawMessage;
1010  bool m_rawMessageHasBeenSet;
1011 
1012  Aws::String m_fromArn;
1013  bool m_fromArnHasBeenSet;
1014 
1015  Aws::String m_sourceArn;
1016  bool m_sourceArnHasBeenSet;
1017 
1018  Aws::String m_returnPathArn;
1019  bool m_returnPathArnHasBeenSet;
1020 
1021  Aws::Vector<MessageTag> m_tags;
1022  bool m_tagsHasBeenSet;
1023 
1024  Aws::String m_configurationSetName;
1025  bool m_configurationSetNameHasBeenSet;
1026  };
1027 
1028 } // namespace Model
1029 } // namespace SES
1030 } // namespace Aws
Aws::SES::Model::SendRawEmailRequest::SourceHasBeenSet
bool SourceHasBeenSet() const
Definition: SendRawEmailRequest.h:94
Aws::SES::Model::SendRawEmailRequest::SetRawMessage
void SetRawMessage(const RawMessage &value)
Definition: SendRawEmailRequest.h:360
Aws::SES::Model::SendRawEmailRequest::SetDestinations
void SetDestinations(Aws::Vector< Aws::String > &&value)
Definition: SendRawEmailRequest.h:263
Aws::SES::Model::SendRawEmailRequest::SetReturnPathArn
void SetReturnPathArn(const Aws::String &value)
Definition: SendRawEmailRequest.h:783
Aws::SES::Model::SendRawEmailRequest::AddTags
SendRawEmailRequest & AddTags(MessageTag &&value)
Definition: SendRawEmailRequest.h:950
Aws::SES::Model::MessageTag
Definition: MessageTag.h:37
Aws::Http::URI
Definition: URI.h:32
Aws::SES::Model::SendRawEmailRequest::WithSource
SendRawEmailRequest & WithSource(Aws::String &&value)
Definition: SendRawEmailRequest.h:214
Aws::SES::Model::SendRawEmailRequest::SetConfigurationSetName
void SetConfigurationSetName(Aws::String &&value)
Definition: SendRawEmailRequest.h:975
Aws::SES::Model::SendRawEmailRequest::SetTags
void SetTags(const Aws::Vector< MessageTag > &value)
Definition: SendRawEmailRequest.h:915
Aws::SES::Model::SendRawEmailRequest::GetSource
const Aws::String & GetSource() const
Definition: SendRawEmailRequest.h:70
Aws::SES::Model::SendRawEmailRequest::SetConfigurationSetName
void SetConfigurationSetName(const Aws::String &value)
Definition: SendRawEmailRequest.h:969
RawMessage.h
Aws::SES::Model::SendRawEmailRequest::SetSourceArn
void SetSourceArn(Aws::String &&value)
Definition: SendRawEmailRequest.h:632
Aws::SES::Model::SendRawEmailRequest::TagsHasBeenSet
bool TagsHasBeenSet() const
Definition: SendRawEmailRequest.h:908
Aws::SES::Model::SendRawEmailRequest::GetDestinations
const Aws::Vector< Aws::String > & GetDestinations() const
Definition: SendRawEmailRequest.h:245
Aws::SES::Model::SendRawEmailRequest::SetFromArn
void SetFromArn(Aws::String &&value)
Definition: SendRawEmailRequest.h:487
Aws::SES::Model::SendRawEmailRequest::ConfigurationSetNameHasBeenSet
bool ConfigurationSetNameHasBeenSet() const
Definition: SendRawEmailRequest.h:963
Aws::SES::Model::SendRawEmailRequest::WithReturnPathArn
SendRawEmailRequest & WithReturnPathArn(const Aws::String &value)
Definition: SendRawEmailRequest.h:849
Aws::SES::Model::SendRawEmailRequest::SetConfigurationSetName
void SetConfigurationSetName(const char *value)
Definition: SendRawEmailRequest.h:981
Aws::SES::Model::SendRawEmailRequest::GetRawMessage
const RawMessage & GetRawMessage() const
Definition: SendRawEmailRequest.h:316
Aws::SES::Model::SendRawEmailRequest::FromArnHasBeenSet
bool FromArnHasBeenSet() const
Definition: SendRawEmailRequest.h:457
Aws::SES::Model::SendRawEmailRequest::AddTags
SendRawEmailRequest & AddTags(const MessageTag &value)
Definition: SendRawEmailRequest.h:943
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::SES::Model::SendRawEmailRequest::WithRawMessage
SendRawEmailRequest & WithRawMessage(const RawMessage &value)
Definition: SendRawEmailRequest.h:404
Aws::SES::Model::SendRawEmailRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::SES::Model::SendRawEmailRequest::SetFromArn
void SetFromArn(const Aws::String &value)
Definition: SendRawEmailRequest.h:472
AWSVector.h
Aws::SES::Model::SendRawEmailRequest::SetSource
void SetSource(const Aws::String &value)
Definition: SendRawEmailRequest.h:118
Aws::SES::Model::SendRawEmailRequest::WithFromArn
SendRawEmailRequest & WithFromArn(const Aws::String &value)
Definition: SendRawEmailRequest.h:517
Aws::SES::Model::SendRawEmailRequest::WithReturnPathArn
SendRawEmailRequest & WithReturnPathArn(const char *value)
Definition: SendRawEmailRequest.h:893
Aws::SES::Model::SendRawEmailRequest::SetSourceArn
void SetSourceArn(const char *value)
Definition: SendRawEmailRequest.h:653
Aws::SES::Model::SendRawEmailRequest::SetSource
void SetSource(const char *value)
Definition: SendRawEmailRequest.h:166
Aws::SES::Model::SendRawEmailRequest::GetConfigurationSetName
const Aws::String & GetConfigurationSetName() const
Definition: SendRawEmailRequest.h:957
Aws::SES::Model::SendRawEmailRequest::SetReturnPathArn
void SetReturnPathArn(Aws::String &&value)
Definition: SendRawEmailRequest.h:805
Aws::SES::Model::SendRawEmailRequest::RawMessageHasBeenSet
bool RawMessageHasBeenSet() const
Definition: SendRawEmailRequest.h:338
Aws::SES::Model::RawMessage
Definition: RawMessage.h:32
Aws::SES::Model::SendRawEmailRequest::DumpBodyToUrl
void DumpBodyToUrl(Aws::Http::URI &uri) const override
Aws::SES::Model::SendRawEmailRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: SendRawEmailRequest.h:39
Aws::SES::Model::SendRawEmailRequest::WithDestinations
SendRawEmailRequest & WithDestinations(const Aws::Vector< Aws::String > &value)
Definition: SendRawEmailRequest.h:269
Aws::SES::Model::SendRawEmailRequest::GetTags
const Aws::Vector< MessageTag > & GetTags() const
Definition: SendRawEmailRequest.h:901
Aws::SES::Model::SendRawEmailRequest::AddDestinations
SendRawEmailRequest & AddDestinations(const Aws::String &value)
Definition: SendRawEmailRequest.h:281
Aws::SES::Model::SendRawEmailRequest::ReturnPathArnHasBeenSet
bool ReturnPathArnHasBeenSet() const
Definition: SendRawEmailRequest.h:761
Aws::SES::Model::SendRawEmailRequest::WithTags
SendRawEmailRequest & WithTags(const Aws::Vector< MessageTag > &value)
Definition: SendRawEmailRequest.h:929
Aws::SES::Model::SendRawEmailRequest::WithSourceArn
SendRawEmailRequest & WithSourceArn(const Aws::String &value)
Definition: SendRawEmailRequest.h:674
Aws::SES::Model::SendRawEmailRequest::SetTags
void SetTags(Aws::Vector< MessageTag > &&value)
Definition: SendRawEmailRequest.h:922
Aws::SES::Model::SendRawEmailRequest::GetFromArn
const Aws::String & GetFromArn() const
Definition: SendRawEmailRequest.h:442
SESRequest.h
Aws::SES::Model::SendRawEmailRequest::DestinationsHasBeenSet
bool DestinationsHasBeenSet() const
Definition: SendRawEmailRequest.h:251
Aws::SES::Model::SendRawEmailRequest::SourceArnHasBeenSet
bool SourceArnHasBeenSet() const
Definition: SendRawEmailRequest.h:590
MessageTag.h
Aws::SES::Model::SendRawEmailRequest::SetSourceArn
void SetSourceArn(const Aws::String &value)
Definition: SendRawEmailRequest.h:611
AWSString.h
Aws::SES::Model::SendRawEmailRequest::GetSourceArn
const Aws::String & GetSourceArn() const
Definition: SendRawEmailRequest.h:569
Aws::SES::Model::SendRawEmailRequest::SetReturnPathArn
void SetReturnPathArn(const char *value)
Definition: SendRawEmailRequest.h:827
SES_EXPORTS.h
Aws::SES::Model::SendRawEmailRequest::WithConfigurationSetName
SendRawEmailRequest & WithConfigurationSetName(const Aws::String &value)
Definition: SendRawEmailRequest.h:987
AWS_SES_API
#define AWS_SES_API
Definition: SES_EXPORTS.h:28
Aws::SES::Model::SendRawEmailRequest::WithConfigurationSetName
SendRawEmailRequest & WithConfigurationSetName(Aws::String &&value)
Definition: SendRawEmailRequest.h:993
Aws::SES::SESRequest
Definition: SESRequest.h:17
Aws::SES::Model::SendRawEmailRequest::SetSource
void SetSource(Aws::String &&value)
Definition: SendRawEmailRequest.h:142
Aws::SES::Model::SendRawEmailRequest::WithSourceArn
SendRawEmailRequest & WithSourceArn(Aws::String &&value)
Definition: SendRawEmailRequest.h:695
Aws::SES::Model::SendRawEmailRequest::AddDestinations
SendRawEmailRequest & AddDestinations(const char *value)
Definition: SendRawEmailRequest.h:293
Aws::SES::Model::SendRawEmailRequest::WithFromArn
SendRawEmailRequest & WithFromArn(const char *value)
Definition: SendRawEmailRequest.h:547
Aws::SES::Model::SendRawEmailRequest
Definition: SendRawEmailRequest.h:31
Aws::SES::Model::SendRawEmailRequest::GetReturnPathArn
const Aws::String & GetReturnPathArn() const
Definition: SendRawEmailRequest.h:739
Aws::SES::Model::SendRawEmailRequest::WithSource
SendRawEmailRequest & WithSource(const Aws::String &value)
Definition: SendRawEmailRequest.h:190
Aws::SES::Model::SendRawEmailRequest::WithRawMessage
SendRawEmailRequest & WithRawMessage(RawMessage &&value)
Definition: SendRawEmailRequest.h:426
Aws::SES::Model::SendRawEmailRequest::SendRawEmailRequest
SendRawEmailRequest()
Aws
Definition: AccessManagementClient.h:15
Aws::SES::Model::SendRawEmailRequest::WithSourceArn
SendRawEmailRequest & WithSourceArn(const char *value)
Definition: SendRawEmailRequest.h:716
Aws::SES::Model::SendRawEmailRequest::AddDestinations
SendRawEmailRequest & AddDestinations(Aws::String &&value)
Definition: SendRawEmailRequest.h:287
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::SES::Model::SendRawEmailRequest::WithTags
SendRawEmailRequest & WithTags(Aws::Vector< MessageTag > &&value)
Definition: SendRawEmailRequest.h:936
Aws::SES::Model::SendRawEmailRequest::WithSource
SendRawEmailRequest & WithSource(const char *value)
Definition: SendRawEmailRequest.h:238
Aws::SES::Model::SendRawEmailRequest::SetFromArn
void SetFromArn(const char *value)
Definition: SendRawEmailRequest.h:502
Aws::SES::Model::SendRawEmailRequest::WithFromArn
SendRawEmailRequest & WithFromArn(Aws::String &&value)
Definition: SendRawEmailRequest.h:532
Aws::SES::Model::SendRawEmailRequest::SetDestinations
void SetDestinations(const Aws::Vector< Aws::String > &value)
Definition: SendRawEmailRequest.h:257
Aws::SES::Model::SendRawEmailRequest::WithDestinations
SendRawEmailRequest & WithDestinations(Aws::Vector< Aws::String > &&value)
Definition: SendRawEmailRequest.h:275
Aws::SES::Model::SendRawEmailRequest::WithReturnPathArn
SendRawEmailRequest & WithReturnPathArn(Aws::String &&value)
Definition: SendRawEmailRequest.h:871
Aws::SES::Model::SendRawEmailRequest::WithConfigurationSetName
SendRawEmailRequest & WithConfigurationSetName(const char *value)
Definition: SendRawEmailRequest.h:999
Aws::SES::Model::SendRawEmailRequest::SetRawMessage
void SetRawMessage(RawMessage &&value)
Definition: SendRawEmailRequest.h:382