AWS SDK for C++  1.8.127
AWS SDK for C++
SendBounceRequest.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 
29  {
30  public:
32 
33  // Service request name is the Operation name which will send this request out,
34  // each operation should has unique request name, so that we can get operation's name from this request.
35  // Note: this is not true for response, multiple operations may have the same response name,
36  // so we can not get operation's name from response.
37  inline virtual const char* GetServiceRequestName() const override { return "SendBounce"; }
38 
39  Aws::String SerializePayload() const override;
40 
41  protected:
42  void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
43 
44  public:
45 
49  inline const Aws::String& GetOriginalMessageId() const{ return m_originalMessageId; }
50 
54  inline bool OriginalMessageIdHasBeenSet() const { return m_originalMessageIdHasBeenSet; }
55 
59  inline void SetOriginalMessageId(const Aws::String& value) { m_originalMessageIdHasBeenSet = true; m_originalMessageId = value; }
60 
64  inline void SetOriginalMessageId(Aws::String&& value) { m_originalMessageIdHasBeenSet = true; m_originalMessageId = std::move(value); }
65 
69  inline void SetOriginalMessageId(const char* value) { m_originalMessageIdHasBeenSet = true; m_originalMessageId.assign(value); }
70 
74  inline SendBounceRequest& WithOriginalMessageId(const Aws::String& value) { SetOriginalMessageId(value); return *this;}
75 
79  inline SendBounceRequest& WithOriginalMessageId(Aws::String&& value) { SetOriginalMessageId(std::move(value)); return *this;}
80 
84  inline SendBounceRequest& WithOriginalMessageId(const char* value) { SetOriginalMessageId(value); return *this;}
85 
86 
91  inline const Aws::String& GetBounceSender() const{ return m_bounceSender; }
92 
97  inline bool BounceSenderHasBeenSet() const { return m_bounceSenderHasBeenSet; }
98 
103  inline void SetBounceSender(const Aws::String& value) { m_bounceSenderHasBeenSet = true; m_bounceSender = value; }
104 
109  inline void SetBounceSender(Aws::String&& value) { m_bounceSenderHasBeenSet = true; m_bounceSender = std::move(value); }
110 
115  inline void SetBounceSender(const char* value) { m_bounceSenderHasBeenSet = true; m_bounceSender.assign(value); }
116 
121  inline SendBounceRequest& WithBounceSender(const Aws::String& value) { SetBounceSender(value); return *this;}
122 
127  inline SendBounceRequest& WithBounceSender(Aws::String&& value) { SetBounceSender(std::move(value)); return *this;}
128 
133  inline SendBounceRequest& WithBounceSender(const char* value) { SetBounceSender(value); return *this;}
134 
135 
141  inline const Aws::String& GetExplanation() const{ return m_explanation; }
142 
148  inline bool ExplanationHasBeenSet() const { return m_explanationHasBeenSet; }
149 
155  inline void SetExplanation(const Aws::String& value) { m_explanationHasBeenSet = true; m_explanation = value; }
156 
162  inline void SetExplanation(Aws::String&& value) { m_explanationHasBeenSet = true; m_explanation = std::move(value); }
163 
169  inline void SetExplanation(const char* value) { m_explanationHasBeenSet = true; m_explanation.assign(value); }
170 
176  inline SendBounceRequest& WithExplanation(const Aws::String& value) { SetExplanation(value); return *this;}
177 
183  inline SendBounceRequest& WithExplanation(Aws::String&& value) { SetExplanation(std::move(value)); return *this;}
184 
190  inline SendBounceRequest& WithExplanation(const char* value) { SetExplanation(value); return *this;}
191 
192 
197  inline const MessageDsn& GetMessageDsn() const{ return m_messageDsn; }
198 
203  inline bool MessageDsnHasBeenSet() const { return m_messageDsnHasBeenSet; }
204 
209  inline void SetMessageDsn(const MessageDsn& value) { m_messageDsnHasBeenSet = true; m_messageDsn = value; }
210 
215  inline void SetMessageDsn(MessageDsn&& value) { m_messageDsnHasBeenSet = true; m_messageDsn = std::move(value); }
216 
221  inline SendBounceRequest& WithMessageDsn(const MessageDsn& value) { SetMessageDsn(value); return *this;}
222 
227  inline SendBounceRequest& WithMessageDsn(MessageDsn&& value) { SetMessageDsn(std::move(value)); return *this;}
228 
229 
235  inline const Aws::Vector<BouncedRecipientInfo>& GetBouncedRecipientInfoList() const{ return m_bouncedRecipientInfoList; }
236 
242  inline bool BouncedRecipientInfoListHasBeenSet() const { return m_bouncedRecipientInfoListHasBeenSet; }
243 
249  inline void SetBouncedRecipientInfoList(const Aws::Vector<BouncedRecipientInfo>& value) { m_bouncedRecipientInfoListHasBeenSet = true; m_bouncedRecipientInfoList = value; }
250 
256  inline void SetBouncedRecipientInfoList(Aws::Vector<BouncedRecipientInfo>&& value) { m_bouncedRecipientInfoListHasBeenSet = true; m_bouncedRecipientInfoList = std::move(value); }
257 
263  inline SendBounceRequest& WithBouncedRecipientInfoList(const Aws::Vector<BouncedRecipientInfo>& value) { SetBouncedRecipientInfoList(value); return *this;}
264 
270  inline SendBounceRequest& WithBouncedRecipientInfoList(Aws::Vector<BouncedRecipientInfo>&& value) { SetBouncedRecipientInfoList(std::move(value)); return *this;}
271 
277  inline SendBounceRequest& AddBouncedRecipientInfoList(const BouncedRecipientInfo& value) { m_bouncedRecipientInfoListHasBeenSet = true; m_bouncedRecipientInfoList.push_back(value); return *this; }
278 
284  inline SendBounceRequest& AddBouncedRecipientInfoList(BouncedRecipientInfo&& value) { m_bouncedRecipientInfoListHasBeenSet = true; m_bouncedRecipientInfoList.push_back(std::move(value)); return *this; }
285 
286 
295  inline const Aws::String& GetBounceSenderArn() const{ return m_bounceSenderArn; }
296 
305  inline bool BounceSenderArnHasBeenSet() const { return m_bounceSenderArnHasBeenSet; }
306 
315  inline void SetBounceSenderArn(const Aws::String& value) { m_bounceSenderArnHasBeenSet = true; m_bounceSenderArn = value; }
316 
325  inline void SetBounceSenderArn(Aws::String&& value) { m_bounceSenderArnHasBeenSet = true; m_bounceSenderArn = std::move(value); }
326 
335  inline void SetBounceSenderArn(const char* value) { m_bounceSenderArnHasBeenSet = true; m_bounceSenderArn.assign(value); }
336 
345  inline SendBounceRequest& WithBounceSenderArn(const Aws::String& value) { SetBounceSenderArn(value); return *this;}
346 
355  inline SendBounceRequest& WithBounceSenderArn(Aws::String&& value) { SetBounceSenderArn(std::move(value)); return *this;}
356 
365  inline SendBounceRequest& WithBounceSenderArn(const char* value) { SetBounceSenderArn(value); return *this;}
366 
367  private:
368 
369  Aws::String m_originalMessageId;
370  bool m_originalMessageIdHasBeenSet;
371 
372  Aws::String m_bounceSender;
373  bool m_bounceSenderHasBeenSet;
374 
375  Aws::String m_explanation;
376  bool m_explanationHasBeenSet;
377 
378  MessageDsn m_messageDsn;
379  bool m_messageDsnHasBeenSet;
380 
381  Aws::Vector<BouncedRecipientInfo> m_bouncedRecipientInfoList;
382  bool m_bouncedRecipientInfoListHasBeenSet;
383 
384  Aws::String m_bounceSenderArn;
385  bool m_bounceSenderArnHasBeenSet;
386  };
387 
388 } // namespace Model
389 } // namespace SES
390 } // namespace Aws
Aws::SES::Model::SendBounceRequest::AddBouncedRecipientInfoList
SendBounceRequest & AddBouncedRecipientInfoList(const BouncedRecipientInfo &value)
Definition: SendBounceRequest.h:277
Aws::SES::Model::SendBounceRequest::SetBounceSender
void SetBounceSender(const char *value)
Definition: SendBounceRequest.h:115
Aws::SES::Model::SendBounceRequest::WithExplanation
SendBounceRequest & WithExplanation(const char *value)
Definition: SendBounceRequest.h:190
Aws::SES::Model::SendBounceRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: SendBounceRequest.h:37
Aws::SES::Model::SendBounceRequest::SetBounceSenderArn
void SetBounceSenderArn(const Aws::String &value)
Definition: SendBounceRequest.h:315
Aws::SES::Model::SendBounceRequest::WithOriginalMessageId
SendBounceRequest & WithOriginalMessageId(const char *value)
Definition: SendBounceRequest.h:84
Aws::Http::URI
Definition: URI.h:32
Aws::SES::Model::SendBounceRequest::SetOriginalMessageId
void SetOriginalMessageId(const Aws::String &value)
Definition: SendBounceRequest.h:59
Aws::SES::Model::SendBounceRequest::SetExplanation
void SetExplanation(Aws::String &&value)
Definition: SendBounceRequest.h:162
Aws::SES::Model::SendBounceRequest::MessageDsnHasBeenSet
bool MessageDsnHasBeenSet() const
Definition: SendBounceRequest.h:203
Aws::SES::Model::SendBounceRequest::WithBounceSenderArn
SendBounceRequest & WithBounceSenderArn(const Aws::String &value)
Definition: SendBounceRequest.h:345
Aws::SES::Model::MessageDsn
Definition: MessageDsn.h:39
Aws::SES::Model::SendBounceRequest::SetExplanation
void SetExplanation(const Aws::String &value)
Definition: SendBounceRequest.h:155
Aws::SES::Model::SendBounceRequest::SetBounceSender
void SetBounceSender(Aws::String &&value)
Definition: SendBounceRequest.h:109
Aws::SES::Model::SendBounceRequest::GetOriginalMessageId
const Aws::String & GetOriginalMessageId() const
Definition: SendBounceRequest.h:49
Aws::SES::Model::SendBounceRequest::SetOriginalMessageId
void SetOriginalMessageId(Aws::String &&value)
Definition: SendBounceRequest.h:64
Aws::SES::Model::SendBounceRequest::WithBounceSender
SendBounceRequest & WithBounceSender(const Aws::String &value)
Definition: SendBounceRequest.h:121
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::SES::Model::SendBounceRequest
Definition: SendBounceRequest.h:29
AWSVector.h
Aws::SES::Model::SendBounceRequest::BouncedRecipientInfoListHasBeenSet
bool BouncedRecipientInfoListHasBeenSet() const
Definition: SendBounceRequest.h:242
Aws::SES::Model::SendBounceRequest::GetBounceSenderArn
const Aws::String & GetBounceSenderArn() const
Definition: SendBounceRequest.h:295
Aws::SES::Model::SendBounceRequest::OriginalMessageIdHasBeenSet
bool OriginalMessageIdHasBeenSet() const
Definition: SendBounceRequest.h:54
Aws::SES::Model::SendBounceRequest::WithMessageDsn
SendBounceRequest & WithMessageDsn(const MessageDsn &value)
Definition: SendBounceRequest.h:221
Aws::SES::Model::SendBounceRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::SES::Model::SendBounceRequest::GetBouncedRecipientInfoList
const Aws::Vector< BouncedRecipientInfo > & GetBouncedRecipientInfoList() const
Definition: SendBounceRequest.h:235
Aws::SES::Model::SendBounceRequest::BounceSenderHasBeenSet
bool BounceSenderHasBeenSet() const
Definition: SendBounceRequest.h:97
Aws::SES::Model::SendBounceRequest::SetBouncedRecipientInfoList
void SetBouncedRecipientInfoList(const Aws::Vector< BouncedRecipientInfo > &value)
Definition: SendBounceRequest.h:249
Aws::SES::Model::SendBounceRequest::SetBounceSenderArn
void SetBounceSenderArn(const char *value)
Definition: SendBounceRequest.h:335
SESRequest.h
Aws::SES::Model::SendBounceRequest::WithBounceSenderArn
SendBounceRequest & WithBounceSenderArn(Aws::String &&value)
Definition: SendBounceRequest.h:355
Aws::SES::Model::SendBounceRequest::SetBouncedRecipientInfoList
void SetBouncedRecipientInfoList(Aws::Vector< BouncedRecipientInfo > &&value)
Definition: SendBounceRequest.h:256
Aws::SES::Model::SendBounceRequest::ExplanationHasBeenSet
bool ExplanationHasBeenSet() const
Definition: SendBounceRequest.h:148
AWSString.h
Aws::SES::Model::BouncedRecipientInfo
Definition: BouncedRecipientInfo.h:38
SES_EXPORTS.h
Aws::SES::Model::SendBounceRequest::WithBounceSenderArn
SendBounceRequest & WithBounceSenderArn(const char *value)
Definition: SendBounceRequest.h:365
Aws::SES::Model::SendBounceRequest::SetMessageDsn
void SetMessageDsn(const MessageDsn &value)
Definition: SendBounceRequest.h:209
Aws::SES::Model::SendBounceRequest::BounceSenderArnHasBeenSet
bool BounceSenderArnHasBeenSet() const
Definition: SendBounceRequest.h:305
AWS_SES_API
#define AWS_SES_API
Definition: SES_EXPORTS.h:28
Aws::SES::Model::SendBounceRequest::GetMessageDsn
const MessageDsn & GetMessageDsn() const
Definition: SendBounceRequest.h:197
Aws::SES::Model::SendBounceRequest::SetExplanation
void SetExplanation(const char *value)
Definition: SendBounceRequest.h:169
Aws::SES::SESRequest
Definition: SESRequest.h:17
Aws::SES::Model::SendBounceRequest::WithExplanation
SendBounceRequest & WithExplanation(const Aws::String &value)
Definition: SendBounceRequest.h:176
Aws::SES::Model::SendBounceRequest::AddBouncedRecipientInfoList
SendBounceRequest & AddBouncedRecipientInfoList(BouncedRecipientInfo &&value)
Definition: SendBounceRequest.h:284
Aws::SES::Model::SendBounceRequest::WithBounceSender
SendBounceRequest & WithBounceSender(const char *value)
Definition: SendBounceRequest.h:133
Aws::SES::Model::SendBounceRequest::SetBounceSender
void SetBounceSender(const Aws::String &value)
Definition: SendBounceRequest.h:103
Aws::SES::Model::SendBounceRequest::WithOriginalMessageId
SendBounceRequest & WithOriginalMessageId(const Aws::String &value)
Definition: SendBounceRequest.h:74
Aws::SES::Model::SendBounceRequest::WithExplanation
SendBounceRequest & WithExplanation(Aws::String &&value)
Definition: SendBounceRequest.h:183
Aws::SES::Model::SendBounceRequest::WithMessageDsn
SendBounceRequest & WithMessageDsn(MessageDsn &&value)
Definition: SendBounceRequest.h:227
Aws::SES::Model::SendBounceRequest::GetBounceSender
const Aws::String & GetBounceSender() const
Definition: SendBounceRequest.h:91
Aws
Definition: AccessManagementClient.h:15
Aws::SES::Model::SendBounceRequest::WithBounceSender
SendBounceRequest & WithBounceSender(Aws::String &&value)
Definition: SendBounceRequest.h:127
Aws::SES::Model::SendBounceRequest::SetOriginalMessageId
void SetOriginalMessageId(const char *value)
Definition: SendBounceRequest.h:69
Aws::SES::Model::SendBounceRequest::DumpBodyToUrl
void DumpBodyToUrl(Aws::Http::URI &uri) const override
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::SES::Model::SendBounceRequest::WithBouncedRecipientInfoList
SendBounceRequest & WithBouncedRecipientInfoList(Aws::Vector< BouncedRecipientInfo > &&value)
Definition: SendBounceRequest.h:270
Aws::SES::Model::SendBounceRequest::WithOriginalMessageId
SendBounceRequest & WithOriginalMessageId(Aws::String &&value)
Definition: SendBounceRequest.h:79
Aws::SES::Model::SendBounceRequest::SetMessageDsn
void SetMessageDsn(MessageDsn &&value)
Definition: SendBounceRequest.h:215
Aws::SES::Model::SendBounceRequest::GetExplanation
const Aws::String & GetExplanation() const
Definition: SendBounceRequest.h:141
Aws::SES::Model::SendBounceRequest::SendBounceRequest
SendBounceRequest()
BouncedRecipientInfo.h
Aws::SES::Model::SendBounceRequest::SetBounceSenderArn
void SetBounceSenderArn(Aws::String &&value)
Definition: SendBounceRequest.h:325
Aws::SES::Model::SendBounceRequest::WithBouncedRecipientInfoList
SendBounceRequest & WithBouncedRecipientInfoList(const Aws::Vector< BouncedRecipientInfo > &value)
Definition: SendBounceRequest.h:263
MessageDsn.h