@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class SendBounceRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
Represents a request to send a bounce message to the sender of an email you received through Amazon SES.
NOOP
Constructor and Description |
---|
SendBounceRequest() |
Modifier and Type | Method and Description |
---|---|
SendBounceRequest |
clone()
Creates a shallow clone of this object for all fields except the handler context.
|
boolean |
equals(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.
|
String |
getBounceSender()
The address to use in the "From" header of the bounce message.
|
String |
getBounceSenderArn()
This parameter is used only for sending authorization.
|
String |
getExplanation()
Human-readable text for the bounce message to explain the failure.
|
MessageDsn |
getMessageDsn()
Message-related DSN fields.
|
String |
getOriginalMessageId()
The message ID of the message to be bounced.
|
int |
hashCode() |
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.
|
void |
setBounceSender(String bounceSender)
The address to use in the "From" header of the bounce message.
|
void |
setBounceSenderArn(String bounceSenderArn)
This parameter is used only for sending authorization.
|
void |
setExplanation(String explanation)
Human-readable text for the bounce message to explain the failure.
|
void |
setMessageDsn(MessageDsn messageDsn)
Message-related DSN fields.
|
void |
setOriginalMessageId(String originalMessageId)
The message ID of the message to be bounced.
|
String |
toString()
Returns a string representation of this object.
|
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(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(String bounceSender)
The address to use in the "From" header of the bounce message.
|
SendBounceRequest |
withBounceSenderArn(String bounceSenderArn)
This parameter is used only for sending authorization.
|
SendBounceRequest |
withExplanation(String explanation)
Human-readable text for the bounce message to explain the failure.
|
SendBounceRequest |
withMessageDsn(MessageDsn messageDsn)
Message-related DSN fields.
|
SendBounceRequest |
withOriginalMessageId(String originalMessageId)
The message ID of the message to be bounced.
|
addHandlerContext, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getHandlerContext, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestCredentialsProvider, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestCredentialsProvider, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestCredentialsProvider, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeout
public void setOriginalMessageId(String originalMessageId)
The message ID of the message to be bounced.
originalMessageId
- The message ID of the message to be bounced.public String getOriginalMessageId()
The message ID of the message to be bounced.
public SendBounceRequest withOriginalMessageId(String originalMessageId)
The message ID of the message to be bounced.
originalMessageId
- The message ID of the message to be bounced.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.
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 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.
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.
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 void setExplanation(String explanation)
Human-readable text for the bounce message to explain the failure. If not specified, the text is 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 is
auto-generated based on the bounced recipient information.public String getExplanation()
Human-readable text for the bounce message to explain the failure. If not specified, the text is auto-generated based on the bounced recipient information.
public SendBounceRequest withExplanation(String explanation)
Human-readable text for the bounce message to explain the failure. If not specified, the text is 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 is
auto-generated based on the bounced recipient information.public void setMessageDsn(MessageDsn messageDsn)
Message-related DSN fields. If not specified, Amazon SES chooses the values.
messageDsn
- Message-related DSN fields. If not specified, Amazon SES chooses the values.public MessageDsn getMessageDsn()
Message-related DSN fields. If not specified, Amazon SES chooses the values.
public SendBounceRequest withMessageDsn(MessageDsn messageDsn)
Message-related DSN fields. If not specified, Amazon SES chooses the values.
messageDsn
- Message-related DSN fields. If not specified, Amazon SES chooses the values.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 BouncedRecipientInfo
in the
list.
BouncedRecipientInfo
in the list.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 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.
NOTE: This method appends the values to the existing list (if any). Use
setBouncedRecipientInfoList(java.util.Collection)
or
withBouncedRecipientInfoList(java.util.Collection)
if you want to override the existing values.
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(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 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.
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 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.
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.
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 String toString()
toString
in class Object
Object.toString()
public SendBounceRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()