public class BouncedRecipientInfo
extends java.lang.Object
implements java.io.Serializable
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.
Constructor and Description |
---|
BouncedRecipientInfo() |
Modifier and Type | Method and Description |
---|---|
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 . |
public java.lang.String getRecipient()
The email address of the recipient of the bounced email.
The email address of the recipient of the bounced email.
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 BouncedRecipientInfo withRecipient(java.lang.String recipient)
The email address of the recipient of the bounced email.
Returns a reference to this object so that method calls can be chained together.
recipient
- The email address of the recipient of the bounced email.
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.
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 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 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.
Returns a reference to this object so that method calls can be chained together.
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 getBounceType()
The reason for the bounce. You must provide either this parameter or
RecipientDsnFields
.
Constraints:
Allowed Values: DoesNotExist, MessageTooLarge, ExceededQuota,
ContentRejected, Undefined, TemporaryFailure
The reason for the bounce. You must provide either this parameter
or RecipientDsnFields
.
BounceType
public void setBounceType(java.lang.String bounceType)
The reason for the bounce. You must provide either this parameter or
RecipientDsnFields
.
Constraints:
Allowed Values: DoesNotExist, MessageTooLarge, ExceededQuota,
ContentRejected, Undefined, TemporaryFailure
bounceType
-
The reason for the bounce. You must provide either this
parameter or RecipientDsnFields
.
BounceType
public BouncedRecipientInfo withBounceType(java.lang.String bounceType)
The reason for the bounce. You must provide either this parameter or
RecipientDsnFields
.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: DoesNotExist, MessageTooLarge, ExceededQuota,
ContentRejected, Undefined, TemporaryFailure
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
.
Constraints:
Allowed Values: DoesNotExist, MessageTooLarge, ExceededQuota,
ContentRejected, Undefined, TemporaryFailure
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
.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: DoesNotExist, MessageTooLarge, ExceededQuota,
ContentRejected, Undefined, TemporaryFailure
bounceType
-
The reason for the bounce. You must provide either this
parameter or RecipientDsnFields
.
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
.
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 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 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
.
Returns a reference to this object so that method calls can be chained together.
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 int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
Copyright © 2018 Amazon Web Services, Inc. All Rights Reserved.