7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/crt/cbor/Cbor.h>
9#include <aws/mailmanager/MailManager_EXPORTS.h>
10#include <aws/mailmanager/model/ActionFailurePolicy.h>
20namespace MailManager {
33 AWS_MAILMANAGER_API
BounceAction(
const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
35 AWS_MAILMANAGER_API
void CborEncode(Aws::Crt::Cbor::CborEncoder& encoder)
const;
46 m_actionFailurePolicyHasBeenSet =
true;
47 m_actionFailurePolicy = value;
62 template <
typename RoleArnT = Aws::String>
64 m_roleArnHasBeenSet =
true;
65 m_roleArn = std::forward<RoleArnT>(value);
67 template <
typename RoleArnT = Aws::String>
80 template <
typename SenderT = Aws::String>
82 m_senderHasBeenSet =
true;
83 m_sender = std::forward<SenderT>(value);
85 template <
typename SenderT = Aws::String>
99 template <
typename StatusCodeT = Aws::String>
101 m_statusCodeHasBeenSet =
true;
102 m_statusCode = std::forward<StatusCodeT>(value);
104 template <
typename StatusCodeT = Aws::String>
117 template <
typename SmtpReplyCodeT = Aws::String>
119 m_smtpReplyCodeHasBeenSet =
true;
120 m_smtpReplyCode = std::forward<SmtpReplyCodeT>(value);
122 template <
typename SmtpReplyCodeT = Aws::String>
136 template <
typename DiagnosticMessageT = Aws::String>
138 m_diagnosticMessageHasBeenSet =
true;
139 m_diagnosticMessage = std::forward<DiagnosticMessageT>(value);
141 template <
typename DiagnosticMessageT = Aws::String>
154 template <
typename MessageT = Aws::String>
156 m_messageHasBeenSet =
true;
157 m_message = std::forward<MessageT>(value);
159 template <
typename MessageT = Aws::String>
179 bool m_actionFailurePolicyHasBeenSet =
false;
180 bool m_roleArnHasBeenSet =
false;
181 bool m_senderHasBeenSet =
false;
182 bool m_statusCodeHasBeenSet =
false;
183 bool m_smtpReplyCodeHasBeenSet =
false;
184 bool m_diagnosticMessageHasBeenSet =
false;
185 bool m_messageHasBeenSet =
false;
bool DiagnosticMessageHasBeenSet() const
AWS_MAILMANAGER_API void CborEncode(Aws::Crt::Cbor::CborEncoder &encoder) const
void SetDiagnosticMessage(DiagnosticMessageT &&value)
BounceAction & WithActionFailurePolicy(ActionFailurePolicy value)
AWS_MAILMANAGER_API BounceAction()=default
const Aws::String & GetStatusCode() const
BounceAction & WithStatusCode(StatusCodeT &&value)
BounceAction & WithMessage(MessageT &&value)
bool SmtpReplyCodeHasBeenSet() const
void SetRoleArn(RoleArnT &&value)
BounceAction & WithSender(SenderT &&value)
void SetSmtpReplyCode(SmtpReplyCodeT &&value)
void SetMessage(MessageT &&value)
const Aws::String & GetSender() const
BounceAction & WithSmtpReplyCode(SmtpReplyCodeT &&value)
ActionFailurePolicy GetActionFailurePolicy() const
bool MessageHasBeenSet() const
bool StatusCodeHasBeenSet() const
AWS_MAILMANAGER_API BounceAction & operator=(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
const Aws::String & GetRoleArn() const
bool SenderHasBeenSet() const
void SetActionFailurePolicy(ActionFailurePolicy value)
const Aws::String & GetSmtpReplyCode() const
AWS_MAILMANAGER_API BounceAction(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
bool RoleArnHasBeenSet() const
void SetStatusCode(StatusCodeT &&value)
const Aws::String & GetMessage() const
BounceAction & WithRoleArn(RoleArnT &&value)
const Aws::String & GetDiagnosticMessage() const
bool ActionFailurePolicyHasBeenSet() const
BounceAction & WithDiagnosticMessage(DiagnosticMessageT &&value)
void SetSender(SenderT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String