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

com.atlan.model.admin.AtlanFile Maven / Gradle / Ivy

There is a newer version: 3.0.0
Show newest version
// Generated by delombok at Thu Oct 10 18:56:32 UTC 2024
/* SPDX-License-Identifier: Apache-2.0
   Copyright 2023 Atlan Pte. Ltd. */
package com.atlan.model.admin;

import com.atlan.net.ApiResource;
import lombok.*;

@com.fasterxml.jackson.databind.annotation.JsonDeserialize(builder = AtlanFile.AtlanFileBuilder.class)
public class AtlanFile extends ApiResource {
    private static final long serialVersionUID = 2L;
    /**
     * Unique identifier (GUID) of the file.
     */
    String id;
    /**
     * TBC
     */
    String version;
    /**
     * Time at which the file was uploaded (epoch), in milliseconds.
     */
    Long createdAt;
    /**
     * Time at which the file was last modified (epoch), in milliseconds.
     */
    Long updatedAt;
    /**
     * Generated name of the file that was uploaded.
     */
    String fileName;
    /**
     * Original name of the file that was uploaded.
     */
    String rawName;
    /**
     * Generated name of the file that was uploaded.
     */
    String key;
    /**
     * Filename extension for the file that was uploaded.
     */
    String extension;
    /**
     * MIME type for the file that was uploaded.
     */
    String contentType;
    /**
     * Size of the file that was uploaded, in bytes.
     */
    Long fileSize;
    /**
     * Whether the file is encrypted (true) or not (false).
     */
    Boolean isEncrypted;
    /**
     * TBC
     */
    String redirectUrl;
    /**
     * TBC
     */
    Boolean isUploaded;
    /**
     * TBC
     */
    String uploadedAt;
    /**
     * Whether the file has been archived (true) or is still actively available (false)
     */
    Boolean isArchived;

    @java.lang.SuppressWarnings("all")
    @lombok.Generated
    AtlanFile(final String id, final String version, final Long createdAt, final Long updatedAt, final String fileName, final String rawName, final String key, final String extension, final String contentType, final Long fileSize, final Boolean isEncrypted, final String redirectUrl, final Boolean isUploaded, final String uploadedAt, final Boolean isArchived) {
        this.id = id;
        this.version = version;
        this.createdAt = createdAt;
        this.updatedAt = updatedAt;
        this.fileName = fileName;
        this.rawName = rawName;
        this.key = key;
        this.extension = extension;
        this.contentType = contentType;
        this.fileSize = fileSize;
        this.isEncrypted = isEncrypted;
        this.redirectUrl = redirectUrl;
        this.isUploaded = isUploaded;
        this.uploadedAt = uploadedAt;
        this.isArchived = isArchived;
    }


    @java.lang.SuppressWarnings("all")
    @lombok.Generated
    @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "", buildMethodName = "build")
    public static class AtlanFileBuilder {
        @java.lang.SuppressWarnings("all")
        @lombok.Generated
        private String id;
        @java.lang.SuppressWarnings("all")
        @lombok.Generated
        private String version;
        @java.lang.SuppressWarnings("all")
        @lombok.Generated
        private Long createdAt;
        @java.lang.SuppressWarnings("all")
        @lombok.Generated
        private Long updatedAt;
        @java.lang.SuppressWarnings("all")
        @lombok.Generated
        private String fileName;
        @java.lang.SuppressWarnings("all")
        @lombok.Generated
        private String rawName;
        @java.lang.SuppressWarnings("all")
        @lombok.Generated
        private String key;
        @java.lang.SuppressWarnings("all")
        @lombok.Generated
        private String extension;
        @java.lang.SuppressWarnings("all")
        @lombok.Generated
        private String contentType;
        @java.lang.SuppressWarnings("all")
        @lombok.Generated
        private Long fileSize;
        @java.lang.SuppressWarnings("all")
        @lombok.Generated
        private Boolean isEncrypted;
        @java.lang.SuppressWarnings("all")
        @lombok.Generated
        private String redirectUrl;
        @java.lang.SuppressWarnings("all")
        @lombok.Generated
        private Boolean isUploaded;
        @java.lang.SuppressWarnings("all")
        @lombok.Generated
        private String uploadedAt;
        @java.lang.SuppressWarnings("all")
        @lombok.Generated
        private Boolean isArchived;

        @java.lang.SuppressWarnings("all")
        @lombok.Generated
        AtlanFileBuilder() {
        }

        /**
         * Unique identifier (GUID) of the file.
         * @return {@code this}.
         */
        @java.lang.SuppressWarnings("all")
        @lombok.Generated
        public AtlanFile.AtlanFileBuilder id(final String id) {
            this.id = id;
            return this;
        }

        /**
         * TBC
         * @return {@code this}.
         */
        @java.lang.SuppressWarnings("all")
        @lombok.Generated
        public AtlanFile.AtlanFileBuilder version(final String version) {
            this.version = version;
            return this;
        }

        /**
         * Time at which the file was uploaded (epoch), in milliseconds.
         * @return {@code this}.
         */
        @java.lang.SuppressWarnings("all")
        @lombok.Generated
        public AtlanFile.AtlanFileBuilder createdAt(final Long createdAt) {
            this.createdAt = createdAt;
            return this;
        }

        /**
         * Time at which the file was last modified (epoch), in milliseconds.
         * @return {@code this}.
         */
        @java.lang.SuppressWarnings("all")
        @lombok.Generated
        public AtlanFile.AtlanFileBuilder updatedAt(final Long updatedAt) {
            this.updatedAt = updatedAt;
            return this;
        }

        /**
         * Generated name of the file that was uploaded.
         * @return {@code this}.
         */
        @java.lang.SuppressWarnings("all")
        @lombok.Generated
        public AtlanFile.AtlanFileBuilder fileName(final String fileName) {
            this.fileName = fileName;
            return this;
        }

        /**
         * Original name of the file that was uploaded.
         * @return {@code this}.
         */
        @java.lang.SuppressWarnings("all")
        @lombok.Generated
        public AtlanFile.AtlanFileBuilder rawName(final String rawName) {
            this.rawName = rawName;
            return this;
        }

        /**
         * Generated name of the file that was uploaded.
         * @return {@code this}.
         */
        @java.lang.SuppressWarnings("all")
        @lombok.Generated
        public AtlanFile.AtlanFileBuilder key(final String key) {
            this.key = key;
            return this;
        }

        /**
         * Filename extension for the file that was uploaded.
         * @return {@code this}.
         */
        @java.lang.SuppressWarnings("all")
        @lombok.Generated
        public AtlanFile.AtlanFileBuilder extension(final String extension) {
            this.extension = extension;
            return this;
        }

        /**
         * MIME type for the file that was uploaded.
         * @return {@code this}.
         */
        @java.lang.SuppressWarnings("all")
        @lombok.Generated
        public AtlanFile.AtlanFileBuilder contentType(final String contentType) {
            this.contentType = contentType;
            return this;
        }

        /**
         * Size of the file that was uploaded, in bytes.
         * @return {@code this}.
         */
        @java.lang.SuppressWarnings("all")
        @lombok.Generated
        public AtlanFile.AtlanFileBuilder fileSize(final Long fileSize) {
            this.fileSize = fileSize;
            return this;
        }

        /**
         * Whether the file is encrypted (true) or not (false).
         * @return {@code this}.
         */
        @java.lang.SuppressWarnings("all")
        @lombok.Generated
        public AtlanFile.AtlanFileBuilder isEncrypted(final Boolean isEncrypted) {
            this.isEncrypted = isEncrypted;
            return this;
        }

        /**
         * TBC
         * @return {@code this}.
         */
        @java.lang.SuppressWarnings("all")
        @lombok.Generated
        public AtlanFile.AtlanFileBuilder redirectUrl(final String redirectUrl) {
            this.redirectUrl = redirectUrl;
            return this;
        }

        /**
         * TBC
         * @return {@code this}.
         */
        @java.lang.SuppressWarnings("all")
        @lombok.Generated
        public AtlanFile.AtlanFileBuilder isUploaded(final Boolean isUploaded) {
            this.isUploaded = isUploaded;
            return this;
        }

        /**
         * TBC
         * @return {@code this}.
         */
        @java.lang.SuppressWarnings("all")
        @lombok.Generated
        public AtlanFile.AtlanFileBuilder uploadedAt(final String uploadedAt) {
            this.uploadedAt = uploadedAt;
            return this;
        }

        /**
         * Whether the file has been archived (true) or is still actively available (false)
         * @return {@code this}.
         */
        @java.lang.SuppressWarnings("all")
        @lombok.Generated
        public AtlanFile.AtlanFileBuilder isArchived(final Boolean isArchived) {
            this.isArchived = isArchived;
            return this;
        }

        @java.lang.SuppressWarnings("all")
        @lombok.Generated
        public AtlanFile build() {
            return new AtlanFile(this.id, this.version, this.createdAt, this.updatedAt, this.fileName, this.rawName, this.key, this.extension, this.contentType, this.fileSize, this.isEncrypted, this.redirectUrl, this.isUploaded, this.uploadedAt, this.isArchived);
        }

        @java.lang.Override
        @java.lang.SuppressWarnings("all")
        @lombok.Generated
        public java.lang.String toString() {
            return "AtlanFile.AtlanFileBuilder(id=" + this.id + ", version=" + this.version + ", createdAt=" + this.createdAt + ", updatedAt=" + this.updatedAt + ", fileName=" + this.fileName + ", rawName=" + this.rawName + ", key=" + this.key + ", extension=" + this.extension + ", contentType=" + this.contentType + ", fileSize=" + this.fileSize + ", isEncrypted=" + this.isEncrypted + ", redirectUrl=" + this.redirectUrl + ", isUploaded=" + this.isUploaded + ", uploadedAt=" + this.uploadedAt + ", isArchived=" + this.isArchived + ")";
        }
    }

    @java.lang.SuppressWarnings("all")
    @lombok.Generated
    public static AtlanFile.AtlanFileBuilder builder() {
        return new AtlanFile.AtlanFileBuilder();
    }

    /**
     * Unique identifier (GUID) of the file.
     */
    @java.lang.SuppressWarnings("all")
    @lombok.Generated
    public String getId() {
        return this.id;
    }

    /**
     * TBC
     */
    @java.lang.SuppressWarnings("all")
    @lombok.Generated
    public String getVersion() {
        return this.version;
    }

    /**
     * Time at which the file was uploaded (epoch), in milliseconds.
     */
    @java.lang.SuppressWarnings("all")
    @lombok.Generated
    public Long getCreatedAt() {
        return this.createdAt;
    }

    /**
     * Time at which the file was last modified (epoch), in milliseconds.
     */
    @java.lang.SuppressWarnings("all")
    @lombok.Generated
    public Long getUpdatedAt() {
        return this.updatedAt;
    }

    /**
     * Generated name of the file that was uploaded.
     */
    @java.lang.SuppressWarnings("all")
    @lombok.Generated
    public String getFileName() {
        return this.fileName;
    }

    /**
     * Original name of the file that was uploaded.
     */
    @java.lang.SuppressWarnings("all")
    @lombok.Generated
    public String getRawName() {
        return this.rawName;
    }

    /**
     * Generated name of the file that was uploaded.
     */
    @java.lang.SuppressWarnings("all")
    @lombok.Generated
    public String getKey() {
        return this.key;
    }

    /**
     * Filename extension for the file that was uploaded.
     */
    @java.lang.SuppressWarnings("all")
    @lombok.Generated
    public String getExtension() {
        return this.extension;
    }

    /**
     * MIME type for the file that was uploaded.
     */
    @java.lang.SuppressWarnings("all")
    @lombok.Generated
    public String getContentType() {
        return this.contentType;
    }

    /**
     * Size of the file that was uploaded, in bytes.
     */
    @java.lang.SuppressWarnings("all")
    @lombok.Generated
    public Long getFileSize() {
        return this.fileSize;
    }

    /**
     * Whether the file is encrypted (true) or not (false).
     */
    @java.lang.SuppressWarnings("all")
    @lombok.Generated
    public Boolean getIsEncrypted() {
        return this.isEncrypted;
    }

    /**
     * TBC
     */
    @java.lang.SuppressWarnings("all")
    @lombok.Generated
    public String getRedirectUrl() {
        return this.redirectUrl;
    }

    /**
     * TBC
     */
    @java.lang.SuppressWarnings("all")
    @lombok.Generated
    public Boolean getIsUploaded() {
        return this.isUploaded;
    }

    /**
     * TBC
     */
    @java.lang.SuppressWarnings("all")
    @lombok.Generated
    public String getUploadedAt() {
        return this.uploadedAt;
    }

    /**
     * Whether the file has been archived (true) or is still actively available (false)
     */
    @java.lang.SuppressWarnings("all")
    @lombok.Generated
    public Boolean getIsArchived() {
        return this.isArchived;
    }

    @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 AtlanFile)) return false;
        final AtlanFile other = (AtlanFile) o;
        if (!other.canEqual((java.lang.Object) this)) return false;
        if (!super.equals(o)) return false;
        final java.lang.Object this$createdAt = this.getCreatedAt();
        final java.lang.Object other$createdAt = other.getCreatedAt();
        if (this$createdAt == null ? other$createdAt != null : !this$createdAt.equals(other$createdAt)) return false;
        final java.lang.Object this$updatedAt = this.getUpdatedAt();
        final java.lang.Object other$updatedAt = other.getUpdatedAt();
        if (this$updatedAt == null ? other$updatedAt != null : !this$updatedAt.equals(other$updatedAt)) return false;
        final java.lang.Object this$fileSize = this.getFileSize();
        final java.lang.Object other$fileSize = other.getFileSize();
        if (this$fileSize == null ? other$fileSize != null : !this$fileSize.equals(other$fileSize)) return false;
        final java.lang.Object this$isEncrypted = this.getIsEncrypted();
        final java.lang.Object other$isEncrypted = other.getIsEncrypted();
        if (this$isEncrypted == null ? other$isEncrypted != null : !this$isEncrypted.equals(other$isEncrypted)) return false;
        final java.lang.Object this$isUploaded = this.getIsUploaded();
        final java.lang.Object other$isUploaded = other.getIsUploaded();
        if (this$isUploaded == null ? other$isUploaded != null : !this$isUploaded.equals(other$isUploaded)) return false;
        final java.lang.Object this$isArchived = this.getIsArchived();
        final java.lang.Object other$isArchived = other.getIsArchived();
        if (this$isArchived == null ? other$isArchived != null : !this$isArchived.equals(other$isArchived)) return false;
        final java.lang.Object this$id = this.getId();
        final java.lang.Object other$id = other.getId();
        if (this$id == null ? other$id != null : !this$id.equals(other$id)) return false;
        final java.lang.Object this$version = this.getVersion();
        final java.lang.Object other$version = other.getVersion();
        if (this$version == null ? other$version != null : !this$version.equals(other$version)) return false;
        final java.lang.Object this$fileName = this.getFileName();
        final java.lang.Object other$fileName = other.getFileName();
        if (this$fileName == null ? other$fileName != null : !this$fileName.equals(other$fileName)) return false;
        final java.lang.Object this$rawName = this.getRawName();
        final java.lang.Object other$rawName = other.getRawName();
        if (this$rawName == null ? other$rawName != null : !this$rawName.equals(other$rawName)) return false;
        final java.lang.Object this$key = this.getKey();
        final java.lang.Object other$key = other.getKey();
        if (this$key == null ? other$key != null : !this$key.equals(other$key)) return false;
        final java.lang.Object this$extension = this.getExtension();
        final java.lang.Object other$extension = other.getExtension();
        if (this$extension == null ? other$extension != null : !this$extension.equals(other$extension)) return false;
        final java.lang.Object this$contentType = this.getContentType();
        final java.lang.Object other$contentType = other.getContentType();
        if (this$contentType == null ? other$contentType != null : !this$contentType.equals(other$contentType)) return false;
        final java.lang.Object this$redirectUrl = this.getRedirectUrl();
        final java.lang.Object other$redirectUrl = other.getRedirectUrl();
        if (this$redirectUrl == null ? other$redirectUrl != null : !this$redirectUrl.equals(other$redirectUrl)) return false;
        final java.lang.Object this$uploadedAt = this.getUploadedAt();
        final java.lang.Object other$uploadedAt = other.getUploadedAt();
        if (this$uploadedAt == null ? other$uploadedAt != null : !this$uploadedAt.equals(other$uploadedAt)) return false;
        return true;
    }

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

    @java.lang.Override
    @java.lang.SuppressWarnings("all")
    @lombok.Generated
    public int hashCode() {
        final int PRIME = 59;
        int result = super.hashCode();
        final java.lang.Object $createdAt = this.getCreatedAt();
        result = result * PRIME + ($createdAt == null ? 43 : $createdAt.hashCode());
        final java.lang.Object $updatedAt = this.getUpdatedAt();
        result = result * PRIME + ($updatedAt == null ? 43 : $updatedAt.hashCode());
        final java.lang.Object $fileSize = this.getFileSize();
        result = result * PRIME + ($fileSize == null ? 43 : $fileSize.hashCode());
        final java.lang.Object $isEncrypted = this.getIsEncrypted();
        result = result * PRIME + ($isEncrypted == null ? 43 : $isEncrypted.hashCode());
        final java.lang.Object $isUploaded = this.getIsUploaded();
        result = result * PRIME + ($isUploaded == null ? 43 : $isUploaded.hashCode());
        final java.lang.Object $isArchived = this.getIsArchived();
        result = result * PRIME + ($isArchived == null ? 43 : $isArchived.hashCode());
        final java.lang.Object $id = this.getId();
        result = result * PRIME + ($id == null ? 43 : $id.hashCode());
        final java.lang.Object $version = this.getVersion();
        result = result * PRIME + ($version == null ? 43 : $version.hashCode());
        final java.lang.Object $fileName = this.getFileName();
        result = result * PRIME + ($fileName == null ? 43 : $fileName.hashCode());
        final java.lang.Object $rawName = this.getRawName();
        result = result * PRIME + ($rawName == null ? 43 : $rawName.hashCode());
        final java.lang.Object $key = this.getKey();
        result = result * PRIME + ($key == null ? 43 : $key.hashCode());
        final java.lang.Object $extension = this.getExtension();
        result = result * PRIME + ($extension == null ? 43 : $extension.hashCode());
        final java.lang.Object $contentType = this.getContentType();
        result = result * PRIME + ($contentType == null ? 43 : $contentType.hashCode());
        final java.lang.Object $redirectUrl = this.getRedirectUrl();
        result = result * PRIME + ($redirectUrl == null ? 43 : $redirectUrl.hashCode());
        final java.lang.Object $uploadedAt = this.getUploadedAt();
        result = result * PRIME + ($uploadedAt == null ? 43 : $uploadedAt.hashCode());
        return result;
    }

    @java.lang.Override
    @java.lang.SuppressWarnings("all")
    @lombok.Generated
    public java.lang.String toString() {
        return "AtlanFile(super=" + super.toString() + ", id=" + this.getId() + ", version=" + this.getVersion() + ", createdAt=" + this.getCreatedAt() + ", updatedAt=" + this.getUpdatedAt() + ", fileName=" + this.getFileName() + ", rawName=" + this.getRawName() + ", key=" + this.getKey() + ", extension=" + this.getExtension() + ", contentType=" + this.getContentType() + ", fileSize=" + this.getFileSize() + ", isEncrypted=" + this.getIsEncrypted() + ", redirectUrl=" + this.getRedirectUrl() + ", isUploaded=" + this.getIsUploaded() + ", uploadedAt=" + this.getUploadedAt() + ", isArchived=" + this.getIsArchived() + ")";
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy