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

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

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

import java.util.Map;

/**
 * An object consisting of permissions of the specified record.
 */
public final class EvaluatedRecordRight {
    /**
     * The record ID.
     */
    private final long id;
    /**
     * An object consisting of record permissions of the specified record ID.
     */
    private final EvaluatedRecordRightEntity record;
    /**
     * An object consisting of field permissions of the specified record ID.
     */
    private final Map fields;

    @java.beans.ConstructorProperties({"id", "record", "fields"})
    @java.lang.SuppressWarnings("all")
    public EvaluatedRecordRight(final long id, final EvaluatedRecordRightEntity record, final Map fields) {
        this.id = id;
        this.record = record;
        this.fields = fields;
    }

    /**
     * The record ID.
     */
    @java.lang.SuppressWarnings("all")
    public long getId() {
        return this.id;
    }

    /**
     * An object consisting of record permissions of the specified record ID.
     */
    @java.lang.SuppressWarnings("all")
    public EvaluatedRecordRightEntity getRecord() {
        return this.record;
    }

    /**
     * An object consisting of field permissions of the specified record ID.
     */
    @java.lang.SuppressWarnings("all")
    public Map getFields() {
        return this.fields;
    }

    @java.lang.Override
    @java.lang.SuppressWarnings("all")
    public boolean equals(final java.lang.Object o) {
        if (o == this) return true;
        if (!(o instanceof EvaluatedRecordRight)) return false;
        final EvaluatedRecordRight other = (EvaluatedRecordRight) o;
        if (this.getId() != other.getId()) return false;
        final java.lang.Object this$record = this.getRecord();
        final java.lang.Object other$record = other.getRecord();
        if (this$record == null ? other$record != null : !this$record.equals(other$record)) return false;
        final java.lang.Object this$fields = this.getFields();
        final java.lang.Object other$fields = other.getFields();
        if (this$fields == null ? other$fields != null : !this$fields.equals(other$fields)) return false;
        return true;
    }

    @java.lang.Override
    @java.lang.SuppressWarnings("all")
    public int hashCode() {
        final int PRIME = 59;
        int result = 1;
        final long $id = this.getId();
        result = result * PRIME + (int) ($id >>> 32 ^ $id);
        final java.lang.Object $record = this.getRecord();
        result = result * PRIME + ($record == null ? 43 : $record.hashCode());
        final java.lang.Object $fields = this.getFields();
        result = result * PRIME + ($fields == null ? 43 : $fields.hashCode());
        return result;
    }

    @java.lang.Override
    @java.lang.SuppressWarnings("all")
    public java.lang.String toString() {
        return "EvaluatedRecordRight(id=" + this.getId() + ", record=" + this.getRecord() + ", fields=" + this.getFields() + ")";
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy