com.amazonaws.services.simpleemail.model
Class Destination

java.lang.Object
  extended by com.amazonaws.services.simpleemail.model.Destination

public class Destination
extends Object

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


Constructor Summary
Destination()
          Default constructor for a new Destination object.
Destination(List<String> toAddresses)
          Constructs a new Destination object.
 
Method Summary
 boolean equals(Object obj)
           
 List<String> getBccAddresses()
          The BCC: field(s) of the message.
 List<String> getCcAddresses()
          The CC: field(s) of the message.
 List<String> getToAddresses()
          The To: field(s) of the message.
 int hashCode()
           
 void setBccAddresses(Collection<String> bccAddresses)
          The BCC: field(s) of the message.
 void setCcAddresses(Collection<String> ccAddresses)
          The CC: field(s) of the message.
 void setToAddresses(Collection<String> toAddresses)
          The To: field(s) of the message.
 String toString()
          Returns a string representation of this object; useful for testing and debugging.
 Destination withBccAddresses(Collection<String> bccAddresses)
          The BCC: field(s) of the message.
 Destination withBccAddresses(String... bccAddresses)
          The BCC: field(s) of the message.
 Destination withCcAddresses(Collection<String> ccAddresses)
          The CC: field(s) of the message.
 Destination withCcAddresses(String... ccAddresses)
          The CC: field(s) of the message.
 Destination withToAddresses(Collection<String> toAddresses)
          The To: field(s) of the message.
 Destination withToAddresses(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(List<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 List<String> getToAddresses()
The To: field(s) of the message.

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

setToAddresses

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

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

withToAddresses

public Destination withToAddresses(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(Collection<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 List<String> getCcAddresses()
The CC: field(s) of the message.

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

setCcAddresses

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

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

withCcAddresses

public Destination withCcAddresses(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(Collection<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 List<String> getBccAddresses()
The BCC: field(s) of the message.

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

setBccAddresses

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

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

withBccAddresses

public Destination withBccAddresses(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(Collection<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 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.