AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
SendBounceRequest.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/email/model/MessageDsn.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/email/model/BouncedRecipientInfo.h>
13#include <utility>
14
15namespace Aws
16{
17namespace SES
18{
19namespace Model
20{
21
29 {
30 public:
31 AWS_SES_API SendBounceRequest();
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_SES_API Aws::String SerializePayload() const override;
40
41 protected:
42 AWS_SES_API void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
43
44 public:
45
47
50 inline const Aws::String& GetOriginalMessageId() const{ return m_originalMessageId; }
51 inline bool OriginalMessageIdHasBeenSet() const { return m_originalMessageIdHasBeenSet; }
52 inline void SetOriginalMessageId(const Aws::String& value) { m_originalMessageIdHasBeenSet = true; m_originalMessageId = value; }
53 inline void SetOriginalMessageId(Aws::String&& value) { m_originalMessageIdHasBeenSet = true; m_originalMessageId = std::move(value); }
54 inline void SetOriginalMessageId(const char* value) { m_originalMessageIdHasBeenSet = true; m_originalMessageId.assign(value); }
55 inline SendBounceRequest& WithOriginalMessageId(const Aws::String& value) { SetOriginalMessageId(value); return *this;}
56 inline SendBounceRequest& WithOriginalMessageId(Aws::String&& value) { SetOriginalMessageId(std::move(value)); return *this;}
57 inline SendBounceRequest& WithOriginalMessageId(const char* value) { SetOriginalMessageId(value); return *this;}
59
61
65 inline const Aws::String& GetBounceSender() const{ return m_bounceSender; }
66 inline bool BounceSenderHasBeenSet() const { return m_bounceSenderHasBeenSet; }
67 inline void SetBounceSender(const Aws::String& value) { m_bounceSenderHasBeenSet = true; m_bounceSender = value; }
68 inline void SetBounceSender(Aws::String&& value) { m_bounceSenderHasBeenSet = true; m_bounceSender = std::move(value); }
69 inline void SetBounceSender(const char* value) { m_bounceSenderHasBeenSet = true; m_bounceSender.assign(value); }
70 inline SendBounceRequest& WithBounceSender(const Aws::String& value) { SetBounceSender(value); return *this;}
71 inline SendBounceRequest& WithBounceSender(Aws::String&& value) { SetBounceSender(std::move(value)); return *this;}
72 inline SendBounceRequest& WithBounceSender(const char* value) { SetBounceSender(value); return *this;}
74
76
81 inline const Aws::String& GetExplanation() const{ return m_explanation; }
82 inline bool ExplanationHasBeenSet() const { return m_explanationHasBeenSet; }
83 inline void SetExplanation(const Aws::String& value) { m_explanationHasBeenSet = true; m_explanation = value; }
84 inline void SetExplanation(Aws::String&& value) { m_explanationHasBeenSet = true; m_explanation = std::move(value); }
85 inline void SetExplanation(const char* value) { m_explanationHasBeenSet = true; m_explanation.assign(value); }
86 inline SendBounceRequest& WithExplanation(const Aws::String& value) { SetExplanation(value); return *this;}
87 inline SendBounceRequest& WithExplanation(Aws::String&& value) { SetExplanation(std::move(value)); return *this;}
88 inline SendBounceRequest& WithExplanation(const char* value) { SetExplanation(value); return *this;}
90
92
96 inline const MessageDsn& GetMessageDsn() const{ return m_messageDsn; }
97 inline bool MessageDsnHasBeenSet() const { return m_messageDsnHasBeenSet; }
98 inline void SetMessageDsn(const MessageDsn& value) { m_messageDsnHasBeenSet = true; m_messageDsn = value; }
99 inline void SetMessageDsn(MessageDsn&& value) { m_messageDsnHasBeenSet = true; m_messageDsn = std::move(value); }
100 inline SendBounceRequest& WithMessageDsn(const MessageDsn& value) { SetMessageDsn(value); return *this;}
101 inline SendBounceRequest& WithMessageDsn(MessageDsn&& value) { SetMessageDsn(std::move(value)); return *this;}
103
105
110 inline const Aws::Vector<BouncedRecipientInfo>& GetBouncedRecipientInfoList() const{ return m_bouncedRecipientInfoList; }
111 inline bool BouncedRecipientInfoListHasBeenSet() const { return m_bouncedRecipientInfoListHasBeenSet; }
112 inline void SetBouncedRecipientInfoList(const Aws::Vector<BouncedRecipientInfo>& value) { m_bouncedRecipientInfoListHasBeenSet = true; m_bouncedRecipientInfoList = value; }
113 inline void SetBouncedRecipientInfoList(Aws::Vector<BouncedRecipientInfo>&& value) { m_bouncedRecipientInfoListHasBeenSet = true; m_bouncedRecipientInfoList = std::move(value); }
116 inline SendBounceRequest& AddBouncedRecipientInfoList(const BouncedRecipientInfo& value) { m_bouncedRecipientInfoListHasBeenSet = true; m_bouncedRecipientInfoList.push_back(value); return *this; }
117 inline SendBounceRequest& AddBouncedRecipientInfoList(BouncedRecipientInfo&& value) { m_bouncedRecipientInfoListHasBeenSet = true; m_bouncedRecipientInfoList.push_back(std::move(value)); return *this; }
119
121
129 inline const Aws::String& GetBounceSenderArn() const{ return m_bounceSenderArn; }
130 inline bool BounceSenderArnHasBeenSet() const { return m_bounceSenderArnHasBeenSet; }
131 inline void SetBounceSenderArn(const Aws::String& value) { m_bounceSenderArnHasBeenSet = true; m_bounceSenderArn = value; }
132 inline void SetBounceSenderArn(Aws::String&& value) { m_bounceSenderArnHasBeenSet = true; m_bounceSenderArn = std::move(value); }
133 inline void SetBounceSenderArn(const char* value) { m_bounceSenderArnHasBeenSet = true; m_bounceSenderArn.assign(value); }
134 inline SendBounceRequest& WithBounceSenderArn(const Aws::String& value) { SetBounceSenderArn(value); return *this;}
135 inline SendBounceRequest& WithBounceSenderArn(Aws::String&& value) { SetBounceSenderArn(std::move(value)); return *this;}
136 inline SendBounceRequest& WithBounceSenderArn(const char* value) { SetBounceSenderArn(value); return *this;}
138 private:
139
140 Aws::String m_originalMessageId;
141 bool m_originalMessageIdHasBeenSet = false;
142
143 Aws::String m_bounceSender;
144 bool m_bounceSenderHasBeenSet = false;
145
146 Aws::String m_explanation;
147 bool m_explanationHasBeenSet = false;
148
149 MessageDsn m_messageDsn;
150 bool m_messageDsnHasBeenSet = false;
151
152 Aws::Vector<BouncedRecipientInfo> m_bouncedRecipientInfoList;
153 bool m_bouncedRecipientInfoListHasBeenSet = false;
154
155 Aws::String m_bounceSenderArn;
156 bool m_bounceSenderArnHasBeenSet = false;
157 };
158
159} // namespace Model
160} // namespace SES
161} // namespace Aws
SendBounceRequest & WithExplanation(const Aws::String &value)
SendBounceRequest & AddBouncedRecipientInfoList(const BouncedRecipientInfo &value)
SendBounceRequest & WithBounceSenderArn(const char *value)
SendBounceRequest & WithBouncedRecipientInfoList(Aws::Vector< BouncedRecipientInfo > &&value)
AWS_SES_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
void SetBounceSender(Aws::String &&value)
SendBounceRequest & WithBounceSenderArn(const Aws::String &value)
SendBounceRequest & WithExplanation(Aws::String &&value)
SendBounceRequest & WithMessageDsn(MessageDsn &&value)
void SetOriginalMessageId(Aws::String &&value)
void SetBounceSenderArn(const char *value)
const MessageDsn & GetMessageDsn() const
const Aws::String & GetBounceSenderArn() const
void SetOriginalMessageId(const char *value)
const Aws::Vector< BouncedRecipientInfo > & GetBouncedRecipientInfoList() const
SendBounceRequest & WithMessageDsn(const MessageDsn &value)
const Aws::String & GetExplanation() const
SendBounceRequest & WithBounceSender(const char *value)
void SetBouncedRecipientInfoList(const Aws::Vector< BouncedRecipientInfo > &value)
void SetExplanation(const Aws::String &value)
virtual const char * GetServiceRequestName() const override
SendBounceRequest & WithBounceSender(Aws::String &&value)
SendBounceRequest & AddBouncedRecipientInfoList(BouncedRecipientInfo &&value)
SendBounceRequest & WithExplanation(const char *value)
void SetExplanation(Aws::String &&value)
AWS_SES_API Aws::String SerializePayload() const override
SendBounceRequest & WithOriginalMessageId(const char *value)
void SetOriginalMessageId(const Aws::String &value)
void SetExplanation(const char *value)
const Aws::String & GetOriginalMessageId() const
void SetBounceSenderArn(const Aws::String &value)
SendBounceRequest & WithBouncedRecipientInfoList(const Aws::Vector< BouncedRecipientInfo > &value)
void SetMessageDsn(const MessageDsn &value)
SendBounceRequest & WithBounceSenderArn(Aws::String &&value)
SendBounceRequest & WithOriginalMessageId(const Aws::String &value)
SendBounceRequest & WithOriginalMessageId(Aws::String &&value)
void SetBounceSender(const char *value)
void SetBounceSenderArn(Aws::String &&value)
void SetBouncedRecipientInfoList(Aws::Vector< BouncedRecipientInfo > &&value)
void SetBounceSender(const Aws::String &value)
const Aws::String & GetBounceSender() const
void SetMessageDsn(MessageDsn &&value)
SendBounceRequest & WithBounceSender(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector