/*
 * 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.customerprofiles.model;

import java.io.Serializable;
import javax.annotation.Generated;

/**
 * 
 * @see <a href="http://docs.aws.amazon.com/goto/WebAPI/customer-profiles-2020-08-15/CreateDomain" target="_top">AWS API
 *      Documentation</a>
 */
@Generated("com.amazonaws:aws-java-sdk-code-generator")
public class CreateDomainResult extends com.amazonaws.AmazonWebServiceResult<com.amazonaws.ResponseMetadata> implements Serializable, Cloneable {

    /**
     * <p>
     * The unique name of the domain.
     * </p>
     */
    private String domainName;
    /**
     * <p>
     * The default number of days until the data within the domain expires.
     * </p>
     */
    private Integer defaultExpirationDays;
    /**
     * <p>
     * The default encryption key, which is an AWS managed key, is used when no specific type of encryption key is
     * specified. It is used to encrypt all data before it is placed in permanent or semi-permanent storage.
     * </p>
     */
    private String defaultEncryptionKey;
    /**
     * <p>
     * The URL of the SQS dead letter queue, which is used for reporting errors associated with ingesting data from
     * third party applications.
     * </p>
     */
    private String deadLetterQueueUrl;
    /**
     * <p>
     * The process of matching duplicate profiles. If <code>Matching</code> = <code>true</code>, Amazon Connect Customer
     * Profiles starts a weekly batch process called Identity Resolution Job. If you do not specify a date and time for
     * Identity Resolution Job to run, by default it runs every Saturday at 12AM UTC to detect duplicate profiles in
     * your domains.
     * </p>
     * <p>
     * After the Identity Resolution Job completes, use the <a
     * href="https://docs.aws.amazon.com/customerprofiles/latest/APIReference/API_GetMatches.html">GetMatches</a> API to
     * return and review the results. Or, if you have configured <code>ExportingConfig</code> in the
     * <code>MatchingRequest</code>, you can download the results from S3.
     * </p>
     */
    private MatchingResponse matching;
    /**
     * <p>
     * The process of matching duplicate profiles using the Rule-Based matching. If <code>RuleBasedMatching</code> =
     * true, Amazon Connect Customer Profiles will start to match and merge your profiles according to your
     * configuration in the <code>RuleBasedMatchingRequest</code>. You can use the <code>ListRuleBasedMatches</code> and
     * <code>GetSimilarProfiles</code> API to return and review the results. Also, if you have configured
     * <code>ExportingConfig</code> in the <code>RuleBasedMatchingRequest</code>, you can download the results from S3.
     * </p>
     */
    private RuleBasedMatchingResponse ruleBasedMatching;
    /**
     * <p>
     * The timestamp of when the domain was created.
     * </p>
     */
    private java.util.Date createdAt;
    /**
     * <p>
     * The timestamp of when the domain was most recently edited.
     * </p>
     */
    private java.util.Date lastUpdatedAt;
    /**
     * <p>
     * The tags used to organize, track, or control access for this resource.
     * </p>
     */
    private java.util.Map<String, String> tags;

    /**
     * <p>
     * The unique name of the domain.
     * </p>
     * 
     * @param domainName
     *        The unique name of the domain.
     */

    public void setDomainName(String domainName) {
        this.domainName = domainName;
    }

    /**
     * <p>
     * The unique name of the domain.
     * </p>
     * 
     * @return The unique name of the domain.
     */

    public String getDomainName() {
        return this.domainName;
    }

    /**
     * <p>
     * The unique name of the domain.
     * </p>
     * 
     * @param domainName
     *        The unique name of the domain.
     * @return Returns a reference to this object so that method calls can be chained together.
     */

    public CreateDomainResult withDomainName(String domainName) {
        setDomainName(domainName);
        return this;
    }

    /**
     * <p>
     * The default number of days until the data within the domain expires.
     * </p>
     * 
     * @param defaultExpirationDays
     *        The default number of days until the data within the domain expires.
     */

    public void setDefaultExpirationDays(Integer defaultExpirationDays) {
        this.defaultExpirationDays = defaultExpirationDays;
    }

    /**
     * <p>
     * The default number of days until the data within the domain expires.
     * </p>
     * 
     * @return The default number of days until the data within the domain expires.
     */

    public Integer getDefaultExpirationDays() {
        return this.defaultExpirationDays;
    }

    /**
     * <p>
     * The default number of days until the data within the domain expires.
     * </p>
     * 
     * @param defaultExpirationDays
     *        The default number of days until the data within the domain expires.
     * @return Returns a reference to this object so that method calls can be chained together.
     */

    public CreateDomainResult withDefaultExpirationDays(Integer defaultExpirationDays) {
        setDefaultExpirationDays(defaultExpirationDays);
        return this;
    }

    /**
     * <p>
     * The default encryption key, which is an AWS managed key, is used when no specific type of encryption key is
     * specified. It is used to encrypt all data before it is placed in permanent or semi-permanent storage.
     * </p>
     * 
     * @param defaultEncryptionKey
     *        The default encryption key, which is an AWS managed key, is used when no specific type of encryption key
     *        is specified. It is used to encrypt all data before it is placed in permanent or semi-permanent storage.
     */

    public void setDefaultEncryptionKey(String defaultEncryptionKey) {
        this.defaultEncryptionKey = defaultEncryptionKey;
    }

    /**
     * <p>
     * The default encryption key, which is an AWS managed key, is used when no specific type of encryption key is
     * specified. It is used to encrypt all data before it is placed in permanent or semi-permanent storage.
     * </p>
     * 
     * @return The default encryption key, which is an AWS managed key, is used when no specific type of encryption key
     *         is specified. It is used to encrypt all data before it is placed in permanent or semi-permanent storage.
     */

    public String getDefaultEncryptionKey() {
        return this.defaultEncryptionKey;
    }

    /**
     * <p>
     * The default encryption key, which is an AWS managed key, is used when no specific type of encryption key is
     * specified. It is used to encrypt all data before it is placed in permanent or semi-permanent storage.
     * </p>
     * 
     * @param defaultEncryptionKey
     *        The default encryption key, which is an AWS managed key, is used when no specific type of encryption key
     *        is specified. It is used to encrypt all data before it is placed in permanent or semi-permanent storage.
     * @return Returns a reference to this object so that method calls can be chained together.
     */

    public CreateDomainResult withDefaultEncryptionKey(String defaultEncryptionKey) {
        setDefaultEncryptionKey(defaultEncryptionKey);
        return this;
    }

    /**
     * <p>
     * The URL of the SQS dead letter queue, which is used for reporting errors associated with ingesting data from
     * third party applications.
     * </p>
     * 
     * @param deadLetterQueueUrl
     *        The URL of the SQS dead letter queue, which is used for reporting errors associated with ingesting data
     *        from third party applications.
     */

    public void setDeadLetterQueueUrl(String deadLetterQueueUrl) {
        this.deadLetterQueueUrl = deadLetterQueueUrl;
    }

    /**
     * <p>
     * The URL of the SQS dead letter queue, which is used for reporting errors associated with ingesting data from
     * third party applications.
     * </p>
     * 
     * @return The URL of the SQS dead letter queue, which is used for reporting errors associated with ingesting data
     *         from third party applications.
     */

    public String getDeadLetterQueueUrl() {
        return this.deadLetterQueueUrl;
    }

    /**
     * <p>
     * The URL of the SQS dead letter queue, which is used for reporting errors associated with ingesting data from
     * third party applications.
     * </p>
     * 
     * @param deadLetterQueueUrl
     *        The URL of the SQS dead letter queue, which is used for reporting errors associated with ingesting data
     *        from third party applications.
     * @return Returns a reference to this object so that method calls can be chained together.
     */

    public CreateDomainResult withDeadLetterQueueUrl(String deadLetterQueueUrl) {
        setDeadLetterQueueUrl(deadLetterQueueUrl);
        return this;
    }

    /**
     * <p>
     * The process of matching duplicate profiles. If <code>Matching</code> = <code>true</code>, Amazon Connect Customer
     * Profiles starts a weekly batch process called Identity Resolution Job. If you do not specify a date and time for
     * Identity Resolution Job to run, by default it runs every Saturday at 12AM UTC to detect duplicate profiles in
     * your domains.
     * </p>
     * <p>
     * After the Identity Resolution Job completes, use the <a
     * href="https://docs.aws.amazon.com/customerprofiles/latest/APIReference/API_GetMatches.html">GetMatches</a> API to
     * return and review the results. Or, if you have configured <code>ExportingConfig</code> in the
     * <code>MatchingRequest</code>, you can download the results from S3.
     * </p>
     * 
     * @param matching
     *        The process of matching duplicate profiles. If <code>Matching</code> = <code>true</code>, Amazon Connect
     *        Customer Profiles starts a weekly batch process called Identity Resolution Job. If you do not specify a
     *        date and time for Identity Resolution Job to run, by default it runs every Saturday at 12AM UTC to detect
     *        duplicate profiles in your domains. </p>
     *        <p>
     *        After the Identity Resolution Job completes, use the <a
     *        href="https://docs.aws.amazon.com/customerprofiles/latest/APIReference/API_GetMatches.html">GetMatches</a>
     *        API to return and review the results. Or, if you have configured <code>ExportingConfig</code> in the
     *        <code>MatchingRequest</code>, you can download the results from S3.
     */

    public void setMatching(MatchingResponse matching) {
        this.matching = matching;
    }

    /**
     * <p>
     * The process of matching duplicate profiles. If <code>Matching</code> = <code>true</code>, Amazon Connect Customer
     * Profiles starts a weekly batch process called Identity Resolution Job. If you do not specify a date and time for
     * Identity Resolution Job to run, by default it runs every Saturday at 12AM UTC to detect duplicate profiles in
     * your domains.
     * </p>
     * <p>
     * After the Identity Resolution Job completes, use the <a
     * href="https://docs.aws.amazon.com/customerprofiles/latest/APIReference/API_GetMatches.html">GetMatches</a> API to
     * return and review the results. Or, if you have configured <code>ExportingConfig</code> in the
     * <code>MatchingRequest</code>, you can download the results from S3.
     * </p>
     * 
     * @return The process of matching duplicate profiles. If <code>Matching</code> = <code>true</code>, Amazon Connect
     *         Customer Profiles starts a weekly batch process called Identity Resolution Job. If you do not specify a
     *         date and time for Identity Resolution Job to run, by default it runs every Saturday at 12AM UTC to detect
     *         duplicate profiles in your domains. </p>
     *         <p>
     *         After the Identity Resolution Job completes, use the <a
     *         href="https://docs.aws.amazon.com/customerprofiles/latest/APIReference/API_GetMatches.html"
     *         >GetMatches</a> API to return and review the results. Or, if you have configured
     *         <code>ExportingConfig</code> in the <code>MatchingRequest</code>, you can download the results from S3.
     */

    public MatchingResponse getMatching() {
        return this.matching;
    }

    /**
     * <p>
     * The process of matching duplicate profiles. If <code>Matching</code> = <code>true</code>, Amazon Connect Customer
     * Profiles starts a weekly batch process called Identity Resolution Job. If you do not specify a date and time for
     * Identity Resolution Job to run, by default it runs every Saturday at 12AM UTC to detect duplicate profiles in
     * your domains.
     * </p>
     * <p>
     * After the Identity Resolution Job completes, use the <a
     * href="https://docs.aws.amazon.com/customerprofiles/latest/APIReference/API_GetMatches.html">GetMatches</a> API to
     * return and review the results. Or, if you have configured <code>ExportingConfig</code> in the
     * <code>MatchingRequest</code>, you can download the results from S3.
     * </p>
     * 
     * @param matching
     *        The process of matching duplicate profiles. If <code>Matching</code> = <code>true</code>, Amazon Connect
     *        Customer Profiles starts a weekly batch process called Identity Resolution Job. If you do not specify a
     *        date and time for Identity Resolution Job to run, by default it runs every Saturday at 12AM UTC to detect
     *        duplicate profiles in your domains. </p>
     *        <p>
     *        After the Identity Resolution Job completes, use the <a
     *        href="https://docs.aws.amazon.com/customerprofiles/latest/APIReference/API_GetMatches.html">GetMatches</a>
     *        API to return and review the results. Or, if you have configured <code>ExportingConfig</code> in the
     *        <code>MatchingRequest</code>, you can download the results from S3.
     * @return Returns a reference to this object so that method calls can be chained together.
     */

    public CreateDomainResult withMatching(MatchingResponse matching) {
        setMatching(matching);
        return this;
    }

    /**
     * <p>
     * The process of matching duplicate profiles using the Rule-Based matching. If <code>RuleBasedMatching</code> =
     * true, Amazon Connect Customer Profiles will start to match and merge your profiles according to your
     * configuration in the <code>RuleBasedMatchingRequest</code>. You can use the <code>ListRuleBasedMatches</code> and
     * <code>GetSimilarProfiles</code> API to return and review the results. Also, if you have configured
     * <code>ExportingConfig</code> in the <code>RuleBasedMatchingRequest</code>, you can download the results from S3.
     * </p>
     * 
     * @param ruleBasedMatching
     *        The process of matching duplicate profiles using the Rule-Based matching. If
     *        <code>RuleBasedMatching</code> = true, Amazon Connect Customer Profiles will start to match and merge your
     *        profiles according to your configuration in the <code>RuleBasedMatchingRequest</code>. You can use the
     *        <code>ListRuleBasedMatches</code> and <code>GetSimilarProfiles</code> API to return and review the
     *        results. Also, if you have configured <code>ExportingConfig</code> in the
     *        <code>RuleBasedMatchingRequest</code>, you can download the results from S3.
     */

    public void setRuleBasedMatching(RuleBasedMatchingResponse ruleBasedMatching) {
        this.ruleBasedMatching = ruleBasedMatching;
    }

    /**
     * <p>
     * The process of matching duplicate profiles using the Rule-Based matching. If <code>RuleBasedMatching</code> =
     * true, Amazon Connect Customer Profiles will start to match and merge your profiles according to your
     * configuration in the <code>RuleBasedMatchingRequest</code>. You can use the <code>ListRuleBasedMatches</code> and
     * <code>GetSimilarProfiles</code> API to return and review the results. Also, if you have configured
     * <code>ExportingConfig</code> in the <code>RuleBasedMatchingRequest</code>, you can download the results from S3.
     * </p>
     * 
     * @return The process of matching duplicate profiles using the Rule-Based matching. If
     *         <code>RuleBasedMatching</code> = true, Amazon Connect Customer Profiles will start to match and merge
     *         your profiles according to your configuration in the <code>RuleBasedMatchingRequest</code>. You can use
     *         the <code>ListRuleBasedMatches</code> and <code>GetSimilarProfiles</code> API to return and review the
     *         results. Also, if you have configured <code>ExportingConfig</code> in the
     *         <code>RuleBasedMatchingRequest</code>, you can download the results from S3.
     */

    public RuleBasedMatchingResponse getRuleBasedMatching() {
        return this.ruleBasedMatching;
    }

    /**
     * <p>
     * The process of matching duplicate profiles using the Rule-Based matching. If <code>RuleBasedMatching</code> =
     * true, Amazon Connect Customer Profiles will start to match and merge your profiles according to your
     * configuration in the <code>RuleBasedMatchingRequest</code>. You can use the <code>ListRuleBasedMatches</code> and
     * <code>GetSimilarProfiles</code> API to return and review the results. Also, if you have configured
     * <code>ExportingConfig</code> in the <code>RuleBasedMatchingRequest</code>, you can download the results from S3.
     * </p>
     * 
     * @param ruleBasedMatching
     *        The process of matching duplicate profiles using the Rule-Based matching. If
     *        <code>RuleBasedMatching</code> = true, Amazon Connect Customer Profiles will start to match and merge your
     *        profiles according to your configuration in the <code>RuleBasedMatchingRequest</code>. You can use the
     *        <code>ListRuleBasedMatches</code> and <code>GetSimilarProfiles</code> API to return and review the
     *        results. Also, if you have configured <code>ExportingConfig</code> in the
     *        <code>RuleBasedMatchingRequest</code>, you can download the results from S3.
     * @return Returns a reference to this object so that method calls can be chained together.
     */

    public CreateDomainResult withRuleBasedMatching(RuleBasedMatchingResponse ruleBasedMatching) {
        setRuleBasedMatching(ruleBasedMatching);
        return this;
    }

    /**
     * <p>
     * The timestamp of when the domain was created.
     * </p>
     * 
     * @param createdAt
     *        The timestamp of when the domain was created.
     */

    public void setCreatedAt(java.util.Date createdAt) {
        this.createdAt = createdAt;
    }

    /**
     * <p>
     * The timestamp of when the domain was created.
     * </p>
     * 
     * @return The timestamp of when the domain was created.
     */

    public java.util.Date getCreatedAt() {
        return this.createdAt;
    }

    /**
     * <p>
     * The timestamp of when the domain was created.
     * </p>
     * 
     * @param createdAt
     *        The timestamp of when the domain was created.
     * @return Returns a reference to this object so that method calls can be chained together.
     */

    public CreateDomainResult withCreatedAt(java.util.Date createdAt) {
        setCreatedAt(createdAt);
        return this;
    }

    /**
     * <p>
     * The timestamp of when the domain was most recently edited.
     * </p>
     * 
     * @param lastUpdatedAt
     *        The timestamp of when the domain was most recently edited.
     */

    public void setLastUpdatedAt(java.util.Date lastUpdatedAt) {
        this.lastUpdatedAt = lastUpdatedAt;
    }

    /**
     * <p>
     * The timestamp of when the domain was most recently edited.
     * </p>
     * 
     * @return The timestamp of when the domain was most recently edited.
     */

    public java.util.Date getLastUpdatedAt() {
        return this.lastUpdatedAt;
    }

    /**
     * <p>
     * The timestamp of when the domain was most recently edited.
     * </p>
     * 
     * @param lastUpdatedAt
     *        The timestamp of when the domain was most recently edited.
     * @return Returns a reference to this object so that method calls can be chained together.
     */

    public CreateDomainResult withLastUpdatedAt(java.util.Date lastUpdatedAt) {
        setLastUpdatedAt(lastUpdatedAt);
        return this;
    }

    /**
     * <p>
     * The tags used to organize, track, or control access for this resource.
     * </p>
     * 
     * @return The tags used to organize, track, or control access for this resource.
     */

    public java.util.Map<String, String> getTags() {
        return tags;
    }

    /**
     * <p>
     * The tags used to organize, track, or control access for this resource.
     * </p>
     * 
     * @param tags
     *        The tags used to organize, track, or control access for this resource.
     */

    public void setTags(java.util.Map<String, String> tags) {
        this.tags = tags;
    }

    /**
     * <p>
     * The tags used to organize, track, or control access for this resource.
     * </p>
     * 
     * @param tags
     *        The tags used to organize, track, or control access for this resource.
     * @return Returns a reference to this object so that method calls can be chained together.
     */

    public CreateDomainResult withTags(java.util.Map<String, String> tags) {
        setTags(tags);
        return this;
    }

    /**
     * Add a single Tags entry
     *
     * @see CreateDomainResult#withTags
     * @returns a reference to this object so that method calls can be chained together.
     */

    public CreateDomainResult addTagsEntry(String key, String value) {
        if (null == this.tags) {
            this.tags = new java.util.HashMap<String, String>();
        }
        if (this.tags.containsKey(key))
            throw new IllegalArgumentException("Duplicated keys (" + key.toString() + ") are provided.");
        this.tags.put(key, value);
        return this;
    }

    /**
     * Removes all the entries added into Tags.
     *
     * @return Returns a reference to this object so that method calls can be chained together.
     */

    public CreateDomainResult clearTagsEntries() {
        this.tags = null;
        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 (getDomainName() != null)
            sb.append("DomainName: ").append(getDomainName()).append(",");
        if (getDefaultExpirationDays() != null)
            sb.append("DefaultExpirationDays: ").append(getDefaultExpirationDays()).append(",");
        if (getDefaultEncryptionKey() != null)
            sb.append("DefaultEncryptionKey: ").append(getDefaultEncryptionKey()).append(",");
        if (getDeadLetterQueueUrl() != null)
            sb.append("DeadLetterQueueUrl: ").append(getDeadLetterQueueUrl()).append(",");
        if (getMatching() != null)
            sb.append("Matching: ").append(getMatching()).append(",");
        if (getRuleBasedMatching() != null)
            sb.append("RuleBasedMatching: ").append(getRuleBasedMatching()).append(",");
        if (getCreatedAt() != null)
            sb.append("CreatedAt: ").append(getCreatedAt()).append(",");
        if (getLastUpdatedAt() != null)
            sb.append("LastUpdatedAt: ").append(getLastUpdatedAt()).append(",");
        if (getTags() != null)
            sb.append("Tags: ").append(getTags());
        sb.append("}");
        return sb.toString();
    }

    @Override
    public boolean equals(Object obj) {
        if (this == obj)
            return true;
        if (obj == null)
            return false;

        if (obj instanceof CreateDomainResult == false)
            return false;
        CreateDomainResult other = (CreateDomainResult) obj;
        if (other.getDomainName() == null ^ this.getDomainName() == null)
            return false;
        if (other.getDomainName() != null && other.getDomainName().equals(this.getDomainName()) == false)
            return false;
        if (other.getDefaultExpirationDays() == null ^ this.getDefaultExpirationDays() == null)
            return false;
        if (other.getDefaultExpirationDays() != null && other.getDefaultExpirationDays().equals(this.getDefaultExpirationDays()) == false)
            return false;
        if (other.getDefaultEncryptionKey() == null ^ this.getDefaultEncryptionKey() == null)
            return false;
        if (other.getDefaultEncryptionKey() != null && other.getDefaultEncryptionKey().equals(this.getDefaultEncryptionKey()) == false)
            return false;
        if (other.getDeadLetterQueueUrl() == null ^ this.getDeadLetterQueueUrl() == null)
            return false;
        if (other.getDeadLetterQueueUrl() != null && other.getDeadLetterQueueUrl().equals(this.getDeadLetterQueueUrl()) == false)
            return false;
        if (other.getMatching() == null ^ this.getMatching() == null)
            return false;
        if (other.getMatching() != null && other.getMatching().equals(this.getMatching()) == false)
            return false;
        if (other.getRuleBasedMatching() == null ^ this.getRuleBasedMatching() == null)
            return false;
        if (other.getRuleBasedMatching() != null && other.getRuleBasedMatching().equals(this.getRuleBasedMatching()) == false)
            return false;
        if (other.getCreatedAt() == null ^ this.getCreatedAt() == null)
            return false;
        if (other.getCreatedAt() != null && other.getCreatedAt().equals(this.getCreatedAt()) == false)
            return false;
        if (other.getLastUpdatedAt() == null ^ this.getLastUpdatedAt() == null)
            return false;
        if (other.getLastUpdatedAt() != null && other.getLastUpdatedAt().equals(this.getLastUpdatedAt()) == false)
            return false;
        if (other.getTags() == null ^ this.getTags() == null)
            return false;
        if (other.getTags() != null && other.getTags().equals(this.getTags()) == false)
            return false;
        return true;
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int hashCode = 1;

        hashCode = prime * hashCode + ((getDomainName() == null) ? 0 : getDomainName().hashCode());
        hashCode = prime * hashCode + ((getDefaultExpirationDays() == null) ? 0 : getDefaultExpirationDays().hashCode());
        hashCode = prime * hashCode + ((getDefaultEncryptionKey() == null) ? 0 : getDefaultEncryptionKey().hashCode());
        hashCode = prime * hashCode + ((getDeadLetterQueueUrl() == null) ? 0 : getDeadLetterQueueUrl().hashCode());
        hashCode = prime * hashCode + ((getMatching() == null) ? 0 : getMatching().hashCode());
        hashCode = prime * hashCode + ((getRuleBasedMatching() == null) ? 0 : getRuleBasedMatching().hashCode());
        hashCode = prime * hashCode + ((getCreatedAt() == null) ? 0 : getCreatedAt().hashCode());
        hashCode = prime * hashCode + ((getLastUpdatedAt() == null) ? 0 : getLastUpdatedAt().hashCode());
        hashCode = prime * hashCode + ((getTags() == null) ? 0 : getTags().hashCode());
        return hashCode;
    }

    @Override
    public CreateDomainResult clone() {
        try {
            return (CreateDomainResult) super.clone();
        } catch (CloneNotSupportedException e) {
            throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e);
        }
    }

}