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 .
Constructor and Description |
---|
BouncedRecipientInfo() |
Modifier and Type | Method and 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 a
BounceType . |
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 a
BounceType . |
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 a
BounceType . |
public String getRecipient()
public void setRecipient(String recipient)
recipient
- The email address of the recipient of the bounced email.public BouncedRecipientInfo withRecipient(String recipient)
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 String getRecipientArn()
public void setRecipientArn(String recipientArn)
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(String recipientArn)
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 String getBounceType()
RecipientDsnFields
.
Constraints:
Allowed Values: DoesNotExist, MessageTooLarge, ExceededQuota, ContentRejected, Undefined, TemporaryFailure
RecipientDsnFields
.BounceType
public void setBounceType(String bounceType)
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(String bounceType)
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)
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)
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()
BounceType
. You
must provide either this parameter or BounceType
.BounceType
. You
must provide either this parameter or BounceType
.public void setRecipientDsnFields(RecipientDsnFields recipientDsnFields)
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)
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 String toString()
toString
in class Object
Object.toString()
public BouncedRecipientInfo clone()
Copyright © 2015. All rights reserved.