
com.kintone.client.api.app.UpdateReportsRequest 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.report.Report;
import java.util.Map;
/**
* A request object for Update Graphs API.
*/
public class UpdateReportsRequest implements KintoneRequest {
/**
* The App ID (required).
*/
private Long app;
/**
* An object listing Graph information (required).
*
* The key of the object is the graph's unique identifier, which is equal to the name of the
* graph in its default language settings. The values of the key are the various graph settings
* associated with that graph.
*/
private Map reports;
/**
* 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 UpdateReportsRequest() {
}
/**
* The App ID (required).
*/
@java.lang.SuppressWarnings("all")
public Long getApp() {
return this.app;
}
/**
* An object listing Graph information (required).
*
* The key of the object is the graph's unique identifier, which is equal to the name of the
* graph in its default language settings. The values of the key are the various graph settings
* associated with that graph.
*/
@java.lang.SuppressWarnings("all")
public Map getReports() {
return this.reports;
}
/**
* 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 UpdateReportsRequest setApp(final Long app) {
this.app = app;
return this;
}
/**
* An object listing Graph information (required).
*
* The key of the object is the graph's unique identifier, which is equal to the name of the
* graph in its default language settings. The values of the key are the various graph settings
* associated with that graph.
* @return {@code this}.
*/
@java.lang.SuppressWarnings("all")
public UpdateReportsRequest setReports(final Map reports) {
this.reports = reports;
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 UpdateReportsRequest 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 UpdateReportsRequest)) return false;
final UpdateReportsRequest other = (UpdateReportsRequest) 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$reports = this.getReports();
final java.lang.Object other$reports = other.getReports();
if (this$reports == null ? other$reports != null : !this$reports.equals(other$reports)) return false;
return true;
}
@java.lang.SuppressWarnings("all")
protected boolean canEqual(final java.lang.Object other) {
return other instanceof UpdateReportsRequest;
}
@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 $reports = this.getReports();
result = result * PRIME + ($reports == null ? 43 : $reports.hashCode());
return result;
}
@java.lang.Override
@java.lang.SuppressWarnings("all")
public java.lang.String toString() {
return "UpdateReportsRequest(app=" + this.getApp() + ", reports=" + this.getReports() + ", revision=" + this.getRevision() + ")";
}
}