/* * 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.simpleemailv2.model; import java.io.Serializable; import javax.annotation.Generated; import com.amazonaws.protocol.StructuredPojo; import com.amazonaws.protocol.ProtocolMarshaller; /** *
* Information about an email identity. *
* * @see AWS API * Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class IdentityInfo implements Serializable, Cloneable, StructuredPojo { /** *
* The email identity type. Note: the MANAGED_DOMAIN
type is not supported for email identity types.
*
* The address or domain of the identity. *
*/ private String identityName; /** ** Indicates whether or not you can send email from the identity. *
** An identity is an email address or domain that you send email from. Before you can send email from an * identity, you have to demostrate that you own the identity, and that you authorize Amazon SES to send email from * that identity. *
*/ private Boolean sendingEnabled; /** ** The verification status of the identity. The status can be one of the following: *
*
* PENDING
– The verification process was initiated, but Amazon SES hasn't yet been able to verify the
* identity.
*
* SUCCESS
– The verification process completed successfully.
*
* FAILED
– The verification process failed.
*
* TEMPORARY_FAILURE
– A temporary issue is preventing Amazon SES from determining the verification
* status of the identity.
*
* NOT_STARTED
– The verification process hasn't been initiated for the identity.
*
* The email identity type. Note: the MANAGED_DOMAIN
type is not supported for email identity types.
*
MANAGED_DOMAIN
type is not supported for email identity
* types.
* @see IdentityType
*/
public void setIdentityType(String identityType) {
this.identityType = identityType;
}
/**
*
* The email identity type. Note: the MANAGED_DOMAIN
type is not supported for email identity types.
*
MANAGED_DOMAIN
type is not supported for email identity
* types.
* @see IdentityType
*/
public String getIdentityType() {
return this.identityType;
}
/**
*
* The email identity type. Note: the MANAGED_DOMAIN
type is not supported for email identity types.
*
MANAGED_DOMAIN
type is not supported for email identity
* types.
* @return Returns a reference to this object so that method calls can be chained together.
* @see IdentityType
*/
public IdentityInfo withIdentityType(String identityType) {
setIdentityType(identityType);
return this;
}
/**
*
* The email identity type. Note: the MANAGED_DOMAIN
type is not supported for email identity types.
*
MANAGED_DOMAIN
type is not supported for email identity
* types.
* @return Returns a reference to this object so that method calls can be chained together.
* @see IdentityType
*/
public IdentityInfo withIdentityType(IdentityType identityType) {
this.identityType = identityType.toString();
return this;
}
/**
* * The address or domain of the identity. *
* * @param identityName * The address or domain of the identity. */ public void setIdentityName(String identityName) { this.identityName = identityName; } /** ** The address or domain of the identity. *
* * @return The address or domain of the identity. */ public String getIdentityName() { return this.identityName; } /** ** The address or domain of the identity. *
* * @param identityName * The address or domain of the identity. * @return Returns a reference to this object so that method calls can be chained together. */ public IdentityInfo withIdentityName(String identityName) { setIdentityName(identityName); return this; } /** ** Indicates whether or not you can send email from the identity. *
** An identity is an email address or domain that you send email from. Before you can send email from an * identity, you have to demostrate that you own the identity, and that you authorize Amazon SES to send email from * that identity. *
* * @param sendingEnabled * Indicates whether or not you can send email from the identity. ** An identity is an email address or domain that you send email from. Before you can send email from * an identity, you have to demostrate that you own the identity, and that you authorize Amazon SES to send * email from that identity. */ public void setSendingEnabled(Boolean sendingEnabled) { this.sendingEnabled = sendingEnabled; } /** *
* Indicates whether or not you can send email from the identity. *
** An identity is an email address or domain that you send email from. Before you can send email from an * identity, you have to demostrate that you own the identity, and that you authorize Amazon SES to send email from * that identity. *
* * @return Indicates whether or not you can send email from the identity. ** An identity is an email address or domain that you send email from. Before you can send email from * an identity, you have to demostrate that you own the identity, and that you authorize Amazon SES to send * email from that identity. */ public Boolean getSendingEnabled() { return this.sendingEnabled; } /** *
* Indicates whether or not you can send email from the identity. *
** An identity is an email address or domain that you send email from. Before you can send email from an * identity, you have to demostrate that you own the identity, and that you authorize Amazon SES to send email from * that identity. *
* * @param sendingEnabled * Indicates whether or not you can send email from the identity. ** An identity is an email address or domain that you send email from. Before you can send email from * an identity, you have to demostrate that you own the identity, and that you authorize Amazon SES to send * email from that identity. * @return Returns a reference to this object so that method calls can be chained together. */ public IdentityInfo withSendingEnabled(Boolean sendingEnabled) { setSendingEnabled(sendingEnabled); return this; } /** *
* Indicates whether or not you can send email from the identity. *
** An identity is an email address or domain that you send email from. Before you can send email from an * identity, you have to demostrate that you own the identity, and that you authorize Amazon SES to send email from * that identity. *
* * @return Indicates whether or not you can send email from the identity. ** An identity is an email address or domain that you send email from. Before you can send email from * an identity, you have to demostrate that you own the identity, and that you authorize Amazon SES to send * email from that identity. */ public Boolean isSendingEnabled() { return this.sendingEnabled; } /** *
* The verification status of the identity. The status can be one of the following: *
*
* PENDING
– The verification process was initiated, but Amazon SES hasn't yet been able to verify the
* identity.
*
* SUCCESS
– The verification process completed successfully.
*
* FAILED
– The verification process failed.
*
* TEMPORARY_FAILURE
– A temporary issue is preventing Amazon SES from determining the verification
* status of the identity.
*
* NOT_STARTED
– The verification process hasn't been initiated for the identity.
*
* PENDING
– The verification process was initiated, but Amazon SES hasn't yet been able to
* verify the identity.
*
* SUCCESS
– The verification process completed successfully.
*
* FAILED
– The verification process failed.
*
* TEMPORARY_FAILURE
– A temporary issue is preventing Amazon SES from determining the
* verification status of the identity.
*
* NOT_STARTED
– The verification process hasn't been initiated for the identity.
*
* The verification status of the identity. The status can be one of the following: *
*
* PENDING
– The verification process was initiated, but Amazon SES hasn't yet been able to verify the
* identity.
*
* SUCCESS
– The verification process completed successfully.
*
* FAILED
– The verification process failed.
*
* TEMPORARY_FAILURE
– A temporary issue is preventing Amazon SES from determining the verification
* status of the identity.
*
* NOT_STARTED
– The verification process hasn't been initiated for the identity.
*
* PENDING
– The verification process was initiated, but Amazon SES hasn't yet been able to
* verify the identity.
*
* SUCCESS
– The verification process completed successfully.
*
* FAILED
– The verification process failed.
*
* TEMPORARY_FAILURE
– A temporary issue is preventing Amazon SES from determining the
* verification status of the identity.
*
* NOT_STARTED
– The verification process hasn't been initiated for the identity.
*
* The verification status of the identity. The status can be one of the following: *
*
* PENDING
– The verification process was initiated, but Amazon SES hasn't yet been able to verify the
* identity.
*
* SUCCESS
– The verification process completed successfully.
*
* FAILED
– The verification process failed.
*
* TEMPORARY_FAILURE
– A temporary issue is preventing Amazon SES from determining the verification
* status of the identity.
*
* NOT_STARTED
– The verification process hasn't been initiated for the identity.
*
* PENDING
– The verification process was initiated, but Amazon SES hasn't yet been able to
* verify the identity.
*
* SUCCESS
– The verification process completed successfully.
*
* FAILED
– The verification process failed.
*
* TEMPORARY_FAILURE
– A temporary issue is preventing Amazon SES from determining the
* verification status of the identity.
*
* NOT_STARTED
– The verification process hasn't been initiated for the identity.
*
* The verification status of the identity. The status can be one of the following: *
*
* PENDING
– The verification process was initiated, but Amazon SES hasn't yet been able to verify the
* identity.
*
* SUCCESS
– The verification process completed successfully.
*
* FAILED
– The verification process failed.
*
* TEMPORARY_FAILURE
– A temporary issue is preventing Amazon SES from determining the verification
* status of the identity.
*
* NOT_STARTED
– The verification process hasn't been initiated for the identity.
*
* PENDING
– The verification process was initiated, but Amazon SES hasn't yet been able to
* verify the identity.
*
* SUCCESS
– The verification process completed successfully.
*
* FAILED
– The verification process failed.
*
* TEMPORARY_FAILURE
– A temporary issue is preventing Amazon SES from determining the
* verification status of the identity.
*
* NOT_STARTED
– The verification process hasn't been initiated for the identity.
*