/* * 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; /** *

* An object that contains information about the DKIM authentication status for an email identity. *

*

* Amazon SES determines the authentication status by searching for specific records in the DNS configuration for the * domain. If you used Easy DKIM to * set up DKIM authentication, Amazon SES tries to find three unique CNAME records in the DNS configuration for your * domain. If you provided a public key to perform DKIM authentication, Amazon SES tries to find a TXT record that uses * the selector that you specified. The value of the TXT record must be a public key that's paired with the private key * that you specified in the process of creating the identity *

* * @see AWS API * Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class DkimAttributes implements Serializable, Cloneable, StructuredPojo { /** *

* If the value is true, then the messages that you send from the identity are signed using DKIM. If * the value is false, then the messages that you send from the identity aren't DKIM-signed. *

*/ private Boolean signingEnabled; /** *

* Describes whether or not Amazon SES has successfully located the DKIM records in the DNS records for the domain. * The status can be one of the following: *

* */ private String status; /** *

* If you used Easy DKIM to * configure DKIM authentication for the domain, then this object contains a set of unique strings that you use to * create a set of CNAME records that you add to the DNS configuration for your domain. When Amazon SES detects * these records in the DNS configuration for your domain, the DKIM authentication process is complete. *

*

* If you configured DKIM authentication for the domain by providing your own public-private key pair, then this * object contains the selector for the public key. *

*

* Regardless of the DKIM authentication method you use, Amazon SES searches for the appropriate records in the DNS * configuration of the domain for up to 72 hours. *

*/ private java.util.List tokens; /** *

* A string that indicates how DKIM was configured for the identity. These are the possible values: *

* */ private String signingAttributesOrigin; /** *

* [Easy DKIM] The key length of the future DKIM key pair to be generated. This can be changed at most once per day. *

*/ private String nextSigningKeyLength; /** *

* [Easy DKIM] The key length of the DKIM key pair in use. *

*/ private String currentSigningKeyLength; /** *

* [Easy DKIM] The last time a key pair was generated for this identity. *

*/ private java.util.Date lastKeyGenerationTimestamp; /** *

* If the value is true, then the messages that you send from the identity are signed using DKIM. If * the value is false, then the messages that you send from the identity aren't DKIM-signed. *

* * @param signingEnabled * If the value is true, then the messages that you send from the identity are signed using * DKIM. If the value is false, then the messages that you send from the identity aren't * DKIM-signed. */ public void setSigningEnabled(Boolean signingEnabled) { this.signingEnabled = signingEnabled; } /** *

* If the value is true, then the messages that you send from the identity are signed using DKIM. If * the value is false, then the messages that you send from the identity aren't DKIM-signed. *

* * @return If the value is true, then the messages that you send from the identity are signed using * DKIM. If the value is false, then the messages that you send from the identity aren't * DKIM-signed. */ public Boolean getSigningEnabled() { return this.signingEnabled; } /** *

* If the value is true, then the messages that you send from the identity are signed using DKIM. If * the value is false, then the messages that you send from the identity aren't DKIM-signed. *

* * @param signingEnabled * If the value is true, then the messages that you send from the identity are signed using * DKIM. If the value is false, then the messages that you send from the identity aren't * DKIM-signed. * @return Returns a reference to this object so that method calls can be chained together. */ public DkimAttributes withSigningEnabled(Boolean signingEnabled) { setSigningEnabled(signingEnabled); return this; } /** *

* If the value is true, then the messages that you send from the identity are signed using DKIM. If * the value is false, then the messages that you send from the identity aren't DKIM-signed. *

* * @return If the value is true, then the messages that you send from the identity are signed using * DKIM. If the value is false, then the messages that you send from the identity aren't * DKIM-signed. */ public Boolean isSigningEnabled() { return this.signingEnabled; } /** *

* Describes whether or not Amazon SES has successfully located the DKIM records in the DNS records for the domain. * The status can be one of the following: *

* * * @param status * Describes whether or not Amazon SES has successfully located the DKIM records in the DNS records for the * domain. The status can be one of the following:

*