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:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description BouncedRecipientInfo()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BouncedRecipientInfo
clone()
boolean
equals(Object obj)
String
getBounceType()
The reason for the bounce.String
getRecipient()
The email address of the recipient of the bounced email.String
getRecipientArn()
This parameter is used only for sending authorization.RecipientDsnFields
getRecipientDsnFields()
Recipient-related DSN fields, most of which would normally be filled in automatically when provided with aBounceType
.int
hashCode()
void
setBounceType(BounceType bounceType)
The reason for the bounce.void
setBounceType(String bounceType)
The reason for the bounce.void
setRecipient(String recipient)
The email address of the recipient of the bounced email.void
setRecipientArn(String recipientArn)
This parameter is used only for sending authorization.void
setRecipientDsnFields(RecipientDsnFields recipientDsnFields)
Recipient-related DSN fields, most of which would normally be filled in automatically when provided with aBounceType
.String
toString()
Returns a string representation of this object; useful for testing and debugging.BouncedRecipientInfo
withBounceType(BounceType bounceType)
The reason for the bounce.BouncedRecipientInfo
withBounceType(String bounceType)
The reason for the bounce.BouncedRecipientInfo
withRecipient(String recipient)
The email address of the recipient of the bounced email.BouncedRecipientInfo
withRecipientArn(String recipientArn)
This parameter is used only for sending authorization.BouncedRecipientInfo
withRecipientDsnFields(RecipientDsnFields recipientDsnFields)
Recipient-related DSN fields, most of which would normally be filled in automatically when provided with aBounceType
.
-
-
-
Method Detail
-
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 orRecipientDsnFields
.- See Also:
BounceType
-
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:
BounceType
-
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 orRecipientDsnFields
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
BounceType
-
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 orRecipientDsnFields
.- See Also:
BounceType
-
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 orRecipientDsnFields
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
BounceType
-
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 orBounceType
.- Parameters:
recipientDsnFields
- Recipient-related DSN fields, most of which would normally be filled in automatically when provided with aBounceType
. You must provide either this parameter orBounceType
.
-
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 orBounceType
.- 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 orBounceType
.
-
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 orBounceType
.- Parameters:
recipientDsnFields
- Recipient-related DSN fields, most of which would normally be filled in automatically when provided with aBounceType
. You must provide either this parameter orBounceType
.- 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 classObject
- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public BouncedRecipientInfo clone()
-
-