Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
  /*
   * Copyright 2010-2015 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;
 

Represents the DKIM attributes of a verified email address or a domain.

 
 public class IdentityDkimAttributes implements SerializableCloneable {

    
True if DKIM signing is enabled for email sent from the identity; false otherwise.
 
     private Boolean dkimEnabled;

    
Describes whether Amazon SES has successfully verified the DKIM DNS records (tokens) published in the domain name's DNS. (This only applies to domain identities, not email address identities.)

Constraints:
Allowed Values: Pending, Success, Failed, TemporaryFailure, NotStarted

 
     private String dkimVerificationStatus;

    
A set of character strings that represent the domain's identity. Using these tokens, you will need to create DNS CNAME records that point to DKIM public keys hosted by Amazon SES. Amazon Web Services will eventually detect that you have updated your DNS records; this detection process may take up to 72 hours. Upon successful detection, Amazon SES will be able to DKIM-sign email originating from that domain. (This only applies to domain identities, not email address identities.)

For more information about creating DNS records using DKIM tokens, go to the Amazon SES Developer Guide.

 
True if DKIM signing is enabled for email sent from the identity; false otherwise.

Returns:
True if DKIM signing is enabled for email sent from the identity; false otherwise.
 
     public Boolean isDkimEnabled() {
         return ;
     }
    
    
True if DKIM signing is enabled for email sent from the identity; false otherwise.

Parameters:
dkimEnabled True if DKIM signing is enabled for email sent from the identity; false otherwise.
 
     public void setDkimEnabled(Boolean dkimEnabled) {
         this. = dkimEnabled;
     }
    
    
True if DKIM signing is enabled for email sent from the identity; false otherwise.

Returns a reference to this object so that method calls can be chained together.

Parameters:
dkimEnabled True if DKIM signing is enabled for email sent from the identity; false otherwise.
Returns:
A reference to this updated object so that method calls can be chained together.
 
     public IdentityDkimAttributes withDkimEnabled(Boolean dkimEnabled) {
         this. = dkimEnabled;
         return this;
     }

    
True if DKIM signing is enabled for email sent from the identity; false otherwise.

Returns:
True if DKIM signing is enabled for email sent from the identity; false otherwise.
    public Boolean getDkimEnabled() {
        return ;
    }

    
Describes whether Amazon SES has successfully verified the DKIM DNS records (tokens) published in the domain name's DNS. (This only applies to domain identities, not email address identities.)

Constraints:
Allowed Values: Pending, Success, Failed, TemporaryFailure, NotStarted

Returns:
Describes whether Amazon SES has successfully verified the DKIM DNS records (tokens) published in the domain name's DNS. (This only applies to domain identities, not email address identities.)
See also:
VerificationStatus
    public String getDkimVerificationStatus() {
        return ;
    }
    
    
Describes whether Amazon SES has successfully verified the DKIM DNS records (tokens) published in the domain name's DNS. (This only applies to domain identities, not email address identities.)

Constraints:
Allowed Values: Pending, Success, Failed, TemporaryFailure, NotStarted

Parameters:
dkimVerificationStatus Describes whether Amazon SES has successfully verified the DKIM DNS records (tokens) published in the domain name's DNS. (This only applies to domain identities, not email address identities.)
See also:
VerificationStatus
    public void setDkimVerificationStatus(String dkimVerificationStatus) {
        this. = dkimVerificationStatus;
    }
    
    
Describes whether Amazon SES has successfully verified the DKIM DNS records (tokens) published in the domain name's DNS. (This only applies to domain identities, not email address identities.)

Returns a reference to this object so that method calls can be chained together.

Constraints:
Allowed Values: Pending, Success, Failed, TemporaryFailure, NotStarted

Parameters:
dkimVerificationStatus Describes whether Amazon SES has successfully verified the DKIM DNS records (tokens) published in the domain name's DNS. (This only applies to domain identities, not email address identities.)
Returns:
A reference to this updated object so that method calls can be chained together.
See also:
VerificationStatus
    public IdentityDkimAttributes withDkimVerificationStatus(String dkimVerificationStatus) {
        this. = dkimVerificationStatus;
        return this;
    }

    
Describes whether Amazon SES has successfully verified the DKIM DNS records (tokens) published in the domain name's DNS. (This only applies to domain identities, not email address identities.)

Constraints:
Allowed Values: Pending, Success, Failed, TemporaryFailure, NotStarted

Parameters:
dkimVerificationStatus Describes whether Amazon SES has successfully verified the DKIM DNS records (tokens) published in the domain name's DNS. (This only applies to domain identities, not email address identities.)
See also:
VerificationStatus
    public void setDkimVerificationStatus(VerificationStatus dkimVerificationStatus) {
        this. = dkimVerificationStatus.toString();
    }
    
    
Describes whether Amazon SES has successfully verified the DKIM DNS records (tokens) published in the domain name's DNS. (This only applies to domain identities, not email address identities.)

Returns a reference to this object so that method calls can be chained together.

Constraints:
Allowed Values: Pending, Success, Failed, TemporaryFailure, NotStarted

Parameters:
dkimVerificationStatus Describes whether Amazon SES has successfully verified the DKIM DNS records (tokens) published in the domain name's DNS. (This only applies to domain identities, not email address identities.)
Returns:
A reference to this updated object so that method calls can be chained together.
See also:
VerificationStatus
    public IdentityDkimAttributes withDkimVerificationStatus(VerificationStatus dkimVerificationStatus) {
        this. = dkimVerificationStatus.toString();
        return this;
    }

    
A set of character strings that represent the domain's identity. Using these tokens, you will need to create DNS CNAME records that point to DKIM public keys hosted by Amazon SES. Amazon Web Services will eventually detect that you have updated your DNS records; this detection process may take up to 72 hours. Upon successful detection, Amazon SES will be able to DKIM-sign email originating from that domain. (This only applies to domain identities, not email address identities.)

For more information about creating DNS records using DKIM tokens, go to the Amazon SES Developer Guide.

Returns:
A set of character strings that represent the domain's identity. Using these tokens, you will need to create DNS CNAME records that point to DKIM public keys hosted by Amazon SES. Amazon Web Services will eventually detect that you have updated your DNS records; this detection process may take up to 72 hours. Upon successful detection, Amazon SES will be able to DKIM-sign email originating from that domain. (This only applies to domain identities, not email address identities.)

For more information about creating DNS records using DKIM tokens, go to the Amazon SES Developer Guide.

    public java.util.List<StringgetDkimTokens() {
        if ( == null) {
               = new com.amazonaws.internal.ListWithAutoConstructFlag<String>();
              .setAutoConstruct(true);
        }
        return ;
    }
    
    
A set of character strings that represent the domain's identity. Using these tokens, you will need to create DNS CNAME records that point to DKIM public keys hosted by Amazon SES. Amazon Web Services will eventually detect that you have updated your DNS records; this detection process may take up to 72 hours. Upon successful detection, Amazon SES will be able to DKIM-sign email originating from that domain. (This only applies to domain identities, not email address identities.)

For more information about creating DNS records using DKIM tokens, go to the Amazon SES Developer Guide.

Parameters:
dkimTokens A set of character strings that represent the domain's identity. Using these tokens, you will need to create DNS CNAME records that point to DKIM public keys hosted by Amazon SES. Amazon Web Services will eventually detect that you have updated your DNS records; this detection process may take up to 72 hours. Upon successful detection, Amazon SES will be able to DKIM-sign email originating from that domain. (This only applies to domain identities, not email address identities.)

For more information about creating DNS records using DKIM tokens, go to the Amazon SES Developer Guide.

    public void setDkimTokens(java.util.Collection<StringdkimTokens) {
        if (dkimTokens == null) {
            this. = null;
            return;
        }
        dkimTokensCopy.addAll(dkimTokens);
        this. = dkimTokensCopy;
    }
    
    
A set of character strings that represent the domain's identity. Using these tokens, you will need to create DNS CNAME records that point to DKIM public keys hosted by Amazon SES. Amazon Web Services will eventually detect that you have updated your DNS records; this detection process may take up to 72 hours. Upon successful detection, Amazon SES will be able to DKIM-sign email originating from that domain. (This only applies to domain identities, not email address identities.)

For more information about creating DNS records using DKIM tokens, go to the Amazon SES Developer Guide.

NOTE: This method appends the values to the existing list (if any). Use setDkimTokens(java.util.Collection) or withDkimTokens(java.util.Collection) if you want to override the existing values.

Returns a reference to this object so that method calls can be chained together.

Parameters:
dkimTokens A set of character strings that represent the domain's identity. Using these tokens, you will need to create DNS CNAME records that point to DKIM public keys hosted by Amazon SES. Amazon Web Services will eventually detect that you have updated your DNS records; this detection process may take up to 72 hours. Upon successful detection, Amazon SES will be able to DKIM-sign email originating from that domain. (This only applies to domain identities, not email address identities.)

For more information about creating DNS records using DKIM tokens, go to the Amazon SES Developer Guide.

Returns:
A reference to this updated object so that method calls can be chained together.
    public IdentityDkimAttributes withDkimTokens(String... dkimTokens) {
        if (getDkimTokens() == nullsetDkimTokens(new java.util.ArrayList<String>(dkimTokens.length));
        for (String value : dkimTokens) {
            getDkimTokens().add(value);
        }
        return this;
    }
    
    
A set of character strings that represent the domain's identity. Using these tokens, you will need to create DNS CNAME records that point to DKIM public keys hosted by Amazon SES. Amazon Web Services will eventually detect that you have updated your DNS records; this detection process may take up to 72 hours. Upon successful detection, Amazon SES will be able to DKIM-sign email originating from that domain. (This only applies to domain identities, not email address identities.)

For more information about creating DNS records using DKIM tokens, go to the Amazon SES Developer Guide.

Returns a reference to this object so that method calls can be chained together.

Parameters:
dkimTokens A set of character strings that represent the domain's identity. Using these tokens, you will need to create DNS CNAME records that point to DKIM public keys hosted by Amazon SES. Amazon Web Services will eventually detect that you have updated your DNS records; this detection process may take up to 72 hours. Upon successful detection, Amazon SES will be able to DKIM-sign email originating from that domain. (This only applies to domain identities, not email address identities.)

For more information about creating DNS records using DKIM tokens, go to the Amazon SES Developer Guide.

Returns:
A reference to this updated object so that method calls can be chained together.
        if (dkimTokens == null) {
            this. = null;
        } else {
            com.amazonaws.internal.ListWithAutoConstructFlag<StringdkimTokensCopy = new com.amazonaws.internal.ListWithAutoConstructFlag<String>(dkimTokens.size());
            dkimTokensCopy.addAll(dkimTokens);
            this. = dkimTokensCopy;
        }
        return this;
    }

    
Returns a string representation of this object; useful for testing and debugging.

Returns:
A string representation of this object.
See also:
java.lang.Object.toString()
    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append("{");
        if (isDkimEnabled() != nullsb.append("DkimEnabled: " + isDkimEnabled() + ",");
        if (getDkimVerificationStatus() != nullsb.append("DkimVerificationStatus: " + getDkimVerificationStatus() + ",");
        if (getDkimTokens() != nullsb.append("DkimTokens: " + getDkimTokens() );
        sb.append("}");
        return sb.toString();
    }
    
    @Override
    public int hashCode() {
        final int prime = 31;
        int hashCode = 1;
        
        hashCode = prime * hashCode + ((isDkimEnabled() == null) ? 0 : isDkimEnabled().hashCode()); 
        hashCode = prime * hashCode + ((getDkimVerificationStatus() == null) ? 0 : getDkimVerificationStatus().hashCode()); 
        hashCode = prime * hashCode + ((getDkimTokens() == null) ? 0 : getDkimTokens().hashCode()); 
        return hashCode;
    }
    
    @Override
    public boolean equals(Object obj) {
        if (this == objreturn true;
        if (obj == nullreturn false;
        if (obj instanceof IdentityDkimAttributes == falsereturn false;
        IdentityDkimAttributes other = (IdentityDkimAttributes)obj;
        
        if (other.isDkimEnabled() == null ^ this.isDkimEnabled() == nullreturn false;
        if (other.isDkimEnabled() != null && other.isDkimEnabled().equals(this.isDkimEnabled()) == falsereturn false
        if (other.getDkimVerificationStatus() == null ^ this.getDkimVerificationStatus() == nullreturn false;
        if (other.getDkimVerificationStatus() != null && other.getDkimVerificationStatus().equals(this.getDkimVerificationStatus()) == falsereturn false
        if (other.getDkimTokens() == null ^ this.getDkimTokens() == nullreturn false;
        if (other.getDkimTokens() != null && other.getDkimTokens().equals(this.getDkimTokens()) == falsereturn false
        return true;
    }
    
    @Override
    public IdentityDkimAttributes clone() {
        try {
            return (IdentityDkimAttributessuper.clone();
        
        } catch (CloneNotSupportedException e) {
            throw new IllegalStateException(
                    "Got a CloneNotSupportedException from Object.clone() "
                    + "even though we're Cloneable!",
                    e);
        }
        
    }
}
    
New to GrepCode? Check out our FAQ X