public class BouncedRecipientInfo
extends java.lang.Object
implements java.io.Serializable, java.lang.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.
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
bounceType
The reason for the bounce.
|
private java.lang.String |
recipient
The email address of the recipient of the bounced email.
|
private java.lang.String |
recipientArn
This parameter is used only for sending authorization.
|
private RecipientDsnFields |
recipientDsnFields
Recipient-related DSN fields, most of which would normally be filled in
automatically when provided with a
BounceType . |
Constructor and Description |
---|
BouncedRecipientInfo() |
Modifier and Type | Method and Description |
---|---|
BouncedRecipientInfo |
clone() |
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getBounceType()
The reason for the bounce.
|
java.lang.String |
getRecipient()
The email address of the recipient of the bounced email.
|
java.lang.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 a
BounceType . |
int |
hashCode() |
void |
setBounceType(BounceType bounceType)
The reason for the bounce.
|
void |
setBounceType(java.lang.String bounceType)
The reason for the bounce.
|
void |
setRecipient(java.lang.String recipient)
The email address of the recipient of the bounced email.
|
void |
setRecipientArn(java.lang.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 a
BounceType . |
java.lang.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(java.lang.String bounceType)
The reason for the bounce.
|
BouncedRecipientInfo |
withRecipient(java.lang.String recipient)
The email address of the recipient of the bounced email.
|
BouncedRecipientInfo |
withRecipientArn(java.lang.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 a
BounceType . |
private java.lang.String recipient
The email address of the recipient of the bounced email.
private java.lang.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.
private java.lang.String bounceType
The reason for the bounce. You must provide either this parameter or
RecipientDsnFields
.
private 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
.
public void setRecipient(java.lang.String recipient)
The email address of the recipient of the bounced email.
recipient
- The email address of the recipient of the bounced email.public java.lang.String getRecipient()
The email address of the recipient of the bounced email.
public BouncedRecipientInfo withRecipient(java.lang.String recipient)
The email address of the recipient of the bounced email.
recipient
- The email address of the recipient of the bounced email.public void setRecipientArn(java.lang.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.
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.public java.lang.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.
public BouncedRecipientInfo withRecipientArn(java.lang.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.
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.public void setBounceType(java.lang.String bounceType)
The reason for the bounce. You must provide either this parameter or
RecipientDsnFields
.
bounceType
- The reason for the bounce. You must provide either this parameter
or RecipientDsnFields
.BounceType
public java.lang.String getBounceType()
The reason for the bounce. You must provide either this parameter or
RecipientDsnFields
.
RecipientDsnFields
.BounceType
public BouncedRecipientInfo withBounceType(java.lang.String bounceType)
The reason for the bounce. You must provide either this parameter or
RecipientDsnFields
.
bounceType
- The reason for the bounce. You must provide either this parameter
or RecipientDsnFields
.BounceType
public void setBounceType(BounceType bounceType)
The reason for the bounce. You must provide either this parameter or
RecipientDsnFields
.
bounceType
- The reason for the bounce. You must provide either this parameter
or RecipientDsnFields
.BounceType
public BouncedRecipientInfo withBounceType(BounceType bounceType)
The reason for the bounce. You must provide either this parameter or
RecipientDsnFields
.
bounceType
- The reason for the bounce. You must provide either this parameter
or RecipientDsnFields
.BounceType
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
.
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
.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
.
BounceType
. You must provide either this parameter
or BounceType
.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
.
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
.public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public BouncedRecipientInfo clone()
clone
in class java.lang.Object