AWS SDK for C++

AWS SDK for C++ Version 1.11.606

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() = default;
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 template<typename OriginalMessageIdT = Aws::String>
53 void SetOriginalMessageId(OriginalMessageIdT&& value) { m_originalMessageIdHasBeenSet = true; m_originalMessageId = std::forward<OriginalMessageIdT>(value); }
54 template<typename OriginalMessageIdT = Aws::String>
55 SendBounceRequest& WithOriginalMessageId(OriginalMessageIdT&& value) { SetOriginalMessageId(std::forward<OriginalMessageIdT>(value)); return *this;}
57
59
63 inline const Aws::String& GetBounceSender() const { return m_bounceSender; }
64 inline bool BounceSenderHasBeenSet() const { return m_bounceSenderHasBeenSet; }
65 template<typename BounceSenderT = Aws::String>
66 void SetBounceSender(BounceSenderT&& value) { m_bounceSenderHasBeenSet = true; m_bounceSender = std::forward<BounceSenderT>(value); }
67 template<typename BounceSenderT = Aws::String>
68 SendBounceRequest& WithBounceSender(BounceSenderT&& value) { SetBounceSender(std::forward<BounceSenderT>(value)); return *this;}
70
72
77 inline const Aws::String& GetExplanation() const { return m_explanation; }
78 inline bool ExplanationHasBeenSet() const { return m_explanationHasBeenSet; }
79 template<typename ExplanationT = Aws::String>
80 void SetExplanation(ExplanationT&& value) { m_explanationHasBeenSet = true; m_explanation = std::forward<ExplanationT>(value); }
81 template<typename ExplanationT = Aws::String>
82 SendBounceRequest& WithExplanation(ExplanationT&& value) { SetExplanation(std::forward<ExplanationT>(value)); return *this;}
84
86
90 inline const MessageDsn& GetMessageDsn() const { return m_messageDsn; }
91 inline bool MessageDsnHasBeenSet() const { return m_messageDsnHasBeenSet; }
92 template<typename MessageDsnT = MessageDsn>
93 void SetMessageDsn(MessageDsnT&& value) { m_messageDsnHasBeenSet = true; m_messageDsn = std::forward<MessageDsnT>(value); }
94 template<typename MessageDsnT = MessageDsn>
95 SendBounceRequest& WithMessageDsn(MessageDsnT&& value) { SetMessageDsn(std::forward<MessageDsnT>(value)); return *this;}
97
99
104 inline const Aws::Vector<BouncedRecipientInfo>& GetBouncedRecipientInfoList() const { return m_bouncedRecipientInfoList; }
105 inline bool BouncedRecipientInfoListHasBeenSet() const { return m_bouncedRecipientInfoListHasBeenSet; }
106 template<typename BouncedRecipientInfoListT = Aws::Vector<BouncedRecipientInfo>>
107 void SetBouncedRecipientInfoList(BouncedRecipientInfoListT&& value) { m_bouncedRecipientInfoListHasBeenSet = true; m_bouncedRecipientInfoList = std::forward<BouncedRecipientInfoListT>(value); }
108 template<typename BouncedRecipientInfoListT = Aws::Vector<BouncedRecipientInfo>>
109 SendBounceRequest& WithBouncedRecipientInfoList(BouncedRecipientInfoListT&& value) { SetBouncedRecipientInfoList(std::forward<BouncedRecipientInfoListT>(value)); return *this;}
110 template<typename BouncedRecipientInfoListT = BouncedRecipientInfo>
111 SendBounceRequest& AddBouncedRecipientInfoList(BouncedRecipientInfoListT&& value) { m_bouncedRecipientInfoListHasBeenSet = true; m_bouncedRecipientInfoList.emplace_back(std::forward<BouncedRecipientInfoListT>(value)); return *this; }
113
115
123 inline const Aws::String& GetBounceSenderArn() const { return m_bounceSenderArn; }
124 inline bool BounceSenderArnHasBeenSet() const { return m_bounceSenderArnHasBeenSet; }
125 template<typename BounceSenderArnT = Aws::String>
126 void SetBounceSenderArn(BounceSenderArnT&& value) { m_bounceSenderArnHasBeenSet = true; m_bounceSenderArn = std::forward<BounceSenderArnT>(value); }
127 template<typename BounceSenderArnT = Aws::String>
128 SendBounceRequest& WithBounceSenderArn(BounceSenderArnT&& value) { SetBounceSenderArn(std::forward<BounceSenderArnT>(value)); return *this;}
130 private:
131
132 Aws::String m_originalMessageId;
133 bool m_originalMessageIdHasBeenSet = false;
134
135 Aws::String m_bounceSender;
136 bool m_bounceSenderHasBeenSet = false;
137
138 Aws::String m_explanation;
139 bool m_explanationHasBeenSet = false;
140
141 MessageDsn m_messageDsn;
142 bool m_messageDsnHasBeenSet = false;
143
144 Aws::Vector<BouncedRecipientInfo> m_bouncedRecipientInfoList;
145 bool m_bouncedRecipientInfoListHasBeenSet = false;
146
147 Aws::String m_bounceSenderArn;
148 bool m_bounceSenderArnHasBeenSet = false;
149 };
150
151} // namespace Model
152} // namespace SES
153} // namespace Aws
void SetBounceSenderArn(BounceSenderArnT &&value)
void SetBounceSender(BounceSenderT &&value)
AWS_SES_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
AWS_SES_API SendBounceRequest()=default
const MessageDsn & GetMessageDsn() const
void SetMessageDsn(MessageDsnT &&value)
SendBounceRequest & AddBouncedRecipientInfoList(BouncedRecipientInfoListT &&value)
const Aws::String & GetBounceSenderArn() const
SendBounceRequest & WithBounceSender(BounceSenderT &&value)
const Aws::Vector< BouncedRecipientInfo > & GetBouncedRecipientInfoList() const
const Aws::String & GetExplanation() const
virtual const char * GetServiceRequestName() const override
AWS_SES_API Aws::String SerializePayload() const override
SendBounceRequest & WithMessageDsn(MessageDsnT &&value)
const Aws::String & GetOriginalMessageId() const
SendBounceRequest & WithExplanation(ExplanationT &&value)
SendBounceRequest & WithOriginalMessageId(OriginalMessageIdT &&value)
void SetExplanation(ExplanationT &&value)
SendBounceRequest & WithBounceSenderArn(BounceSenderArnT &&value)
void SetOriginalMessageId(OriginalMessageIdT &&value)
SendBounceRequest & WithBouncedRecipientInfoList(BouncedRecipientInfoListT &&value)
void SetBouncedRecipientInfoList(BouncedRecipientInfoListT &&value)
const Aws::String & GetBounceSender() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector