
com.kintone.client.api.app.DeleteFormFieldsRequest 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 java.util.List;
/**
* A request object for Delete Form Fields API.
*/
public class DeleteFormFieldsRequest implements KintoneRequest {
/**
* The App ID (required).
*/
private Long app;
/**
* 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;
/**
* The list of field codes of the fields to delete (required).
*/
private List fields;
@java.lang.SuppressWarnings("all")
public DeleteFormFieldsRequest() {
}
/**
* The App ID (required).
*/
@java.lang.SuppressWarnings("all")
public Long getApp() {
return this.app;
}
/**
* 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 list of field codes of the fields to delete (required).
*/
@java.lang.SuppressWarnings("all")
public List getFields() {
return this.fields;
}
/**
* The App ID (required).
* @return {@code this}.
*/
@java.lang.SuppressWarnings("all")
public DeleteFormFieldsRequest setApp(final Long app) {
this.app = app;
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 DeleteFormFieldsRequest setRevision(final Long revision) {
this.revision = revision;
return this;
}
/**
* The list of field codes of the fields to delete (required).
* @return {@code this}.
*/
@java.lang.SuppressWarnings("all")
public DeleteFormFieldsRequest setFields(final List fields) {
this.fields = fields;
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 DeleteFormFieldsRequest)) return false;
final DeleteFormFieldsRequest other = (DeleteFormFieldsRequest) 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$fields = this.getFields();
final java.lang.Object other$fields = other.getFields();
if (this$fields == null ? other$fields != null : !this$fields.equals(other$fields)) return false;
return true;
}
@java.lang.SuppressWarnings("all")
protected boolean canEqual(final java.lang.Object other) {
return other instanceof DeleteFormFieldsRequest;
}
@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 $fields = this.getFields();
result = result * PRIME + ($fields == null ? 43 : $fields.hashCode());
return result;
}
@java.lang.Override
@java.lang.SuppressWarnings("all")
public java.lang.String toString() {
return "DeleteFormFieldsRequest(app=" + this.getApp() + ", revision=" + this.getRevision() + ", fields=" + this.getFields() + ")";
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy