com.amazonaws.services.simpleemail.model.VerifyDomainDkimResult Maven / Gradle / Ivy
Show all versions of aws-java-sdk-ses Show documentation
/*
* Copyright 2019-2024 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;
import javax.annotation.Generated;
/**
*
* Returns CNAME records that you must publish to the DNS server of your domain to set up Easy DKIM with Amazon SES.
*
*
* @see AWS API
* Documentation
*/
@Generated("com.amazonaws:aws-java-sdk-code-generator")
public class VerifyDomainDkimResult extends com.amazonaws.AmazonWebServiceResult implements Serializable, Cloneable {
/**
*
* A set of character strings that represent the domain's identity. If the identity is an email address, the tokens
* represent the domain of that address.
*
*
* Using these tokens, you need to create DNS CNAME records that point to DKIM public keys that are hosted by Amazon
* SES. Amazon Web Services eventually detects that you've updated your DNS records. This detection process might
* take up to 72 hours. After successful detection, Amazon SES is 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, see the Amazon SES Developer
* Guide.
*
*/
private com.amazonaws.internal.SdkInternalList dkimTokens;
/**
*
* A set of character strings that represent the domain's identity. If the identity is an email address, the tokens
* represent the domain of that address.
*
*
* Using these tokens, you need to create DNS CNAME records that point to DKIM public keys that are hosted by Amazon
* SES. Amazon Web Services eventually detects that you've updated your DNS records. This detection process might
* take up to 72 hours. After successful detection, Amazon SES is 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, see the Amazon SES Developer
* Guide.
*
*
* @return A set of character strings that represent the domain's identity. If the identity is an email address, the
* tokens represent the domain of that address.
*
* Using these tokens, you need to create DNS CNAME records that point to DKIM public keys that are hosted
* by Amazon SES. Amazon Web Services eventually detects that you've updated your DNS records. This
* detection process might take up to 72 hours. After successful detection, Amazon SES is 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, see the Amazon SES
* Developer Guide.
*/
public java.util.List getDkimTokens() {
if (dkimTokens == null) {
dkimTokens = new com.amazonaws.internal.SdkInternalList();
}
return dkimTokens;
}
/**
*
* A set of character strings that represent the domain's identity. If the identity is an email address, the tokens
* represent the domain of that address.
*
*
* Using these tokens, you need to create DNS CNAME records that point to DKIM public keys that are hosted by Amazon
* SES. Amazon Web Services eventually detects that you've updated your DNS records. This detection process might
* take up to 72 hours. After successful detection, Amazon SES is 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, see the Amazon SES Developer
* Guide.
*
*
* @param dkimTokens
* A set of character strings that represent the domain's identity. If the identity is an email address, the
* tokens represent the domain of that address.
*
* Using these tokens, you need to create DNS CNAME records that point to DKIM public keys that are hosted by
* Amazon SES. Amazon Web Services eventually detects that you've updated your DNS records. This detection
* process might take up to 72 hours. After successful detection, Amazon SES is 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, see the Amazon SES
* Developer Guide.
*/
public void setDkimTokens(java.util.Collection dkimTokens) {
if (dkimTokens == null) {
this.dkimTokens = null;
return;
}
this.dkimTokens = new com.amazonaws.internal.SdkInternalList(dkimTokens);
}
/**
*
* A set of character strings that represent the domain's identity. If the identity is an email address, the tokens
* represent the domain of that address.
*
*
* Using these tokens, you need to create DNS CNAME records that point to DKIM public keys that are hosted by Amazon
* SES. Amazon Web Services eventually detects that you've updated your DNS records. This detection process might
* take up to 72 hours. After successful detection, Amazon SES is 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, see the Amazon SES Developer
* Guide.
*
*
* NOTE: This method appends the values to the existing list (if any). Use
* {@link #setDkimTokens(java.util.Collection)} or {@link #withDkimTokens(java.util.Collection)} if you want to
* override the existing values.
*
*
* @param dkimTokens
* A set of character strings that represent the domain's identity. If the identity is an email address, the
* tokens represent the domain of that address.
*
* Using these tokens, you need to create DNS CNAME records that point to DKIM public keys that are hosted by
* Amazon SES. Amazon Web Services eventually detects that you've updated your DNS records. This detection
* process might take up to 72 hours. After successful detection, Amazon SES is 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, see the Amazon SES
* Developer Guide.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public VerifyDomainDkimResult withDkimTokens(String... dkimTokens) {
if (this.dkimTokens == null) {
setDkimTokens(new com.amazonaws.internal.SdkInternalList(dkimTokens.length));
}
for (String ele : dkimTokens) {
this.dkimTokens.add(ele);
}
return this;
}
/**
*
* A set of character strings that represent the domain's identity. If the identity is an email address, the tokens
* represent the domain of that address.
*
*
* Using these tokens, you need to create DNS CNAME records that point to DKIM public keys that are hosted by Amazon
* SES. Amazon Web Services eventually detects that you've updated your DNS records. This detection process might
* take up to 72 hours. After successful detection, Amazon SES is 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, see the Amazon SES Developer
* Guide.
*
*
* @param dkimTokens
* A set of character strings that represent the domain's identity. If the identity is an email address, the
* tokens represent the domain of that address.
*
* Using these tokens, you need to create DNS CNAME records that point to DKIM public keys that are hosted by
* Amazon SES. Amazon Web Services eventually detects that you've updated your DNS records. This detection
* process might take up to 72 hours. After successful detection, Amazon SES is 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, see the Amazon SES
* Developer Guide.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public VerifyDomainDkimResult withDkimTokens(java.util.Collection dkimTokens) {
setDkimTokens(dkimTokens);
return this;
}
/**
* Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be
* redacted from this string using a placeholder value.
*
* @return A string representation of this object.
*
* @see java.lang.Object#toString()
*/
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("{");
if (getDkimTokens() != null)
sb.append("DkimTokens: ").append(getDkimTokens());
sb.append("}");
return sb.toString();
}
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (obj instanceof VerifyDomainDkimResult == false)
return false;
VerifyDomainDkimResult other = (VerifyDomainDkimResult) obj;
if (other.getDkimTokens() == null ^ this.getDkimTokens() == null)
return false;
if (other.getDkimTokens() != null && other.getDkimTokens().equals(this.getDkimTokens()) == false)
return false;
return true;
}
@Override
public int hashCode() {
final int prime = 31;
int hashCode = 1;
hashCode = prime * hashCode + ((getDkimTokens() == null) ? 0 : getDkimTokens().hashCode());
return hashCode;
}
@Override
public VerifyDomainDkimResult clone() {
try {
return (VerifyDomainDkimResult) super.clone();
} catch (CloneNotSupportedException e) {
throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e);
}
}
}