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

com.kintone.client.model.app.GeneralNotification 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 general app notification settings.
 */
public class GeneralNotification {
    /**
     * An object containing data of the entity the General Notification settings are configured to.
     */
    private Entity entity;
    /**
     * Option to notify the entity when a record is added.
     *
     * 
    *
  • true : Notify when a record is added *
  • false : Do not notify when a record is added *
*/ private Boolean recordAdded; /** * Option to notify the entity when a record is edited. * *
    *
  • true : Notify when a record is edited *
  • false : Do not notify when a record is edited *
*/ private Boolean recordEdited; /** * Option to notify the entity when a comment is posted. * *
    *
  • true : Notify when a comment is posted *
  • false : Do not notify when a comment is posted *
*/ private Boolean commentAdded; /** * Option to notify the entity when a status is changed. * *
    *
  • true : Notify when a status is changed *
  • false : Do not notify when a status is changed *
*/ private Boolean statusChanged; /** * Option to notify the entity when a file is imported. * *
    *
  • true : Notify when a file is imported *
  • false : Do not notify when a file is imported *
*/ private Boolean fileImported; /** * The "Include affiliated departments" setting of the Department. Will always return false unless * the notifications[].entity.type is set to ORGANIZATION or FIELD_ENTITY for a Department * Selection Field. * *
    *
  • true : Affiliated departments do inherit the General Notification settings *
  • false : Affiliated departments do not inherit the General Notification settings *
*/ private Boolean includeSubs; @java.lang.SuppressWarnings("all") public GeneralNotification() { } /** * An object containing data of the entity the General Notification settings are configured to. */ @java.lang.SuppressWarnings("all") public Entity getEntity() { return this.entity; } /** * Option to notify the entity when a record is added. * *
    *
  • true : Notify when a record is added *
  • false : Do not notify when a record is added *
*/ @java.lang.SuppressWarnings("all") public Boolean getRecordAdded() { return this.recordAdded; } /** * Option to notify the entity when a record is edited. * *
    *
  • true : Notify when a record is edited *
  • false : Do not notify when a record is edited *
*/ @java.lang.SuppressWarnings("all") public Boolean getRecordEdited() { return this.recordEdited; } /** * Option to notify the entity when a comment is posted. * *
    *
  • true : Notify when a comment is posted *
  • false : Do not notify when a comment is posted *
*/ @java.lang.SuppressWarnings("all") public Boolean getCommentAdded() { return this.commentAdded; } /** * Option to notify the entity when a status is changed. * *
    *
  • true : Notify when a status is changed *
  • false : Do not notify when a status is changed *
*/ @java.lang.SuppressWarnings("all") public Boolean getStatusChanged() { return this.statusChanged; } /** * Option to notify the entity when a file is imported. * *
    *
  • true : Notify when a file is imported *
  • false : Do not notify when a file is imported *
*/ @java.lang.SuppressWarnings("all") public Boolean getFileImported() { return this.fileImported; } /** * The "Include affiliated departments" setting of the Department. Will always return false unless * the notifications[].entity.type is set to ORGANIZATION or FIELD_ENTITY for a Department * Selection Field. * *
    *
  • true : Affiliated departments do inherit the General Notification settings *
  • false : Affiliated departments do not inherit the General Notification settings *
*/ @java.lang.SuppressWarnings("all") public Boolean getIncludeSubs() { return this.includeSubs; } /** * An object containing data of the entity the General Notification settings are configured to. * @return {@code this}. */ @java.lang.SuppressWarnings("all") public GeneralNotification setEntity(final Entity entity) { this.entity = entity; return this; } /** * Option to notify the entity when a record is added. * *
    *
  • true : Notify when a record is added *
  • false : Do not notify when a record is added *
* @return {@code this}. */ @java.lang.SuppressWarnings("all") public GeneralNotification setRecordAdded(final Boolean recordAdded) { this.recordAdded = recordAdded; return this; } /** * Option to notify the entity when a record is edited. * *
    *
  • true : Notify when a record is edited *
  • false : Do not notify when a record is edited *
* @return {@code this}. */ @java.lang.SuppressWarnings("all") public GeneralNotification setRecordEdited(final Boolean recordEdited) { this.recordEdited = recordEdited; return this; } /** * Option to notify the entity when a comment is posted. * *
    *
  • true : Notify when a comment is posted *
  • false : Do not notify when a comment is posted *
* @return {@code this}. */ @java.lang.SuppressWarnings("all") public GeneralNotification setCommentAdded(final Boolean commentAdded) { this.commentAdded = commentAdded; return this; } /** * Option to notify the entity when a status is changed. * *
    *
  • true : Notify when a status is changed *
  • false : Do not notify when a status is changed *
* @return {@code this}. */ @java.lang.SuppressWarnings("all") public GeneralNotification setStatusChanged(final Boolean statusChanged) { this.statusChanged = statusChanged; return this; } /** * Option to notify the entity when a file is imported. * *
    *
  • true : Notify when a file is imported *
  • false : Do not notify when a file is imported *
* @return {@code this}. */ @java.lang.SuppressWarnings("all") public GeneralNotification setFileImported(final Boolean fileImported) { this.fileImported = fileImported; return this; } /** * The "Include affiliated departments" setting of the Department. Will always return false unless * the notifications[].entity.type is set to ORGANIZATION or FIELD_ENTITY for a Department * Selection Field. * *
    *
  • true : Affiliated departments do inherit the General Notification settings *
  • false : Affiliated departments do not inherit the General Notification settings *
* @return {@code this}. */ @java.lang.SuppressWarnings("all") public GeneralNotification 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 GeneralNotification)) return false; final GeneralNotification other = (GeneralNotification) o; if (!other.canEqual((java.lang.Object) this)) return false; final java.lang.Object this$recordAdded = this.getRecordAdded(); final java.lang.Object other$recordAdded = other.getRecordAdded(); if (this$recordAdded == null ? other$recordAdded != null : !this$recordAdded.equals(other$recordAdded)) return false; final java.lang.Object this$recordEdited = this.getRecordEdited(); final java.lang.Object other$recordEdited = other.getRecordEdited(); if (this$recordEdited == null ? other$recordEdited != null : !this$recordEdited.equals(other$recordEdited)) return false; final java.lang.Object this$commentAdded = this.getCommentAdded(); final java.lang.Object other$commentAdded = other.getCommentAdded(); if (this$commentAdded == null ? other$commentAdded != null : !this$commentAdded.equals(other$commentAdded)) return false; final java.lang.Object this$statusChanged = this.getStatusChanged(); final java.lang.Object other$statusChanged = other.getStatusChanged(); if (this$statusChanged == null ? other$statusChanged != null : !this$statusChanged.equals(other$statusChanged)) return false; final java.lang.Object this$fileImported = this.getFileImported(); final java.lang.Object other$fileImported = other.getFileImported(); if (this$fileImported == null ? other$fileImported != null : !this$fileImported.equals(other$fileImported)) 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$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 GeneralNotification; } @java.lang.Override @java.lang.SuppressWarnings("all") public int hashCode() { final int PRIME = 59; int result = 1; final java.lang.Object $recordAdded = this.getRecordAdded(); result = result * PRIME + ($recordAdded == null ? 43 : $recordAdded.hashCode()); final java.lang.Object $recordEdited = this.getRecordEdited(); result = result * PRIME + ($recordEdited == null ? 43 : $recordEdited.hashCode()); final java.lang.Object $commentAdded = this.getCommentAdded(); result = result * PRIME + ($commentAdded == null ? 43 : $commentAdded.hashCode()); final java.lang.Object $statusChanged = this.getStatusChanged(); result = result * PRIME + ($statusChanged == null ? 43 : $statusChanged.hashCode()); final java.lang.Object $fileImported = this.getFileImported(); result = result * PRIME + ($fileImported == null ? 43 : $fileImported.hashCode()); final java.lang.Object $includeSubs = this.getIncludeSubs(); result = result * PRIME + ($includeSubs == null ? 43 : $includeSubs.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 "GeneralNotification(entity=" + this.getEntity() + ", recordAdded=" + this.getRecordAdded() + ", recordEdited=" + this.getRecordEdited() + ", commentAdded=" + this.getCommentAdded() + ", statusChanged=" + this.getStatusChanged() + ", fileImported=" + this.getFileImported() + ", includeSubs=" + this.getIncludeSubs() + ")"; } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy