Class SendBounceRequest
- java.lang.Object
-
- com.amazonaws.AmazonWebServiceRequest
-
- com.amazonaws.services.simpleemail.model.SendBounceRequest
-
- All Implemented Interfaces:
ReadLimitInfo,Serializable,Cloneable
public class SendBounceRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class com.amazonaws.AmazonWebServiceRequest
NOOP
-
-
Constructor Summary
Constructors Constructor Description SendBounceRequest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SendBounceRequestclone()Creates a shallow clone of this request.booleanequals(Object obj)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.StringgetBounceSender()The address to use in the "From" header of the bounce message.StringgetBounceSenderArn()This parameter is used only for sending authorization.StringgetExplanation()Human-readable text for the bounce message to explain the failure.MessageDsngetMessageDsn()Message-related DSN fields.StringgetOriginalMessageId()The message ID of the message to be bounced.inthashCode()voidsetBouncedRecipientInfoList(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.voidsetBounceSender(String bounceSender)The address to use in the "From" header of the bounce message.voidsetBounceSenderArn(String bounceSenderArn)This parameter is used only for sending authorization.voidsetExplanation(String explanation)Human-readable text for the bounce message to explain the failure.voidsetMessageDsn(MessageDsn messageDsn)Message-related DSN fields.voidsetOriginalMessageId(String originalMessageId)The message ID of the message to be bounced.StringtoString()Returns a string representation of this object; useful for testing and debugging.SendBounceRequestwithBouncedRecipientInfoList(BouncedRecipientInfo... bouncedRecipientInfoList)A list of recipients of the bounced message, including the information required to create the Delivery Status Notifications (DSNs) for the recipients.SendBounceRequestwithBouncedRecipientInfoList(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.SendBounceRequestwithBounceSender(String bounceSender)The address to use in the "From" header of the bounce message.SendBounceRequestwithBounceSenderArn(String bounceSenderArn)This parameter is used only for sending authorization.SendBounceRequestwithExplanation(String explanation)Human-readable text for the bounce message to explain the failure.SendBounceRequestwithMessageDsn(MessageDsn messageDsn)Message-related DSN fields.SendBounceRequestwithOriginalMessageId(String originalMessageId)The message ID of the message to be bounced.-
Methods inherited from class com.amazonaws.AmazonWebServiceRequest
copyBaseTo, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestCredentialsProvider, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestCredentialsProvider, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeout
-
-
-
-
Method Detail
-
setOriginalMessageId
public void setOriginalMessageId(String originalMessageId)
The message ID of the message to be bounced.
- Parameters:
originalMessageId- The message ID of the message to be bounced.
-
getOriginalMessageId
public String getOriginalMessageId()
The message ID of the message to be bounced.
- Returns:
- The message ID of the message to be bounced.
-
withOriginalMessageId
public SendBounceRequest withOriginalMessageId(String originalMessageId)
The message ID of the message to be bounced.
- Parameters:
originalMessageId- The message ID of the message to be bounced.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setBounceSender
public void setBounceSender(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.
- Parameters:
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.
-
getBounceSender
public 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.
- Returns:
- The address to use in the "From" header of the bounce message. This must be an identity that you have verified with Amazon SES.
-
withBounceSender
public SendBounceRequest withBounceSender(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.
- Parameters:
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:
- Returns a reference to this object so that method calls can be chained together.
-
setExplanation
public void setExplanation(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.
- Parameters:
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.
-
getExplanation
public 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.
- Returns:
- 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.
-
withExplanation
public SendBounceRequest withExplanation(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.
- Parameters:
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:
- Returns a reference to this object so that method calls can be chained together.
-
setMessageDsn
public void setMessageDsn(MessageDsn messageDsn)
Message-related DSN fields. If not specified, Amazon SES will choose the values.
- Parameters:
messageDsn- Message-related DSN fields. If not specified, Amazon SES will choose the values.
-
getMessageDsn
public MessageDsn getMessageDsn()
Message-related DSN fields. If not specified, Amazon SES will choose the values.
- Returns:
- Message-related DSN fields. If not specified, Amazon SES will choose the values.
-
withMessageDsn
public SendBounceRequest withMessageDsn(MessageDsn messageDsn)
Message-related DSN fields. If not specified, Amazon SES will choose the values.
- Parameters:
messageDsn- Message-related DSN fields. If not specified, Amazon SES will choose the values.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
getBouncedRecipientInfoList
public 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
BouncedRecipientInfoin the list.- Returns:
- 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
BouncedRecipientInfoin the list.
-
setBouncedRecipientInfoList
public void setBouncedRecipientInfoList(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
BouncedRecipientInfoin the list.- Parameters:
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 oneBouncedRecipientInfoin the list.
-
withBouncedRecipientInfoList
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
BouncedRecipientInfoin the list.NOTE: This method appends the values to the existing list (if any). Use
setBouncedRecipientInfoList(java.util.Collection)orwithBouncedRecipientInfoList(java.util.Collection)if you want to override the existing values.- Parameters:
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 oneBouncedRecipientInfoin the list.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
withBouncedRecipientInfoList
public SendBounceRequest withBouncedRecipientInfoList(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
BouncedRecipientInfoin the list.- Parameters:
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 oneBouncedRecipientInfoin the list.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setBounceSenderArn
public void setBounceSenderArn(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.
- Parameters:
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.
-
getBounceSenderArn
public 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.
- Returns:
- 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.
-
withBounceSenderArn
public SendBounceRequest withBounceSenderArn(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.
- Parameters:
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:
- Returns a reference to this object so that method calls can be chained together.
-
toString
public String toString()
Returns a string representation of this object; useful for testing and debugging.- Overrides:
toStringin classObject- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public SendBounceRequest clone()
Description copied from class:AmazonWebServiceRequestCreates a shallow clone of this request. Explicitly does not clone the deep structure of the request object.- Overrides:
clonein classAmazonWebServiceRequest- See Also:
Object.clone()
-
-