All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.atlan.model.relations.UniqueAttributes Maven / Gradle / Ivy

// Generated by delombok at Thu Oct 10 18:56:32 UTC 2024
/* SPDX-License-Identifier: Apache-2.0
   Copyright 2022 Atlan Pte. Ltd. */
package com.atlan.model.relations;

import com.atlan.model.core.AtlanObject;

@com.fasterxml.jackson.databind.annotation.JsonDeserialize(builder = UniqueAttributes.UniqueAttributesBuilderImpl.class)
public class UniqueAttributes extends AtlanObject {
    private static final long serialVersionUID = 2L;
    /**
     * Unique name of the related entity.
     */
    String qualifiedName;
    /**
     * Unique resource number for AWS resources (only).
     */
    String awsArn;


    @java.lang.SuppressWarnings("all")
    @lombok.Generated
    public static abstract class UniqueAttributesBuilder> extends AtlanObject.AtlanObjectBuilder {
        @java.lang.SuppressWarnings("all")
        @lombok.Generated
        private String qualifiedName;
        @java.lang.SuppressWarnings("all")
        @lombok.Generated
        private String awsArn;

        /**
         * Unique name of the related entity.
         * @return {@code this}.
         */
        @java.lang.SuppressWarnings("all")
        @lombok.Generated
        public B qualifiedName(final String qualifiedName) {
            this.qualifiedName = qualifiedName;
            return self();
        }

        /**
         * Unique resource number for AWS resources (only).
         * @return {@code this}.
         */
        @java.lang.SuppressWarnings("all")
        @lombok.Generated
        public B awsArn(final String awsArn) {
            this.awsArn = awsArn;
            return self();
        }

        @java.lang.Override
        @java.lang.SuppressWarnings("all")
        @lombok.Generated
        protected abstract B self();

        @java.lang.Override
        @java.lang.SuppressWarnings("all")
        @lombok.Generated
        public abstract C build();

        @java.lang.Override
        @java.lang.SuppressWarnings("all")
        @lombok.Generated
        public java.lang.String toString() {
            return "UniqueAttributes.UniqueAttributesBuilder(super=" + super.toString() + ", qualifiedName=" + this.qualifiedName + ", awsArn=" + this.awsArn + ")";
        }
    }


    @java.lang.SuppressWarnings("all")
    @lombok.Generated
    @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "", buildMethodName = "build")
    static final class UniqueAttributesBuilderImpl extends UniqueAttributes.UniqueAttributesBuilder {
        @java.lang.SuppressWarnings("all")
        @lombok.Generated
        private UniqueAttributesBuilderImpl() {
        }

        @java.lang.Override
        @java.lang.SuppressWarnings("all")
        @lombok.Generated
        protected UniqueAttributes.UniqueAttributesBuilderImpl self() {
            return this;
        }

        @java.lang.Override
        @java.lang.SuppressWarnings("all")
        @lombok.Generated
        public UniqueAttributes build() {
            return new UniqueAttributes(this);
        }
    }

    @java.lang.SuppressWarnings("all")
    @lombok.Generated
    protected UniqueAttributes(final UniqueAttributes.UniqueAttributesBuilder b) {
        super(b);
        this.qualifiedName = b.qualifiedName;
        this.awsArn = b.awsArn;
    }

    @java.lang.SuppressWarnings("all")
    @lombok.Generated
    public static UniqueAttributes.UniqueAttributesBuilder builder() {
        return new UniqueAttributes.UniqueAttributesBuilderImpl();
    }

    /**
     * Unique name of the related entity.
     */
    @java.lang.SuppressWarnings("all")
    @lombok.Generated
    public String getQualifiedName() {
        return this.qualifiedName;
    }

    /**
     * Unique resource number for AWS resources (only).
     */
    @java.lang.SuppressWarnings("all")
    @lombok.Generated
    public String getAwsArn() {
        return this.awsArn;
    }

    @java.lang.Override
    @java.lang.SuppressWarnings("all")
    @lombok.Generated
    public boolean equals(final java.lang.Object o) {
        if (o == this) return true;
        if (!(o instanceof UniqueAttributes)) return false;
        final UniqueAttributes other = (UniqueAttributes) o;
        if (!other.canEqual((java.lang.Object) this)) return false;
        final java.lang.Object this$qualifiedName = this.getQualifiedName();
        final java.lang.Object other$qualifiedName = other.getQualifiedName();
        if (this$qualifiedName == null ? other$qualifiedName != null : !this$qualifiedName.equals(other$qualifiedName)) return false;
        final java.lang.Object this$awsArn = this.getAwsArn();
        final java.lang.Object other$awsArn = other.getAwsArn();
        if (this$awsArn == null ? other$awsArn != null : !this$awsArn.equals(other$awsArn)) return false;
        return true;
    }

    @java.lang.SuppressWarnings("all")
    @lombok.Generated
    protected boolean canEqual(final java.lang.Object other) {
        return other instanceof UniqueAttributes;
    }

    @java.lang.Override
    @java.lang.SuppressWarnings("all")
    @lombok.Generated
    public int hashCode() {
        final int PRIME = 59;
        int result = 1;
        final java.lang.Object $qualifiedName = this.getQualifiedName();
        result = result * PRIME + ($qualifiedName == null ? 43 : $qualifiedName.hashCode());
        final java.lang.Object $awsArn = this.getAwsArn();
        result = result * PRIME + ($awsArn == null ? 43 : $awsArn.hashCode());
        return result;
    }

    @java.lang.Override
    @java.lang.SuppressWarnings("all")
    @lombok.Generated
    public java.lang.String toString() {
        return "UniqueAttributes(super=" + super.toString() + ", qualifiedName=" + this.getQualifiedName() + ", awsArn=" + this.getAwsArn() + ")";
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy