AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
SendRawEmailRequest.h
1
6#pragma once
7#include <aws/email/SES_EXPORTS.h>
8#include <aws/email/SESRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/email/model/RawMessage.h>
12#include <aws/email/model/MessageTag.h>
13#include <utility>
14
15namespace Aws
16{
17namespace SES
18{
19namespace Model
20{
21
31 {
32 public:
33 AWS_SES_API SendRawEmailRequest() = default;
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_SES_API Aws::String SerializePayload() const override;
42
43 protected:
44 AWS_SES_API void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
45
46 public:
47
49
70 inline const Aws::String& GetSource() const { return m_source; }
71 inline bool SourceHasBeenSet() const { return m_sourceHasBeenSet; }
72 template<typename SourceT = Aws::String>
73 void SetSource(SourceT&& value) { m_sourceHasBeenSet = true; m_source = std::forward<SourceT>(value); }
74 template<typename SourceT = Aws::String>
75 SendRawEmailRequest& WithSource(SourceT&& value) { SetSource(std::forward<SourceT>(value)); return *this;}
77
79
83 inline const Aws::Vector<Aws::String>& GetDestinations() const { return m_destinations; }
84 inline bool DestinationsHasBeenSet() const { return m_destinationsHasBeenSet; }
85 template<typename DestinationsT = Aws::Vector<Aws::String>>
86 void SetDestinations(DestinationsT&& value) { m_destinationsHasBeenSet = true; m_destinations = std::forward<DestinationsT>(value); }
87 template<typename DestinationsT = Aws::Vector<Aws::String>>
88 SendRawEmailRequest& WithDestinations(DestinationsT&& value) { SetDestinations(std::forward<DestinationsT>(value)); return *this;}
89 template<typename DestinationsT = Aws::String>
90 SendRawEmailRequest& AddDestinations(DestinationsT&& value) { m_destinationsHasBeenSet = true; m_destinations.emplace_back(std::forward<DestinationsT>(value)); return *this; }
92
94
114 inline const RawMessage& GetRawMessage() const { return m_rawMessage; }
115 inline bool RawMessageHasBeenSet() const { return m_rawMessageHasBeenSet; }
116 template<typename RawMessageT = RawMessage>
117 void SetRawMessage(RawMessageT&& value) { m_rawMessageHasBeenSet = true; m_rawMessage = std::forward<RawMessageT>(value); }
118 template<typename RawMessageT = RawMessage>
119 SendRawEmailRequest& WithRawMessage(RawMessageT&& value) { SetRawMessage(std::forward<RawMessageT>(value)); return *this;}
121
123
136 inline const Aws::String& GetFromArn() const { return m_fromArn; }
137 inline bool FromArnHasBeenSet() const { return m_fromArnHasBeenSet; }
138 template<typename FromArnT = Aws::String>
139 void SetFromArn(FromArnT&& value) { m_fromArnHasBeenSet = true; m_fromArn = std::forward<FromArnT>(value); }
140 template<typename FromArnT = Aws::String>
141 SendRawEmailRequest& WithFromArn(FromArnT&& value) { SetFromArn(std::forward<FromArnT>(value)); return *this;}
143
145
164 inline const Aws::String& GetSourceArn() const { return m_sourceArn; }
165 inline bool SourceArnHasBeenSet() const { return m_sourceArnHasBeenSet; }
166 template<typename SourceArnT = Aws::String>
167 void SetSourceArn(SourceArnT&& value) { m_sourceArnHasBeenSet = true; m_sourceArn = std::forward<SourceArnT>(value); }
168 template<typename SourceArnT = Aws::String>
169 SendRawEmailRequest& WithSourceArn(SourceArnT&& value) { SetSourceArn(std::forward<SourceArnT>(value)); return *this;}
171
173
193 inline const Aws::String& GetReturnPathArn() const { return m_returnPathArn; }
194 inline bool ReturnPathArnHasBeenSet() const { return m_returnPathArnHasBeenSet; }
195 template<typename ReturnPathArnT = Aws::String>
196 void SetReturnPathArn(ReturnPathArnT&& value) { m_returnPathArnHasBeenSet = true; m_returnPathArn = std::forward<ReturnPathArnT>(value); }
197 template<typename ReturnPathArnT = Aws::String>
198 SendRawEmailRequest& WithReturnPathArn(ReturnPathArnT&& value) { SetReturnPathArn(std::forward<ReturnPathArnT>(value)); return *this;}
200
202
207 inline const Aws::Vector<MessageTag>& GetTags() const { return m_tags; }
208 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
209 template<typename TagsT = Aws::Vector<MessageTag>>
210 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
211 template<typename TagsT = Aws::Vector<MessageTag>>
212 SendRawEmailRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
213 template<typename TagsT = MessageTag>
214 SendRawEmailRequest& AddTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags.emplace_back(std::forward<TagsT>(value)); return *this; }
216
218
222 inline const Aws::String& GetConfigurationSetName() const { return m_configurationSetName; }
223 inline bool ConfigurationSetNameHasBeenSet() const { return m_configurationSetNameHasBeenSet; }
224 template<typename ConfigurationSetNameT = Aws::String>
225 void SetConfigurationSetName(ConfigurationSetNameT&& value) { m_configurationSetNameHasBeenSet = true; m_configurationSetName = std::forward<ConfigurationSetNameT>(value); }
226 template<typename ConfigurationSetNameT = Aws::String>
227 SendRawEmailRequest& WithConfigurationSetName(ConfigurationSetNameT&& value) { SetConfigurationSetName(std::forward<ConfigurationSetNameT>(value)); return *this;}
229 private:
230
231 Aws::String m_source;
232 bool m_sourceHasBeenSet = false;
233
234 Aws::Vector<Aws::String> m_destinations;
235 bool m_destinationsHasBeenSet = false;
236
237 RawMessage m_rawMessage;
238 bool m_rawMessageHasBeenSet = false;
239
240 Aws::String m_fromArn;
241 bool m_fromArnHasBeenSet = false;
242
243 Aws::String m_sourceArn;
244 bool m_sourceArnHasBeenSet = false;
245
246 Aws::String m_returnPathArn;
247 bool m_returnPathArnHasBeenSet = false;
248
250 bool m_tagsHasBeenSet = false;
251
252 Aws::String m_configurationSetName;
253 bool m_configurationSetNameHasBeenSet = false;
254 };
255
256} // namespace Model
257} // namespace SES
258} // namespace Aws
const Aws::String & GetSourceArn() const
SendRawEmailRequest & AddTags(TagsT &&value)
virtual const char * GetServiceRequestName() const override
const Aws::String & GetReturnPathArn() const
const Aws::String & GetFromArn() const
SendRawEmailRequest & WithReturnPathArn(ReturnPathArnT &&value)
SendRawEmailRequest & WithDestinations(DestinationsT &&value)
SendRawEmailRequest & WithSource(SourceT &&value)
AWS_SES_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
SendRawEmailRequest & WithSourceArn(SourceArnT &&value)
SendRawEmailRequest & WithConfigurationSetName(ConfigurationSetNameT &&value)
const Aws::String & GetSource() const
AWS_SES_API Aws::String SerializePayload() const override
void SetReturnPathArn(ReturnPathArnT &&value)
void SetDestinations(DestinationsT &&value)
const RawMessage & GetRawMessage() const
SendRawEmailRequest & WithRawMessage(RawMessageT &&value)
SendRawEmailRequest & AddDestinations(DestinationsT &&value)
void SetConfigurationSetName(ConfigurationSetNameT &&value)
AWS_SES_API SendRawEmailRequest()=default
const Aws::Vector< Aws::String > & GetDestinations() const
SendRawEmailRequest & WithFromArn(FromArnT &&value)
const Aws::String & GetConfigurationSetName() const
SendRawEmailRequest & WithTags(TagsT &&value)
const Aws::Vector< MessageTag > & GetTags() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector