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

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

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

import java.util.List;

/**
 * Field permissions of a field.
 */
public class FieldRight {
    /**
     * The field code of a field that has permission settings.
     */
    private String code;
    /**
     * A list of the entities that the permissions are granted to, in order of priority.
     */
    private List entities;

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

    /**
     * The field code of a field that has permission settings.
     */
    @java.lang.SuppressWarnings("all")
    public String getCode() {
        return this.code;
    }

    /**
     * A list of the entities that the permissions are granted to, in order of priority.
     */
    @java.lang.SuppressWarnings("all")
    public List getEntities() {
        return this.entities;
    }

    /**
     * The field code of a field that has permission settings.
     * @return {@code this}.
     */
    @java.lang.SuppressWarnings("all")
    public FieldRight setCode(final String code) {
        this.code = code;
        return this;
    }

    /**
     * A list of the entities that the permissions are granted to, in order of priority.
     * @return {@code this}.
     */
    @java.lang.SuppressWarnings("all")
    public FieldRight setEntities(final List entities) {
        this.entities = entities;
        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 FieldRight)) return false;
        final FieldRight other = (FieldRight) o;
        if (!other.canEqual((java.lang.Object) this)) return false;
        final java.lang.Object this$code = this.getCode();
        final java.lang.Object other$code = other.getCode();
        if (this$code == null ? other$code != null : !this$code.equals(other$code)) return false;
        final java.lang.Object this$entities = this.getEntities();
        final java.lang.Object other$entities = other.getEntities();
        if (this$entities == null ? other$entities != null : !this$entities.equals(other$entities)) return false;
        return true;
    }

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

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

    @java.lang.Override
    @java.lang.SuppressWarnings("all")
    public java.lang.String toString() {
        return "FieldRight(code=" + this.getCode() + ", entities=" + this.getEntities() + ")";
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy