/* * Copyright 2010-2020 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ package com.amazonaws.services.simpleemail.model; import 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. *
*/ public class BouncedRecipientInfo implements Serializable { /** ** The email address of the recipient of the bounced email. *
*/ private String recipient; /** ** 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 String recipientArn; /** *
* The reason for the bounce. You must provide either this parameter or
* RecipientDsnFields
.
*
* Constraints:
* Allowed Values: DoesNotExist, MessageTooLarge, ExceededQuota,
* ContentRejected, Undefined, TemporaryFailure
*/
private String 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
.
*
* The email address of the recipient of the bounced email. *
* * @return* The email address of the recipient of the bounced email. *
*/ public String getRecipient() { return recipient; } /** ** The email address of the recipient of the bounced email. *
* * @param recipient* The email address of the recipient of the bounced email. *
*/ public void setRecipient(String recipient) { this.recipient = 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. * * @param recipient
* The email address of the recipient of the bounced email. *
* @return A reference to this updated object so that method calls can be * chained together. */ public BouncedRecipientInfo withRecipient(String recipient) { this.recipient = recipient; return this; } /** ** 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. *
* * @return* 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 getRecipientArn() { return 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. *
* * @param 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 setRecipientArn(String recipientArn) { this.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. *
** Returns a reference to this object so that method calls can be chained * together. * * @param 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. *
* @return A reference to this updated object so that method calls can be * chained together. */ public BouncedRecipientInfo withRecipientArn(String recipientArn) { this.recipientArn = recipientArn; return this; } /** *
* The reason for the bounce. You must provide either this parameter or
* RecipientDsnFields
.
*
* Constraints:
* Allowed Values: DoesNotExist, MessageTooLarge, ExceededQuota,
* ContentRejected, Undefined, TemporaryFailure
*
* @return
* The reason for the bounce. You must provide either this parameter
* or RecipientDsnFields
.
*
* The reason for the bounce. You must provide either this parameter or
* RecipientDsnFields
.
*
* Constraints:
* Allowed Values: DoesNotExist, MessageTooLarge, ExceededQuota,
* ContentRejected, Undefined, TemporaryFailure
*
* @param bounceType
* The reason for the bounce. You must provide either this
* parameter or RecipientDsnFields
.
*
* 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
*
* @param bounceType
* The reason for the bounce. You must provide either this
* parameter or RecipientDsnFields
.
*
* The reason for the bounce. You must provide either this parameter or
* RecipientDsnFields
.
*
* Constraints:
* Allowed Values: DoesNotExist, MessageTooLarge, ExceededQuota,
* ContentRejected, Undefined, TemporaryFailure
*
* @param bounceType
* The reason for the bounce. You must provide either this
* parameter or RecipientDsnFields
.
*
* 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
*
* @param bounceType
* The reason for the bounce. You must provide either this
* parameter or 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
.
*
* 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
.
*
* 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
.
*
* Returns a reference to this object so that method calls can be chained * together. * * @param 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
.
*