/* * Copyright 2018-2023 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.pinpointemail.model; import java.io.Serializable; import javax.annotation.Generated; /** *
* Details about an email identity. *
* * @see AWS * API Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class GetEmailIdentityResult extends com.amazonaws.AmazonWebServiceResult* The email identity type. *
*/ private String identityType; /** ** The feedback forwarding configuration for the identity. *
*
* If the value is true
, Amazon Pinpoint sends you email notifications when bounce or complaint events
* occur. Amazon Pinpoint sends this notification to the address that you specified in the Return-Path header of the
* original email.
*
* When you set this value to false
, Amazon Pinpoint sends notifications through other mechanisms, such
* as by notifying an Amazon SNS topic or another event destination. You're required to have a method of tracking
* bounces and complaints. If you haven't set up another mechanism for receiving bounce or complaint notifications,
* Amazon Pinpoint sends an email notification when these events occur (even if this setting is disabled).
*
* Specifies whether or not the identity is verified. In Amazon Pinpoint, you can only send email from verified * email addresses or domains. For more information about verifying identities, see the Amazon Pinpoint * User Guide. *
*/ private Boolean verifiedForSendingStatus; /** ** An object that contains information about the DKIM attributes for the identity. This object includes the tokens * that you use to create the CNAME records that are required to complete the DKIM verification process. *
*/ private DkimAttributes dkimAttributes; /** ** An object that contains information about the Mail-From attributes for the email identity. *
*/ private MailFromAttributes mailFromAttributes; /** ** An array of objects that define the tags (keys and values) that are associated with the email identity. *
*/ private java.util.List* The email identity type. *
* * @param identityType * The email identity type. * @see IdentityType */ public void setIdentityType(String identityType) { this.identityType = identityType; } /** ** The email identity type. *
* * @return The email identity type. * @see IdentityType */ public String getIdentityType() { return this.identityType; } /** ** The email identity type. *
* * @param identityType * The email identity type. * @return Returns a reference to this object so that method calls can be chained together. * @see IdentityType */ public GetEmailIdentityResult withIdentityType(String identityType) { setIdentityType(identityType); return this; } /** ** The email identity type. *
* * @param identityType * The email identity type. * @return Returns a reference to this object so that method calls can be chained together. * @see IdentityType */ public GetEmailIdentityResult withIdentityType(IdentityType identityType) { this.identityType = identityType.toString(); return this; } /** ** The feedback forwarding configuration for the identity. *
*
* If the value is true
, Amazon Pinpoint sends you email notifications when bounce or complaint events
* occur. Amazon Pinpoint sends this notification to the address that you specified in the Return-Path header of the
* original email.
*
* When you set this value to false
, Amazon Pinpoint sends notifications through other mechanisms, such
* as by notifying an Amazon SNS topic or another event destination. You're required to have a method of tracking
* bounces and complaints. If you haven't set up another mechanism for receiving bounce or complaint notifications,
* Amazon Pinpoint sends an email notification when these events occur (even if this setting is disabled).
*
* If the value is true
, Amazon Pinpoint sends you email notifications when bounce or complaint
* events occur. Amazon Pinpoint sends this notification to the address that you specified in the Return-Path
* header of the original email.
*
* When you set this value to false
, Amazon Pinpoint sends notifications through other
* mechanisms, such as by notifying an Amazon SNS topic or another event destination. You're required to have
* a method of tracking bounces and complaints. If you haven't set up another mechanism for receiving bounce
* or complaint notifications, Amazon Pinpoint sends an email notification when these events occur (even if
* this setting is disabled).
*/
public void setFeedbackForwardingStatus(Boolean feedbackForwardingStatus) {
this.feedbackForwardingStatus = feedbackForwardingStatus;
}
/**
*
* The feedback forwarding configuration for the identity. *
*
* If the value is true
, Amazon Pinpoint sends you email notifications when bounce or complaint events
* occur. Amazon Pinpoint sends this notification to the address that you specified in the Return-Path header of the
* original email.
*
* When you set this value to false
, Amazon Pinpoint sends notifications through other mechanisms, such
* as by notifying an Amazon SNS topic or another event destination. You're required to have a method of tracking
* bounces and complaints. If you haven't set up another mechanism for receiving bounce or complaint notifications,
* Amazon Pinpoint sends an email notification when these events occur (even if this setting is disabled).
*
* If the value is true
, Amazon Pinpoint sends you email notifications when bounce or complaint
* events occur. Amazon Pinpoint sends this notification to the address that you specified in the
* Return-Path header of the original email.
*
* When you set this value to false
, Amazon Pinpoint sends notifications through other
* mechanisms, such as by notifying an Amazon SNS topic or another event destination. You're required to
* have a method of tracking bounces and complaints. If you haven't set up another mechanism for receiving
* bounce or complaint notifications, Amazon Pinpoint sends an email notification when these events occur
* (even if this setting is disabled).
*/
public Boolean getFeedbackForwardingStatus() {
return this.feedbackForwardingStatus;
}
/**
*
* The feedback forwarding configuration for the identity. *
*
* If the value is true
, Amazon Pinpoint sends you email notifications when bounce or complaint events
* occur. Amazon Pinpoint sends this notification to the address that you specified in the Return-Path header of the
* original email.
*
* When you set this value to false
, Amazon Pinpoint sends notifications through other mechanisms, such
* as by notifying an Amazon SNS topic or another event destination. You're required to have a method of tracking
* bounces and complaints. If you haven't set up another mechanism for receiving bounce or complaint notifications,
* Amazon Pinpoint sends an email notification when these events occur (even if this setting is disabled).
*
* If the value is true
, Amazon Pinpoint sends you email notifications when bounce or complaint
* events occur. Amazon Pinpoint sends this notification to the address that you specified in the Return-Path
* header of the original email.
*
* When you set this value to false
, Amazon Pinpoint sends notifications through other
* mechanisms, such as by notifying an Amazon SNS topic or another event destination. You're required to have
* a method of tracking bounces and complaints. If you haven't set up another mechanism for receiving bounce
* or complaint notifications, Amazon Pinpoint sends an email notification when these events occur (even if
* this setting is disabled).
* @return Returns a reference to this object so that method calls can be chained together.
*/
public GetEmailIdentityResult withFeedbackForwardingStatus(Boolean feedbackForwardingStatus) {
setFeedbackForwardingStatus(feedbackForwardingStatus);
return this;
}
/**
*
* The feedback forwarding configuration for the identity. *
*
* If the value is true
, Amazon Pinpoint sends you email notifications when bounce or complaint events
* occur. Amazon Pinpoint sends this notification to the address that you specified in the Return-Path header of the
* original email.
*
* When you set this value to false
, Amazon Pinpoint sends notifications through other mechanisms, such
* as by notifying an Amazon SNS topic or another event destination. You're required to have a method of tracking
* bounces and complaints. If you haven't set up another mechanism for receiving bounce or complaint notifications,
* Amazon Pinpoint sends an email notification when these events occur (even if this setting is disabled).
*
* If the value is true
, Amazon Pinpoint sends you email notifications when bounce or complaint
* events occur. Amazon Pinpoint sends this notification to the address that you specified in the
* Return-Path header of the original email.
*
* When you set this value to false
, Amazon Pinpoint sends notifications through other
* mechanisms, such as by notifying an Amazon SNS topic or another event destination. You're required to
* have a method of tracking bounces and complaints. If you haven't set up another mechanism for receiving
* bounce or complaint notifications, Amazon Pinpoint sends an email notification when these events occur
* (even if this setting is disabled).
*/
public Boolean isFeedbackForwardingStatus() {
return this.feedbackForwardingStatus;
}
/**
*
* Specifies whether or not the identity is verified. In Amazon Pinpoint, you can only send email from verified * email addresses or domains. For more information about verifying identities, see the Amazon Pinpoint * User Guide. *
* * @param verifiedForSendingStatus * Specifies whether or not the identity is verified. In Amazon Pinpoint, you can only send email from * verified email addresses or domains. For more information about verifying identities, see the Amazon * Pinpoint User Guide. */ public void setVerifiedForSendingStatus(Boolean verifiedForSendingStatus) { this.verifiedForSendingStatus = verifiedForSendingStatus; } /** ** Specifies whether or not the identity is verified. In Amazon Pinpoint, you can only send email from verified * email addresses or domains. For more information about verifying identities, see the Amazon Pinpoint * User Guide. *
* * @return Specifies whether or not the identity is verified. In Amazon Pinpoint, you can only send email from * verified email addresses or domains. For more information about verifying identities, see the Amazon * Pinpoint User Guide. */ public Boolean getVerifiedForSendingStatus() { return this.verifiedForSendingStatus; } /** ** Specifies whether or not the identity is verified. In Amazon Pinpoint, you can only send email from verified * email addresses or domains. For more information about verifying identities, see the Amazon Pinpoint * User Guide. *
* * @param verifiedForSendingStatus * Specifies whether or not the identity is verified. In Amazon Pinpoint, you can only send email from * verified email addresses or domains. For more information about verifying identities, see the Amazon * Pinpoint User Guide. * @return Returns a reference to this object so that method calls can be chained together. */ public GetEmailIdentityResult withVerifiedForSendingStatus(Boolean verifiedForSendingStatus) { setVerifiedForSendingStatus(verifiedForSendingStatus); return this; } /** ** Specifies whether or not the identity is verified. In Amazon Pinpoint, you can only send email from verified * email addresses or domains. For more information about verifying identities, see the Amazon Pinpoint * User Guide. *
* * @return Specifies whether or not the identity is verified. In Amazon Pinpoint, you can only send email from * verified email addresses or domains. For more information about verifying identities, see the Amazon * Pinpoint User Guide. */ public Boolean isVerifiedForSendingStatus() { return this.verifiedForSendingStatus; } /** ** An object that contains information about the DKIM attributes for the identity. This object includes the tokens * that you use to create the CNAME records that are required to complete the DKIM verification process. *
* * @param dkimAttributes * An object that contains information about the DKIM attributes for the identity. This object includes the * tokens that you use to create the CNAME records that are required to complete the DKIM verification * process. */ public void setDkimAttributes(DkimAttributes dkimAttributes) { this.dkimAttributes = dkimAttributes; } /** ** An object that contains information about the DKIM attributes for the identity. This object includes the tokens * that you use to create the CNAME records that are required to complete the DKIM verification process. *
* * @return An object that contains information about the DKIM attributes for the identity. This object includes the * tokens that you use to create the CNAME records that are required to complete the DKIM verification * process. */ public DkimAttributes getDkimAttributes() { return this.dkimAttributes; } /** ** An object that contains information about the DKIM attributes for the identity. This object includes the tokens * that you use to create the CNAME records that are required to complete the DKIM verification process. *
* * @param dkimAttributes * An object that contains information about the DKIM attributes for the identity. This object includes the * tokens that you use to create the CNAME records that are required to complete the DKIM verification * process. * @return Returns a reference to this object so that method calls can be chained together. */ public GetEmailIdentityResult withDkimAttributes(DkimAttributes dkimAttributes) { setDkimAttributes(dkimAttributes); return this; } /** ** An object that contains information about the Mail-From attributes for the email identity. *
* * @param mailFromAttributes * An object that contains information about the Mail-From attributes for the email identity. */ public void setMailFromAttributes(MailFromAttributes mailFromAttributes) { this.mailFromAttributes = mailFromAttributes; } /** ** An object that contains information about the Mail-From attributes for the email identity. *
* * @return An object that contains information about the Mail-From attributes for the email identity. */ public MailFromAttributes getMailFromAttributes() { return this.mailFromAttributes; } /** ** An object that contains information about the Mail-From attributes for the email identity. *
* * @param mailFromAttributes * An object that contains information about the Mail-From attributes for the email identity. * @return Returns a reference to this object so that method calls can be chained together. */ public GetEmailIdentityResult withMailFromAttributes(MailFromAttributes mailFromAttributes) { setMailFromAttributes(mailFromAttributes); return this; } /** ** An array of objects that define the tags (keys and values) that are associated with the email identity. *
* * @return An array of objects that define the tags (keys and values) that are associated with the email identity. */ public java.util.List* An array of objects that define the tags (keys and values) that are associated with the email identity. *
* * @param tags * An array of objects that define the tags (keys and values) that are associated with the email identity. */ public void setTags(java.util.Collection* An array of objects that define the tags (keys and values) that are associated with the email identity. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setTags(java.util.Collection)} or {@link #withTags(java.util.Collection)} if you want to override the * existing values. *
* * @param tags * An array of objects that define the tags (keys and values) that are associated with the email identity. * @return Returns a reference to this object so that method calls can be chained together. */ public GetEmailIdentityResult withTags(Tag... tags) { if (this.tags == null) { setTags(new java.util.ArrayList* An array of objects that define the tags (keys and values) that are associated with the email identity. *
* * @param tags * An array of objects that define the tags (keys and values) that are associated with the email identity. * @return Returns a reference to this object so that method calls can be chained together. */ public GetEmailIdentityResult withTags(java.util.Collection