Class BouncedRecipientInfo

java.lang.Object
com.amazonaws.services.simpleemail.model.BouncedRecipientInfo
All Implemented Interfaces:
Serializable, Cloneable

public class BouncedRecipientInfo extends Object implements Serializable, Cloneable

Recipient-related information to include in the Delivery Status Notification (DSN) when an email that Amazon SES receives on your behalf bounces.

For information about receiving email through Amazon SES, see the Amazon SES Developer Guide.

See Also:
  • Constructor Details

    • BouncedRecipientInfo

      public BouncedRecipientInfo()
  • Method Details

    • setRecipient

      public void setRecipient(String recipient)

      The email address of the recipient of the bounced email.

      Parameters:
      recipient - The email address of the recipient of the bounced email.
    • getRecipient

      public String getRecipient()

      The email address of the recipient of the bounced email.

      Returns:
      The email address of the recipient of the bounced email.
    • withRecipient

      public BouncedRecipientInfo withRecipient(String recipient)

      The email address of the recipient of the bounced email.

      Parameters:
      recipient - The email address of the recipient of the bounced email.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • setRecipientArn

      public void setRecipientArn(String recipientArn)

      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 receive email for the recipient of the bounced email. For more information about sending authorization, see the Amazon SES Developer Guide.

      Parameters:
      recipientArn - 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 receive email for the recipient of the bounced email. For more information about sending authorization, see the Amazon SES Developer Guide.
    • getRecipientArn

      public String getRecipientArn()

      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 receive email for the recipient of the bounced email. 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 receive email for the recipient of the bounced email. For more information about sending authorization, see the Amazon SES Developer Guide.
    • withRecipientArn

      public BouncedRecipientInfo withRecipientArn(String recipientArn)

      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 receive email for the recipient of the bounced email. For more information about sending authorization, see the Amazon SES Developer Guide.

      Parameters:
      recipientArn - 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 receive email for the recipient of the bounced email. 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.
    • setBounceType

      public void setBounceType(String bounceType)

      The reason for the bounce. You must provide either this parameter or RecipientDsnFields.

      Parameters:
      bounceType - The reason for the bounce. You must provide either this parameter or RecipientDsnFields.
      See Also:
    • getBounceType

      public String getBounceType()

      The reason for the bounce. You must provide either this parameter or RecipientDsnFields.

      Returns:
      The reason for the bounce. You must provide either this parameter or RecipientDsnFields.
      See Also:
    • withBounceType

      public BouncedRecipientInfo withBounceType(String bounceType)

      The reason for the bounce. You must provide either this parameter or RecipientDsnFields.

      Parameters:
      bounceType - The reason for the bounce. You must provide either this parameter or RecipientDsnFields.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • setBounceType

      public void setBounceType(BounceType bounceType)

      The reason for the bounce. You must provide either this parameter or RecipientDsnFields.

      Parameters:
      bounceType - The reason for the bounce. You must provide either this parameter or RecipientDsnFields.
      See Also:
    • withBounceType

      public BouncedRecipientInfo withBounceType(BounceType bounceType)

      The reason for the bounce. You must provide either this parameter or RecipientDsnFields.

      Parameters:
      bounceType - The reason for the bounce. You must provide either this parameter or RecipientDsnFields.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • setRecipientDsnFields

      public void setRecipientDsnFields(RecipientDsnFields recipientDsnFields)

      Recipient-related DSN fields, most of which would normally be filled in automatically when provided with a BounceType. You must provide either this parameter or BounceType.

      Parameters:
      recipientDsnFields - Recipient-related DSN fields, most of which would normally be filled in automatically when provided with a BounceType. You must provide either this parameter or BounceType.
    • getRecipientDsnFields

      public RecipientDsnFields getRecipientDsnFields()

      Recipient-related DSN fields, most of which would normally be filled in automatically when provided with a BounceType. You must provide either this parameter or BounceType.

      Returns:
      Recipient-related DSN fields, most of which would normally be filled in automatically when provided with a BounceType. You must provide either this parameter or BounceType.
    • withRecipientDsnFields

      public BouncedRecipientInfo withRecipientDsnFields(RecipientDsnFields recipientDsnFields)

      Recipient-related DSN fields, most of which would normally be filled in automatically when provided with a BounceType. You must provide either this parameter or BounceType.

      Parameters:
      recipientDsnFields - Recipient-related DSN fields, most of which would normally be filled in automatically when provided with a BounceType. You must provide either this parameter or BounceType.
      Returns:
      Returns a reference to this 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:
    • equals

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

      public int hashCode()
      Overrides:
      hashCode in class Object
    • clone

      public BouncedRecipientInfo clone()
      Overrides:
      clone in class Object