
com.kintone.client.api.app.UpdateReminderNotificationsRequest Maven / Gradle / Ivy
// Generated by delombok at Fri Jan 21 13:34:53 JST 2022
package com.kintone.client.api.app;
import com.kintone.client.api.KintoneRequest;
import com.kintone.client.model.app.ReminderNotification;
import java.util.List;
/**
* A request object for Update Reminder Notification Settings API.
*/
public class UpdateReminderNotificationsRequest implements KintoneRequest {
/**
* The App ID (required).
*/
private Long app;
/**
* An array of objects consisting of "Notification Trigger" options (optional). These options
* define when the notifications will be sent out, under what conditions, and the recipients.
*
*
* - If an empty array is sent, all the recipients will be removed.
*
- If this parameter is ignored, no changes will be made to the "Notification Trigger"
* options.
*
*/
private List notifications;
/**
* The timezone that determines the Reminder notification's timing (optional). This reflects the
* "Reminder Time Zone" dropdown option.
*
* If the App's Reminder Notification settings have never been configured, the API executing
* user's timezone will be used.
*/
private String timezone;
/**
* The expected revision number of the App settings (optional). The request will fail if the
* revision number is not the latest revision. The revision will not be checked if this parameter
* is null, or -1 is specified.
*/
private Long revision;
@java.lang.SuppressWarnings("all")
public UpdateReminderNotificationsRequest() {
}
/**
* The App ID (required).
*/
@java.lang.SuppressWarnings("all")
public Long getApp() {
return this.app;
}
/**
* An array of objects consisting of "Notification Trigger" options (optional). These options
* define when the notifications will be sent out, under what conditions, and the recipients.
*
*
* - If an empty array is sent, all the recipients will be removed.
*
- If this parameter is ignored, no changes will be made to the "Notification Trigger"
* options.
*
*/
@java.lang.SuppressWarnings("all")
public List getNotifications() {
return this.notifications;
}
/**
* The timezone that determines the Reminder notification's timing (optional). This reflects the
* "Reminder Time Zone" dropdown option.
*
* If the App's Reminder Notification settings have never been configured, the API executing
* user's timezone will be used.
*/
@java.lang.SuppressWarnings("all")
public String getTimezone() {
return this.timezone;
}
/**
* The expected revision number of the App settings (optional). The request will fail if the
* revision number is not the latest revision. The revision will not be checked if this parameter
* is null, or -1 is specified.
*/
@java.lang.SuppressWarnings("all")
public Long getRevision() {
return this.revision;
}
/**
* The App ID (required).
* @return {@code this}.
*/
@java.lang.SuppressWarnings("all")
public UpdateReminderNotificationsRequest setApp(final Long app) {
this.app = app;
return this;
}
/**
* An array of objects consisting of "Notification Trigger" options (optional). These options
* define when the notifications will be sent out, under what conditions, and the recipients.
*
*
* - If an empty array is sent, all the recipients will be removed.
*
- If this parameter is ignored, no changes will be made to the "Notification Trigger"
* options.
*
* @return {@code this}.
*/
@java.lang.SuppressWarnings("all")
public UpdateReminderNotificationsRequest setNotifications(final List notifications) {
this.notifications = notifications;
return this;
}
/**
* The timezone that determines the Reminder notification's timing (optional). This reflects the
* "Reminder Time Zone" dropdown option.
*
* If the App's Reminder Notification settings have never been configured, the API executing
* user's timezone will be used.
* @return {@code this}.
*/
@java.lang.SuppressWarnings("all")
public UpdateReminderNotificationsRequest setTimezone(final String timezone) {
this.timezone = timezone;
return this;
}
/**
* The expected revision number of the App settings (optional). The request will fail if the
* revision number is not the latest revision. The revision will not be checked if this parameter
* is null, or -1 is specified.
* @return {@code this}.
*/
@java.lang.SuppressWarnings("all")
public UpdateReminderNotificationsRequest setRevision(final Long revision) {
this.revision = revision;
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 UpdateReminderNotificationsRequest)) return false;
final UpdateReminderNotificationsRequest other = (UpdateReminderNotificationsRequest) o;
if (!other.canEqual((java.lang.Object) this)) return false;
final java.lang.Object this$app = this.getApp();
final java.lang.Object other$app = other.getApp();
if (this$app == null ? other$app != null : !this$app.equals(other$app)) return false;
final java.lang.Object this$revision = this.getRevision();
final java.lang.Object other$revision = other.getRevision();
if (this$revision == null ? other$revision != null : !this$revision.equals(other$revision)) return false;
final java.lang.Object this$notifications = this.getNotifications();
final java.lang.Object other$notifications = other.getNotifications();
if (this$notifications == null ? other$notifications != null : !this$notifications.equals(other$notifications)) return false;
final java.lang.Object this$timezone = this.getTimezone();
final java.lang.Object other$timezone = other.getTimezone();
if (this$timezone == null ? other$timezone != null : !this$timezone.equals(other$timezone)) return false;
return true;
}
@java.lang.SuppressWarnings("all")
protected boolean canEqual(final java.lang.Object other) {
return other instanceof UpdateReminderNotificationsRequest;
}
@java.lang.Override
@java.lang.SuppressWarnings("all")
public int hashCode() {
final int PRIME = 59;
int result = 1;
final java.lang.Object $app = this.getApp();
result = result * PRIME + ($app == null ? 43 : $app.hashCode());
final java.lang.Object $revision = this.getRevision();
result = result * PRIME + ($revision == null ? 43 : $revision.hashCode());
final java.lang.Object $notifications = this.getNotifications();
result = result * PRIME + ($notifications == null ? 43 : $notifications.hashCode());
final java.lang.Object $timezone = this.getTimezone();
result = result * PRIME + ($timezone == null ? 43 : $timezone.hashCode());
return result;
}
@java.lang.Override
@java.lang.SuppressWarnings("all")
public java.lang.String toString() {
return "UpdateReminderNotificationsRequest(app=" + this.getApp() + ", notifications=" + this.getNotifications() + ", timezone=" + this.getTimezone() + ", revision=" + this.getRevision() + ")";
}
}