public class SendBounceRequest extends AmazonWebServiceRequest implements java.io.Serializable
Generates and sends a bounce message to the sender of an email you received through Amazon SES. You can only use this API on an email up to 24 hours after you receive it.
You cannot use this API to send generic bounces for mail that was not received by Amazon SES.
For information about receiving email through Amazon SES, see the Amazon SES Developer Guide.
You can execute this operation no more than once per second.
Constructor and Description |
---|
SendBounceRequest() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
java.util.List<BouncedRecipientInfo> |
getBouncedRecipientInfoList()
A list of recipients of the bounced message, including the information
required to create the Delivery Status Notifications (DSNs) for the
recipients.
|
java.lang.String |
getBounceSender()
The address to use in the "From" header of the bounce message.
|
java.lang.String |
getBounceSenderArn()
This parameter is used only for sending authorization.
|
java.lang.String |
getExplanation()
Human-readable text for the bounce message to explain the failure.
|
MessageDsn |
getMessageDsn()
Message-related DSN fields.
|
java.lang.String |
getOriginalMessageId()
The message ID of the message to be bounced.
|
int |
hashCode() |
void |
setBouncedRecipientInfoList(java.util.Collection<BouncedRecipientInfo> bouncedRecipientInfoList)
A list of recipients of the bounced message, including the information
required to create the Delivery Status Notifications (DSNs) for the
recipients.
|
void |
setBounceSender(java.lang.String bounceSender)
The address to use in the "From" header of the bounce message.
|
void |
setBounceSenderArn(java.lang.String bounceSenderArn)
This parameter is used only for sending authorization.
|
void |
setExplanation(java.lang.String explanation)
Human-readable text for the bounce message to explain the failure.
|
void |
setMessageDsn(MessageDsn messageDsn)
Message-related DSN fields.
|
void |
setOriginalMessageId(java.lang.String originalMessageId)
The message ID of the message to be bounced.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
SendBounceRequest |
withBouncedRecipientInfoList(BouncedRecipientInfo... bouncedRecipientInfoList)
A list of recipients of the bounced message, including the information
required to create the Delivery Status Notifications (DSNs) for the
recipients.
|
SendBounceRequest |
withBouncedRecipientInfoList(java.util.Collection<BouncedRecipientInfo> bouncedRecipientInfoList)
A list of recipients of the bounced message, including the information
required to create the Delivery Status Notifications (DSNs) for the
recipients.
|
SendBounceRequest |
withBounceSender(java.lang.String bounceSender)
The address to use in the "From" header of the bounce message.
|
SendBounceRequest |
withBounceSenderArn(java.lang.String bounceSenderArn)
This parameter is used only for sending authorization.
|
SendBounceRequest |
withExplanation(java.lang.String explanation)
Human-readable text for the bounce message to explain the failure.
|
SendBounceRequest |
withMessageDsn(MessageDsn messageDsn)
Message-related DSN fields.
|
SendBounceRequest |
withOriginalMessageId(java.lang.String originalMessageId)
The message ID of the message to be bounced.
|
clone, getCloneRoot, getCloneSource, getGeneralProgressListener, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, setGeneralProgressListener, setRequestCredentials, setRequestMetricCollector, withGeneralProgressListener, withRequestMetricCollector
public java.lang.String getOriginalMessageId()
The message ID of the message to be bounced.
The message ID of the message to be bounced.
public void setOriginalMessageId(java.lang.String originalMessageId)
The message ID of the message to be bounced.
originalMessageId
- The message ID of the message to be bounced.
public SendBounceRequest withOriginalMessageId(java.lang.String originalMessageId)
The message ID of the message to be bounced.
Returns a reference to this object so that method calls can be chained together.
originalMessageId
- The message ID of the message to be bounced.
public java.lang.String getBounceSender()
The address to use in the "From" header of the bounce message. This must be an identity that you have verified with Amazon SES.
The address to use in the "From" header of the bounce message. This must be an identity that you have verified with Amazon SES.
public void setBounceSender(java.lang.String bounceSender)
The address to use in the "From" header of the bounce message. This must be an identity that you have verified with Amazon SES.
bounceSender
- The address to use in the "From" header of the bounce message. This must be an identity that you have verified with Amazon SES.
public SendBounceRequest withBounceSender(java.lang.String bounceSender)
The address to use in the "From" header of the bounce message. This must be an identity that you have verified with Amazon SES.
Returns a reference to this object so that method calls can be chained together.
bounceSender
- The address to use in the "From" header of the bounce message. This must be an identity that you have verified with Amazon SES.
public java.lang.String getExplanation()
Human-readable text for the bounce message to explain the failure. If not specified, the text will be auto-generated based on the bounced recipient information.
Human-readable text for the bounce message to explain the failure. If not specified, the text will be auto-generated based on the bounced recipient information.
public void setExplanation(java.lang.String explanation)
Human-readable text for the bounce message to explain the failure. If not specified, the text will be auto-generated based on the bounced recipient information.
explanation
- Human-readable text for the bounce message to explain the failure. If not specified, the text will be auto-generated based on the bounced recipient information.
public SendBounceRequest withExplanation(java.lang.String explanation)
Human-readable text for the bounce message to explain the failure. If not specified, the text will be auto-generated based on the bounced recipient information.
Returns a reference to this object so that method calls can be chained together.
explanation
- Human-readable text for the bounce message to explain the failure. If not specified, the text will be auto-generated based on the bounced recipient information.
public MessageDsn getMessageDsn()
Message-related DSN fields. If not specified, Amazon SES will choose the values.
Message-related DSN fields. If not specified, Amazon SES will choose the values.
public void setMessageDsn(MessageDsn messageDsn)
Message-related DSN fields. If not specified, Amazon SES will choose the values.
messageDsn
- Message-related DSN fields. If not specified, Amazon SES will choose the values.
public SendBounceRequest withMessageDsn(MessageDsn messageDsn)
Message-related DSN fields. If not specified, Amazon SES will choose the values.
Returns a reference to this object so that method calls can be chained together.
messageDsn
- Message-related DSN fields. If not specified, Amazon SES will choose the values.
public java.util.List<BouncedRecipientInfo> getBouncedRecipientInfoList()
A list of recipients of the bounced message, including the information
required to create the Delivery Status Notifications (DSNs) for the
recipients. You must specify at least one
BouncedRecipientInfo
in the list.
A list of recipients of the bounced message, including the
information required to create the Delivery Status Notifications
(DSNs) for the recipients. You must specify at least one
BouncedRecipientInfo
in the list.
public void setBouncedRecipientInfoList(java.util.Collection<BouncedRecipientInfo> bouncedRecipientInfoList)
A list of recipients of the bounced message, including the information
required to create the Delivery Status Notifications (DSNs) for the
recipients. You must specify at least one
BouncedRecipientInfo
in the list.
bouncedRecipientInfoList
-
A list of recipients of the bounced message, including the
information required to create the Delivery Status
Notifications (DSNs) for the recipients. You must specify at
least one BouncedRecipientInfo
in the list.
public SendBounceRequest withBouncedRecipientInfoList(BouncedRecipientInfo... bouncedRecipientInfoList)
A list of recipients of the bounced message, including the information
required to create the Delivery Status Notifications (DSNs) for the
recipients. You must specify at least one
BouncedRecipientInfo
in the list.
Returns a reference to this object so that method calls can be chained together.
bouncedRecipientInfoList
-
A list of recipients of the bounced message, including the
information required to create the Delivery Status
Notifications (DSNs) for the recipients. You must specify at
least one BouncedRecipientInfo
in the list.
public SendBounceRequest withBouncedRecipientInfoList(java.util.Collection<BouncedRecipientInfo> bouncedRecipientInfoList)
A list of recipients of the bounced message, including the information
required to create the Delivery Status Notifications (DSNs) for the
recipients. You must specify at least one
BouncedRecipientInfo
in the list.
Returns a reference to this object so that method calls can be chained together.
bouncedRecipientInfoList
-
A list of recipients of the bounced message, including the
information required to create the Delivery Status
Notifications (DSNs) for the recipients. You must specify at
least one BouncedRecipientInfo
in the list.
public java.lang.String getBounceSenderArn()
This parameter is used only for sending authorization. It is the ARN of the identity that is associated with the sending authorization policy that permits you to use the address in the "From" header of the bounce. For more information about sending authorization, see the Amazon SES Developer Guide.
This parameter is used only for sending authorization. It is the ARN of the identity that is associated with the sending authorization policy that permits you to use the address in the "From" header of the bounce. For more information about sending authorization, see the Amazon SES Developer Guide.
public void setBounceSenderArn(java.lang.String bounceSenderArn)
This parameter is used only for sending authorization. It is the ARN of the identity that is associated with the sending authorization policy that permits you to use the address in the "From" header of the bounce. For more information about sending authorization, see the Amazon SES Developer Guide.
bounceSenderArn
- This parameter is used only for sending authorization. It is the ARN of the identity that is associated with the sending authorization policy that permits you to use the address in the "From" header of the bounce. For more information about sending authorization, see the Amazon SES Developer Guide.
public SendBounceRequest withBounceSenderArn(java.lang.String bounceSenderArn)
This parameter is used only for sending authorization. It is the ARN of the identity that is associated with the sending authorization policy that permits you to use the address in the "From" header of the bounce. For more information about sending authorization, see the Amazon SES Developer Guide.
Returns a reference to this object so that method calls can be chained together.
bounceSenderArn
- This parameter is used only for sending authorization. It is the ARN of the identity that is associated with the sending authorization policy that permits you to use the address in the "From" header of the bounce. For more information about sending authorization, see the Amazon SES Developer Guide.
public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
Copyright © 2018 Amazon Web Services, Inc. All Rights Reserved.