com.amazonaws.services.simpleemail.model
Class SendRawEmailRequest

java.lang.Object
  extended by com.amazonaws.AmazonWebServiceRequest
      extended by com.amazonaws.services.simpleemail.model.SendRawEmailRequest

public class SendRawEmailRequest
extends AmazonWebServiceRequest

Container for the parameters to the SendRawEmail operation.

Sends an email message, with header and content specified by the client. The SendRawEmail action is useful for sending multipart MIME emails, with attachments or inline content. The raw text of the message must comply with Internet email standards; otherwise, the message cannot be sent.

IMPORTANT:If you have not yet requested production access to Amazon SES, then you will only be able to send email to and from verified email addresses. For more information, go to the Amazon SES Developer Guide.

See Also:
AmazonSimpleEmailService.sendRawEmail(SendRawEmailRequest)

Constructor Summary
SendRawEmailRequest()
          Default constructor for a new SendRawEmailRequest object.
SendRawEmailRequest(RawMessage rawMessage)
          Constructs a new SendRawEmailRequest object.
 
Method Summary
 boolean equals(Object obj)
           
 List<String> getDestinations()
          A list of destinations for the message.
 RawMessage getRawMessage()
          The raw text of the message.
 String getSource()
          The sender's email address.
 int hashCode()
           
 void setDestinations(Collection<String> destinations)
          A list of destinations for the message.
 void setRawMessage(RawMessage rawMessage)
          The raw text of the message.
 void setSource(String source)
          The sender's email address.
 String toString()
          Returns a string representation of this object; useful for testing and debugging.
 SendRawEmailRequest withDestinations(Collection<String> destinations)
          A list of destinations for the message.
 SendRawEmailRequest withDestinations(String... destinations)
          A list of destinations for the message.
 SendRawEmailRequest withRawMessage(RawMessage rawMessage)
          The raw text of the message.
 SendRawEmailRequest withSource(String source)
          The sender's email address.
 
Methods inherited from class com.amazonaws.AmazonWebServiceRequest
copyPrivateRequestParameters, getRequestClientOptions, getRequestCredentials, setRequestCredentials
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SendRawEmailRequest

public SendRawEmailRequest()
Default constructor for a new SendRawEmailRequest object. Callers should use the setter or fluent setter (with...) methods to initialize this object after creating it.


SendRawEmailRequest

public SendRawEmailRequest(RawMessage rawMessage)
Constructs a new SendRawEmailRequest object. Callers should use the setter or fluent setter (with...) methods to initialize any additional object members.

Parameters:
rawMessage - The raw text of the message. The client is responsible for ensuring the following:

  • Message must contain a header and a body, separated by a blank line.
  • All required header fields must be present.
  • Each part of a multipart MIME message must be formatted properly.
  • MIME content types must be among those supported by Amazon SES. Refer to the Amazon SES Developer Guide for more details.
  • Content must be base64-encoded, if MIME requires it.
Method Detail

getSource

public String getSource()
The sender's email address.

Returns:
The sender's email address.

setSource

public void setSource(String source)
The sender's email address.

Parameters:
source - The sender's email address.

withSource

public SendRawEmailRequest withSource(String source)
The sender's email address.

Returns a reference to this object so that method calls can be chained together.

Parameters:
source - The sender's email address.
Returns:
A reference to this updated object so that method calls can be chained together.

getDestinations

public List<String> getDestinations()
A list of destinations for the message.

Returns:
A list of destinations for the message.

setDestinations

public void setDestinations(Collection<String> destinations)
A list of destinations for the message.

Parameters:
destinations - A list of destinations for the message.

withDestinations

public SendRawEmailRequest withDestinations(String... destinations)
A list of destinations for the message.

Returns a reference to this object so that method calls can be chained together.

Parameters:
destinations - A list of destinations for the message.
Returns:
A reference to this updated object so that method calls can be chained together.

withDestinations

public SendRawEmailRequest withDestinations(Collection<String> destinations)
A list of destinations for the message.

Returns a reference to this object so that method calls can be chained together.

Parameters:
destinations - A list of destinations for the message.
Returns:
A reference to this updated object so that method calls can be chained together.

getRawMessage

public RawMessage getRawMessage()
The raw text of the message. The client is responsible for ensuring the following:

Returns:
The raw text of the message. The client is responsible for ensuring the following:

  • Message must contain a header and a body, separated by a blank line.
  • All required header fields must be present.
  • Each part of a multipart MIME message must be formatted properly.
  • MIME content types must be among those supported by Amazon SES. Refer to the Amazon SES Developer Guide for more details.
  • Content must be base64-encoded, if MIME requires it.

setRawMessage

public void setRawMessage(RawMessage rawMessage)
The raw text of the message. The client is responsible for ensuring the following:

Parameters:
rawMessage - The raw text of the message. The client is responsible for ensuring the following:

  • Message must contain a header and a body, separated by a blank line.
  • All required header fields must be present.
  • Each part of a multipart MIME message must be formatted properly.
  • MIME content types must be among those supported by Amazon SES. Refer to the Amazon SES Developer Guide for more details.
  • Content must be base64-encoded, if MIME requires it.

withRawMessage

public SendRawEmailRequest withRawMessage(RawMessage rawMessage)
The raw text of the message. The client is responsible for ensuring the following:

Returns a reference to this object so that method calls can be chained together.

Parameters:
rawMessage - The raw text of the message. The client is responsible for ensuring the following:

  • Message must contain a header and a body, separated by a blank line.
  • All required header fields must be present.
  • Each part of a multipart MIME message must be formatted properly.
  • MIME content types must be among those supported by Amazon SES. Refer to the Amazon SES Developer Guide for more details.
  • Content must be base64-encoded, if MIME requires it.
Returns:
A reference to this updated 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:
toString in class Object
Returns:
A string representation of this object.
See Also:
Object.toString()

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class Object


Copyright © 2010 Amazon Web Services, Inc. All Rights Reserved.