com.amazonaws.services.simpleemail.model
Class Destination

java.lang.Object
  extended by com.amazonaws.services.simpleemail.model.Destination
All Implemented Interfaces:
java.io.Serializable

public class Destination
extends java.lang.Object
implements java.io.Serializable

Represents the destination of the message, consisting of To:, CC:, and BCC: fields.

By default, the string 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 .

See Also:
Serialized Form

Constructor Summary
Destination()
          Default constructor for a new Destination object.
Destination(java.util.List<java.lang.String> toAddresses)
          Constructs a new Destination object.
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 java.util.List<java.lang.String> getBccAddresses()
          The BCC: field(s) of the message.
 java.util.List<java.lang.String> getCcAddresses()
          The CC: field(s) of the message.
 java.util.List<java.lang.String> getToAddresses()
          The To: field(s) of the message.
 int hashCode()
           
 void setBccAddresses(java.util.Collection<java.lang.String> bccAddresses)
          The BCC: field(s) of the message.
 void setCcAddresses(java.util.Collection<java.lang.String> ccAddresses)
          The CC: field(s) of the message.
 void setToAddresses(java.util.Collection<java.lang.String> toAddresses)
          The To: field(s) of the message.
 java.lang.String toString()
          Returns a string representation of this object; useful for testing and debugging.
 Destination withBccAddresses(java.util.Collection<java.lang.String> bccAddresses)
          The BCC: field(s) of the message.
 Destination withBccAddresses(java.lang.String... bccAddresses)
          The BCC: field(s) of the message.
 Destination withCcAddresses(java.util.Collection<java.lang.String> ccAddresses)
          The CC: field(s) of the message.
 Destination withCcAddresses(java.lang.String... ccAddresses)
          The CC: field(s) of the message.
 Destination withToAddresses(java.util.Collection<java.lang.String> toAddresses)
          The To: field(s) of the message.
 Destination withToAddresses(java.lang.String... toAddresses)
          The To: field(s) of the message.
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Destination

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


Destination

public Destination(java.util.List<java.lang.String> toAddresses)
Constructs a new Destination object. Callers should use the setter or fluent setter (with...) methods to initialize any additional object members.

Parameters:
toAddresses - The To: field(s) of the message.
Method Detail

getToAddresses

public java.util.List<java.lang.String> getToAddresses()
The To: field(s) of the message.

Returns:
The To: field(s) of the message.

setToAddresses

public void setToAddresses(java.util.Collection<java.lang.String> toAddresses)
The To: field(s) of the message.

Parameters:
toAddresses - The To: field(s) of the message.

withToAddresses

public Destination withToAddresses(java.lang.String... toAddresses)
The To: field(s) of the message.

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

Parameters:
toAddresses - The To: field(s) of the message.
Returns:
A reference to this updated object so that method calls can be chained together.

withToAddresses

public Destination withToAddresses(java.util.Collection<java.lang.String> toAddresses)
The To: field(s) of the message.

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

Parameters:
toAddresses - The To: field(s) of the message.
Returns:
A reference to this updated object so that method calls can be chained together.

getCcAddresses

public java.util.List<java.lang.String> getCcAddresses()
The CC: field(s) of the message.

Returns:
The CC: field(s) of the message.

setCcAddresses

public void setCcAddresses(java.util.Collection<java.lang.String> ccAddresses)
The CC: field(s) of the message.

Parameters:
ccAddresses - The CC: field(s) of the message.

withCcAddresses

public Destination withCcAddresses(java.lang.String... ccAddresses)
The CC: field(s) of the message.

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

Parameters:
ccAddresses - The CC: field(s) of the message.
Returns:
A reference to this updated object so that method calls can be chained together.

withCcAddresses

public Destination withCcAddresses(java.util.Collection<java.lang.String> ccAddresses)
The CC: field(s) of the message.

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

Parameters:
ccAddresses - The CC: field(s) of the message.
Returns:
A reference to this updated object so that method calls can be chained together.

getBccAddresses

public java.util.List<java.lang.String> getBccAddresses()
The BCC: field(s) of the message.

Returns:
The BCC: field(s) of the message.

setBccAddresses

public void setBccAddresses(java.util.Collection<java.lang.String> bccAddresses)
The BCC: field(s) of the message.

Parameters:
bccAddresses - The BCC: field(s) of the message.

withBccAddresses

public Destination withBccAddresses(java.lang.String... bccAddresses)
The BCC: field(s) of the message.

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

Parameters:
bccAddresses - The BCC: field(s) of the message.
Returns:
A reference to this updated object so that method calls can be chained together.

withBccAddresses

public Destination withBccAddresses(java.util.Collection<java.lang.String> bccAddresses)
The BCC: field(s) of the message.

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

Parameters:
bccAddresses - The BCC: field(s) of the message.
Returns:
A reference to this updated object so that method calls can be chained together.

toString

public java.lang.String toString()
Returns a string representation of this object; useful for testing and debugging.

Overrides:
toString in class java.lang.Object
Returns:
A string representation of this object.
See Also:
Object.toString()

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object


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