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

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

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

/**
 * An object consisting of record permissions of the specified record.
 */
public final class EvaluatedRecordRightEntity {
    /**
     * The view permissions of the specified record ID.
     */
    private final boolean viewable;
    /**
     * The edit permissions of the specified record ID.
     */
    private final boolean editable;
    /**
     * The delete permissions of the specified record ID.
     */
    private final boolean deletable;

    @java.beans.ConstructorProperties({"viewable", "editable", "deletable"})
    @java.lang.SuppressWarnings("all")
    public EvaluatedRecordRightEntity(final boolean viewable, final boolean editable, final boolean deletable) {
        this.viewable = viewable;
        this.editable = editable;
        this.deletable = deletable;
    }

    /**
     * The view permissions of the specified record ID.
     */
    @java.lang.SuppressWarnings("all")
    public boolean isViewable() {
        return this.viewable;
    }

    /**
     * The edit permissions of the specified record ID.
     */
    @java.lang.SuppressWarnings("all")
    public boolean isEditable() {
        return this.editable;
    }

    /**
     * The delete permissions of the specified record ID.
     */
    @java.lang.SuppressWarnings("all")
    public boolean isDeletable() {
        return this.deletable;
    }

    @java.lang.Override
    @java.lang.SuppressWarnings("all")
    public boolean equals(final java.lang.Object o) {
        if (o == this) return true;
        if (!(o instanceof EvaluatedRecordRightEntity)) return false;
        final EvaluatedRecordRightEntity other = (EvaluatedRecordRightEntity) o;
        if (this.isViewable() != other.isViewable()) return false;
        if (this.isEditable() != other.isEditable()) return false;
        if (this.isDeletable() != other.isDeletable()) return false;
        return true;
    }

    @java.lang.Override
    @java.lang.SuppressWarnings("all")
    public int hashCode() {
        final int PRIME = 59;
        int result = 1;
        result = result * PRIME + (this.isViewable() ? 79 : 97);
        result = result * PRIME + (this.isEditable() ? 79 : 97);
        result = result * PRIME + (this.isDeletable() ? 79 : 97);
        return result;
    }

    @java.lang.Override
    @java.lang.SuppressWarnings("all")
    public java.lang.String toString() {
        return "EvaluatedRecordRightEntity(viewable=" + this.isViewable() + ", editable=" + this.isEditable() + ", deletable=" + this.isDeletable() + ")";
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy