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

com.kintone.client.model.space.ThreadCommentFile Maven / Gradle / Ivy

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

/**
 * An object containing information of a file that will be attached to a thread comment.
 */
public class ThreadCommentFile {
    /**
     * The fileKey of the attachment file.
     */
    private String fileKey;
    /**
     * A width can be specified if the attachment file is an image.
     */
    private Integer width;

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

    /**
     * The fileKey of the attachment file.
     */
    @java.lang.SuppressWarnings("all")
    public String getFileKey() {
        return this.fileKey;
    }

    /**
     * A width can be specified if the attachment file is an image.
     */
    @java.lang.SuppressWarnings("all")
    public Integer getWidth() {
        return this.width;
    }

    /**
     * The fileKey of the attachment file.
     * @return {@code this}.
     */
    @java.lang.SuppressWarnings("all")
    public ThreadCommentFile setFileKey(final String fileKey) {
        this.fileKey = fileKey;
        return this;
    }

    /**
     * A width can be specified if the attachment file is an image.
     * @return {@code this}.
     */
    @java.lang.SuppressWarnings("all")
    public ThreadCommentFile setWidth(final Integer width) {
        this.width = width;
        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 ThreadCommentFile)) return false;
        final ThreadCommentFile other = (ThreadCommentFile) o;
        if (!other.canEqual((java.lang.Object) this)) return false;
        final java.lang.Object this$width = this.getWidth();
        final java.lang.Object other$width = other.getWidth();
        if (this$width == null ? other$width != null : !this$width.equals(other$width)) return false;
        final java.lang.Object this$fileKey = this.getFileKey();
        final java.lang.Object other$fileKey = other.getFileKey();
        if (this$fileKey == null ? other$fileKey != null : !this$fileKey.equals(other$fileKey)) return false;
        return true;
    }

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

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

    @java.lang.Override
    @java.lang.SuppressWarnings("all")
    public java.lang.String toString() {
        return "ThreadCommentFile(fileKey=" + this.getFileKey() + ", width=" + this.getWidth() + ")";
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy