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

com.kintone.client.model.app.CustomizeFileResource Maven / Gradle / Ivy

// Generated by delombok at Fri Jan 21 13:34:53 JST 2022
package com.kintone.client.model.app;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.kintone.client.model.FileBody;

/**
 * JavaScript and CSS customization information for uploaded files.
 */
@JsonIgnoreProperties(value = "type", allowGetters = true)
public class CustomizeFileResource implements CustomizeResource {
    /**
     * The information of uploaded file.
     */
    private FileBody file;

    /**
     * {@inheritDoc}
     */
    @Override
    public CustomizeType getType() {
        return CustomizeType.FILE;
    }

    @java.lang.SuppressWarnings("all")
    public CustomizeFileResource() {
    }

    /**
     * The information of uploaded file.
     */
    @java.lang.SuppressWarnings("all")
    public FileBody getFile() {
        return this.file;
    }

    /**
     * The information of uploaded file.
     * @return {@code this}.
     */
    @java.lang.SuppressWarnings("all")
    public CustomizeFileResource setFile(final FileBody file) {
        this.file = file;
        return this;
    }

    @java.lang.Override
    @java.lang.SuppressWarnings("all")
    public boolean equals(final java.lang.Object o) {
        if (o == this) return true;
        if (!(o instanceof CustomizeFileResource)) return false;
        final CustomizeFileResource other = (CustomizeFileResource) o;
        if (!other.canEqual((java.lang.Object) this)) return false;
        final java.lang.Object this$file = this.getFile();
        final java.lang.Object other$file = other.getFile();
        if (this$file == null ? other$file != null : !this$file.equals(other$file)) return false;
        return true;
    }

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

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

    @java.lang.Override
    @java.lang.SuppressWarnings("all")
    public java.lang.String toString() {
        return "CustomizeFileResource(file=" + this.getFile() + ")";
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy