
com.kintone.client.model.app.FieldRightEntity Maven / Gradle / Ivy
// Generated by delombok at Fri Jan 21 13:34:53 JST 2022
package com.kintone.client.model.app;
import com.kintone.client.model.Entity;
/**
* An object representing the entity and the permitted field operations to it.
*/
public class FieldRightEntity {
/**
* The permission granted to the entity.
*/
private FieldAccessibility accessibility;
/**
* An object containing data of the entity the permission is granted to.
*/
private Entity entity;
/**
* The permission inheritance settings of the department the permission is granted to.
*/
private Boolean includeSubs;
@java.lang.SuppressWarnings("all")
public FieldRightEntity() {
}
/**
* The permission granted to the entity.
*/
@java.lang.SuppressWarnings("all")
public FieldAccessibility getAccessibility() {
return this.accessibility;
}
/**
* An object containing data of the entity the permission is granted to.
*/
@java.lang.SuppressWarnings("all")
public Entity getEntity() {
return this.entity;
}
/**
* The permission inheritance settings of the department the permission is granted to.
*/
@java.lang.SuppressWarnings("all")
public Boolean getIncludeSubs() {
return this.includeSubs;
}
/**
* The permission granted to the entity.
* @return {@code this}.
*/
@java.lang.SuppressWarnings("all")
public FieldRightEntity setAccessibility(final FieldAccessibility accessibility) {
this.accessibility = accessibility;
return this;
}
/**
* An object containing data of the entity the permission is granted to.
* @return {@code this}.
*/
@java.lang.SuppressWarnings("all")
public FieldRightEntity setEntity(final Entity entity) {
this.entity = entity;
return this;
}
/**
* The permission inheritance settings of the department the permission is granted to.
* @return {@code this}.
*/
@java.lang.SuppressWarnings("all")
public FieldRightEntity setIncludeSubs(final Boolean includeSubs) {
this.includeSubs = includeSubs;
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 FieldRightEntity)) return false;
final FieldRightEntity other = (FieldRightEntity) o;
if (!other.canEqual((java.lang.Object) this)) return false;
final java.lang.Object this$includeSubs = this.getIncludeSubs();
final java.lang.Object other$includeSubs = other.getIncludeSubs();
if (this$includeSubs == null ? other$includeSubs != null : !this$includeSubs.equals(other$includeSubs)) return false;
final java.lang.Object this$accessibility = this.getAccessibility();
final java.lang.Object other$accessibility = other.getAccessibility();
if (this$accessibility == null ? other$accessibility != null : !this$accessibility.equals(other$accessibility)) return false;
final java.lang.Object this$entity = this.getEntity();
final java.lang.Object other$entity = other.getEntity();
if (this$entity == null ? other$entity != null : !this$entity.equals(other$entity)) return false;
return true;
}
@java.lang.SuppressWarnings("all")
protected boolean canEqual(final java.lang.Object other) {
return other instanceof FieldRightEntity;
}
@java.lang.Override
@java.lang.SuppressWarnings("all")
public int hashCode() {
final int PRIME = 59;
int result = 1;
final java.lang.Object $includeSubs = this.getIncludeSubs();
result = result * PRIME + ($includeSubs == null ? 43 : $includeSubs.hashCode());
final java.lang.Object $accessibility = this.getAccessibility();
result = result * PRIME + ($accessibility == null ? 43 : $accessibility.hashCode());
final java.lang.Object $entity = this.getEntity();
result = result * PRIME + ($entity == null ? 43 : $entity.hashCode());
return result;
}
@java.lang.Override
@java.lang.SuppressWarnings("all")
public java.lang.String toString() {
return "FieldRightEntity(accessibility=" + this.getAccessibility() + ", entity=" + this.getEntity() + ", includeSubs=" + this.getIncludeSubs() + ")";
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy