Class SendEmailRequest
- All Implemented Interfaces:
ReadLimitInfo, Serializable, Cloneable
- See Also:
-
Field Summary
Fields inherited from class AmazonWebServiceRequest
NOOP -
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor for SendEmailRequest object.SendEmailRequest(String source, Destination destination, Message message) Constructs a new SendEmailRequest object. -
Method Summary
Modifier and TypeMethodDescriptionclone()Creates a shallow clone of this request.booleanThe destination for this email, composed of To:, CC:, and BCC: fields.The message to be sent.The reply-to email address(es) for the message.The email address to which bounces and complaints are to be forwarded when feedback forwarding is enabled.This parameter is used only for sending authorization.The email address that is sending the email.This parameter is used only for sending authorization.inthashCode()voidsetDestination(Destination destination) The destination for this email, composed of To:, CC:, and BCC: fields.voidsetMessage(Message message) The message to be sent.voidsetReplyToAddresses(Collection<String> replyToAddresses) The reply-to email address(es) for the message.voidsetReturnPath(String returnPath) The email address to which bounces and complaints are to be forwarded when feedback forwarding is enabled.voidsetReturnPathArn(String returnPathArn) This parameter is used only for sending authorization.voidThe email address that is sending the email.voidsetSourceArn(String sourceArn) This parameter is used only for sending authorization.toString()Returns a string representation of this object; useful for testing and debugging.withDestination(Destination destination) The destination for this email, composed of To:, CC:, and BCC: fields.withMessage(Message message) The message to be sent.withReplyToAddresses(String... replyToAddresses) The reply-to email address(es) for the message.withReplyToAddresses(Collection<String> replyToAddresses) The reply-to email address(es) for the message.withReturnPath(String returnPath) The email address to which bounces and complaints are to be forwarded when feedback forwarding is enabled.withReturnPathArn(String returnPathArn) This parameter is used only for sending authorization.withSource(String source) The email address that is sending the email.withSourceArn(String sourceArn) This parameter is used only for sending authorization.Methods inherited from class 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
-
Constructor Details
-
SendEmailRequest
public SendEmailRequest()Default constructor for SendEmailRequest object. Callers should use the setter or fluent setter (with...) methods to initialize the object after creating it. -
SendEmailRequest
Constructs a new SendEmailRequest object. Callers should use the setter or fluent setter (with...) methods to initialize any additional object members.- Parameters:
source- The email address that is sending the email. This email address must be either individually verified with Amazon SES, or from a domain that has been verified with Amazon SES. For information about verifying identities, see the Amazon SES Developer Guide.If you are sending on behalf of another user and have been permitted to do so by a sending authorization policy, then you must also specify the
SourceArnparameter. For more information about sending authorization, see the Amazon SES Developer Guide.In all cases, the email address must be 7-bit ASCII. If the text must contain any other characters, then you must use MIME encoded-word syntax (RFC 2047) instead of a literal string. MIME encoded-word syntax uses the following form:
=?charset?encoding?encoded-text?=. For more information, see RFC 2047.destination- The destination for this email, composed of To:, CC:, and BCC: fields.message- The message to be sent.
-
-
Method Details
-
setSource
The email address that is sending the email. This email address must be either individually verified with Amazon SES, or from a domain that has been verified with Amazon SES. For information about verifying identities, see the Amazon SES Developer Guide.
If you are sending on behalf of another user and have been permitted to do so by a sending authorization policy, then you must also specify the
SourceArnparameter. For more information about sending authorization, see the Amazon SES Developer Guide.In all cases, the email address must be 7-bit ASCII. If the text must contain any other characters, then you must use MIME encoded-word syntax (RFC 2047) instead of a literal string. MIME encoded-word syntax uses the following form:
=?charset?encoding?encoded-text?=. For more information, see RFC 2047.- Parameters:
source- The email address that is sending the email. This email address must be either individually verified with Amazon SES, or from a domain that has been verified with Amazon SES. For information about verifying identities, see the Amazon SES Developer Guide.If you are sending on behalf of another user and have been permitted to do so by a sending authorization policy, then you must also specify the
SourceArnparameter. For more information about sending authorization, see the Amazon SES Developer Guide.In all cases, the email address must be 7-bit ASCII. If the text must contain any other characters, then you must use MIME encoded-word syntax (RFC 2047) instead of a literal string. MIME encoded-word syntax uses the following form:
=?charset?encoding?encoded-text?=. For more information, see RFC 2047.
-
getSource
The email address that is sending the email. This email address must be either individually verified with Amazon SES, or from a domain that has been verified with Amazon SES. For information about verifying identities, see the Amazon SES Developer Guide.
If you are sending on behalf of another user and have been permitted to do so by a sending authorization policy, then you must also specify the
SourceArnparameter. For more information about sending authorization, see the Amazon SES Developer Guide.In all cases, the email address must be 7-bit ASCII. If the text must contain any other characters, then you must use MIME encoded-word syntax (RFC 2047) instead of a literal string. MIME encoded-word syntax uses the following form:
=?charset?encoding?encoded-text?=. For more information, see RFC 2047.- Returns:
- The email address that is sending the email. This email address
must be either individually verified with Amazon SES, or from a
domain that has been verified with Amazon SES. For information
about verifying identities, see the Amazon SES Developer Guide.
If you are sending on behalf of another user and have been permitted to do so by a sending authorization policy, then you must also specify the
SourceArnparameter. For more information about sending authorization, see the Amazon SES Developer Guide.In all cases, the email address must be 7-bit ASCII. If the text must contain any other characters, then you must use MIME encoded-word syntax (RFC 2047) instead of a literal string. MIME encoded-word syntax uses the following form:
=?charset?encoding?encoded-text?=. For more information, see RFC 2047.
-
withSource
The email address that is sending the email. This email address must be either individually verified with Amazon SES, or from a domain that has been verified with Amazon SES. For information about verifying identities, see the Amazon SES Developer Guide.
If you are sending on behalf of another user and have been permitted to do so by a sending authorization policy, then you must also specify the
SourceArnparameter. For more information about sending authorization, see the Amazon SES Developer Guide.In all cases, the email address must be 7-bit ASCII. If the text must contain any other characters, then you must use MIME encoded-word syntax (RFC 2047) instead of a literal string. MIME encoded-word syntax uses the following form:
=?charset?encoding?encoded-text?=. For more information, see RFC 2047.- Parameters:
source- The email address that is sending the email. This email address must be either individually verified with Amazon SES, or from a domain that has been verified with Amazon SES. For information about verifying identities, see the Amazon SES Developer Guide.If you are sending on behalf of another user and have been permitted to do so by a sending authorization policy, then you must also specify the
SourceArnparameter. For more information about sending authorization, see the Amazon SES Developer Guide.In all cases, the email address must be 7-bit ASCII. If the text must contain any other characters, then you must use MIME encoded-word syntax (RFC 2047) instead of a literal string. MIME encoded-word syntax uses the following form:
=?charset?encoding?encoded-text?=. For more information, see RFC 2047.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setDestination
The destination for this email, composed of To:, CC:, and BCC: fields.
- Parameters:
destination- The destination for this email, composed of To:, CC:, and BCC: fields.
-
getDestination
The destination for this email, composed of To:, CC:, and BCC: fields.
- Returns:
- The destination for this email, composed of To:, CC:, and BCC: fields.
-
withDestination
The destination for this email, composed of To:, CC:, and BCC: fields.
- Parameters:
destination- The destination for this email, composed of To:, CC:, and BCC: fields.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setMessage
The message to be sent.
- Parameters:
message- The message to be sent.
-
getMessage
-
withMessage
The message to be sent.
- Parameters:
message- The message to be sent.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
getReplyToAddresses
The reply-to email address(es) for the message. If the recipient replies to the message, each reply-to address will receive the reply.
- Returns:
- The reply-to email address(es) for the message. If the recipient replies to the message, each reply-to address will receive the reply.
-
setReplyToAddresses
The reply-to email address(es) for the message. If the recipient replies to the message, each reply-to address will receive the reply.
- Parameters:
replyToAddresses- The reply-to email address(es) for the message. If the recipient replies to the message, each reply-to address will receive the reply.
-
withReplyToAddresses
The reply-to email address(es) for the message. If the recipient replies to the message, each reply-to address will receive the reply.
NOTE: This method appends the values to the existing list (if any). Use
setReplyToAddresses(java.util.Collection)orwithReplyToAddresses(java.util.Collection)if you want to override the existing values.- Parameters:
replyToAddresses- The reply-to email address(es) for the message. If the recipient replies to the message, each reply-to address will receive the reply.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
withReplyToAddresses
The reply-to email address(es) for the message. If the recipient replies to the message, each reply-to address will receive the reply.
- Parameters:
replyToAddresses- The reply-to email address(es) for the message. If the recipient replies to the message, each reply-to address will receive the reply.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setReturnPath
The email address to which bounces and complaints are to be forwarded when feedback forwarding is enabled. If the message cannot be delivered to the recipient, then an error message will be returned from the recipient's ISP; this message will then be forwarded to the email address specified by the
ReturnPathparameter. TheReturnPathparameter is never overwritten. This email address must be either individually verified with Amazon SES, or from a domain that has been verified with Amazon SES.- Parameters:
returnPath- The email address to which bounces and complaints are to be forwarded when feedback forwarding is enabled. If the message cannot be delivered to the recipient, then an error message will be returned from the recipient's ISP; this message will then be forwarded to the email address specified by theReturnPathparameter. TheReturnPathparameter is never overwritten. This email address must be either individually verified with Amazon SES, or from a domain that has been verified with Amazon SES.
-
getReturnPath
The email address to which bounces and complaints are to be forwarded when feedback forwarding is enabled. If the message cannot be delivered to the recipient, then an error message will be returned from the recipient's ISP; this message will then be forwarded to the email address specified by the
ReturnPathparameter. TheReturnPathparameter is never overwritten. This email address must be either individually verified with Amazon SES, or from a domain that has been verified with Amazon SES.- Returns:
- The email address to which bounces and complaints are to be
forwarded when feedback forwarding is enabled. If the message
cannot be delivered to the recipient, then an error message will
be returned from the recipient's ISP; this message will then be
forwarded to the email address specified by the
ReturnPathparameter. TheReturnPathparameter is never overwritten. This email address must be either individually verified with Amazon SES, or from a domain that has been verified with Amazon SES.
-
withReturnPath
The email address to which bounces and complaints are to be forwarded when feedback forwarding is enabled. If the message cannot be delivered to the recipient, then an error message will be returned from the recipient's ISP; this message will then be forwarded to the email address specified by the
ReturnPathparameter. TheReturnPathparameter is never overwritten. This email address must be either individually verified with Amazon SES, or from a domain that has been verified with Amazon SES.- Parameters:
returnPath- The email address to which bounces and complaints are to be forwarded when feedback forwarding is enabled. If the message cannot be delivered to the recipient, then an error message will be returned from the recipient's ISP; this message will then be forwarded to the email address specified by theReturnPathparameter. TheReturnPathparameter is never overwritten. This email address must be either individually verified with Amazon SES, or from a domain that has been verified with Amazon SES.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setSourceArn
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 send for the email address specified in the
Sourceparameter.For example, if the owner of
example.com(which has ARNarn:aws:ses:us-east-1:123456789012:identity/example.com) attaches a policy to it that authorizes you to send fromuser@example.com, then you would specify theSourceArnto bearn:aws:ses:us-east-1:123456789012:identity/example.com, and theSourceto beuser@example.com.For more information about sending authorization, see the Amazon SES Developer Guide.
- Parameters:
sourceArn- 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 send for the email address specified in theSourceparameter.For example, if the owner of
example.com(which has ARNarn:aws:ses:us-east-1:123456789012:identity/example.com) attaches a policy to it that authorizes you to send fromuser@example.com, then you would specify theSourceArnto bearn:aws:ses:us-east-1:123456789012:identity/example.com, and theSourceto beuser@example.com.For more information about sending authorization, see the Amazon SES Developer Guide.
-
getSourceArn
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 send for the email address specified in the
Sourceparameter.For example, if the owner of
example.com(which has ARNarn:aws:ses:us-east-1:123456789012:identity/example.com) attaches a policy to it that authorizes you to send fromuser@example.com, then you would specify theSourceArnto bearn:aws:ses:us-east-1:123456789012:identity/example.com, and theSourceto beuser@example.com.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 send for the email
address specified in the
Sourceparameter.For example, if the owner of
example.com(which has ARNarn:aws:ses:us-east-1:123456789012:identity/example.com) attaches a policy to it that authorizes you to send fromuser@example.com, then you would specify theSourceArnto bearn:aws:ses:us-east-1:123456789012:identity/example.com, and theSourceto beuser@example.com.For more information about sending authorization, see the Amazon SES Developer Guide.
-
withSourceArn
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 send for the email address specified in the
Sourceparameter.For example, if the owner of
example.com(which has ARNarn:aws:ses:us-east-1:123456789012:identity/example.com) attaches a policy to it that authorizes you to send fromuser@example.com, then you would specify theSourceArnto bearn:aws:ses:us-east-1:123456789012:identity/example.com, and theSourceto beuser@example.com.For more information about sending authorization, see the Amazon SES Developer Guide.
- Parameters:
sourceArn- 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 send for the email address specified in theSourceparameter.For example, if the owner of
example.com(which has ARNarn:aws:ses:us-east-1:123456789012:identity/example.com) attaches a policy to it that authorizes you to send fromuser@example.com, then you would specify theSourceArnto bearn:aws:ses:us-east-1:123456789012:identity/example.com, and theSourceto beuser@example.com.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.
-
setReturnPathArn
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 email address specified in the
ReturnPathparameter.For example, if the owner of
example.com(which has ARNarn:aws:ses:us-east-1:123456789012:identity/example.com) attaches a policy to it that authorizes you to usefeedback@example.com, then you would specify theReturnPathArnto bearn:aws:ses:us-east-1:123456789012:identity/example.com, and theReturnPathto befeedback@example.com.For more information about sending authorization, see the Amazon SES Developer Guide.
- Parameters:
returnPathArn- 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 email address specified in theReturnPathparameter.For example, if the owner of
example.com(which has ARNarn:aws:ses:us-east-1:123456789012:identity/example.com) attaches a policy to it that authorizes you to usefeedback@example.com, then you would specify theReturnPathArnto bearn:aws:ses:us-east-1:123456789012:identity/example.com, and theReturnPathto befeedback@example.com.For more information about sending authorization, see the Amazon SES Developer Guide.
-
getReturnPathArn
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 email address specified in the
ReturnPathparameter.For example, if the owner of
example.com(which has ARNarn:aws:ses:us-east-1:123456789012:identity/example.com) attaches a policy to it that authorizes you to usefeedback@example.com, then you would specify theReturnPathArnto bearn:aws:ses:us-east-1:123456789012:identity/example.com, and theReturnPathto befeedback@example.com.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 email address
specified in the
ReturnPathparameter.For example, if the owner of
example.com(which has ARNarn:aws:ses:us-east-1:123456789012:identity/example.com) attaches a policy to it that authorizes you to usefeedback@example.com, then you would specify theReturnPathArnto bearn:aws:ses:us-east-1:123456789012:identity/example.com, and theReturnPathto befeedback@example.com.For more information about sending authorization, see the Amazon SES Developer Guide.
-
withReturnPathArn
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 email address specified in the
ReturnPathparameter.For example, if the owner of
example.com(which has ARNarn:aws:ses:us-east-1:123456789012:identity/example.com) attaches a policy to it that authorizes you to usefeedback@example.com, then you would specify theReturnPathArnto bearn:aws:ses:us-east-1:123456789012:identity/example.com, and theReturnPathto befeedback@example.com.For more information about sending authorization, see the Amazon SES Developer Guide.
- Parameters:
returnPathArn- 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 email address specified in theReturnPathparameter.For example, if the owner of
example.com(which has ARNarn:aws:ses:us-east-1:123456789012:identity/example.com) attaches a policy to it that authorizes you to usefeedback@example.com, then you would specify theReturnPathArnto bearn:aws:ses:us-east-1:123456789012:identity/example.com, and theReturnPathto befeedback@example.com.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
-
equals
-
hashCode
-
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:
-