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

com.atlan.model.assets.LineageRef Maven / Gradle / Ivy

There is a newer version: 3.0.0
Show newest version
// Generated by delombok at Wed Oct 16 22:16:03 UTC 2024
/* SPDX-License-Identifier: Apache-2.0
   Copyright 2022 Atlan Pte. Ltd. */
package com.atlan.model.assets;

import com.atlan.model.core.AtlanObject;

/**
 * Capture minimal information about an asset for lineage reference purposes.
 */
public class LineageRef extends AtlanObject {
    private static final long serialVersionUID = 2L;
    /**
     * Unique name of the asset being referenced.
     */
    String qualifiedName;
    /**
     * Simple name of the asset being referenced.
     */
    String name;
    /**
     * UUID of the asset being referenced.
     */
    String guid;

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

    /**
     * Simple name of the asset being referenced.
     */
    @java.lang.SuppressWarnings("all")
    @lombok.Generated
    public String getName() {
        return this.name;
    }

    /**
     * UUID of the asset being referenced.
     */
    @java.lang.SuppressWarnings("all")
    @lombok.Generated
    public String getGuid() {
        return this.guid;
    }

    @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 LineageRef)) return false;
        final LineageRef other = (LineageRef) o;
        if (!other.canEqual((java.lang.Object) this)) return false;
        if (!super.equals(o)) 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$name = this.getName();
        final java.lang.Object other$name = other.getName();
        if (this$name == null ? other$name != null : !this$name.equals(other$name)) return false;
        final java.lang.Object this$guid = this.getGuid();
        final java.lang.Object other$guid = other.getGuid();
        if (this$guid == null ? other$guid != null : !this$guid.equals(other$guid)) return false;
        return true;
    }

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

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy