com.kintone.client.model.record.StatusAction Maven / Gradle / Ivy
// Generated by delombok at Fri Jan 21 13:34:53 JST 2022
package com.kintone.client.model.record;
/**
* An object that stores information for updating a record status.
*/
public class StatusAction {
/**
* The Record ID (required).
*/
private Long id;
/**
* The Action name of the action to run (required).
*/
private String action;
/**
* The next Assignee (optional).
*/
private String assignee;
/**
* The revision number of the record before updating the status (optional).
*/
private Long revision;
@java.lang.SuppressWarnings("all")
public StatusAction() {
}
/**
* The Record ID (required).
*/
@java.lang.SuppressWarnings("all")
public Long getId() {
return this.id;
}
/**
* The Action name of the action to run (required).
*/
@java.lang.SuppressWarnings("all")
public String getAction() {
return this.action;
}
/**
* The next Assignee (optional).
*/
@java.lang.SuppressWarnings("all")
public String getAssignee() {
return this.assignee;
}
/**
* The revision number of the record before updating the status (optional).
*/
@java.lang.SuppressWarnings("all")
public Long getRevision() {
return this.revision;
}
/**
* The Record ID (required).
* @return {@code this}.
*/
@java.lang.SuppressWarnings("all")
public StatusAction setId(final Long id) {
this.id = id;
return this;
}
/**
* The Action name of the action to run (required).
* @return {@code this}.
*/
@java.lang.SuppressWarnings("all")
public StatusAction setAction(final String action) {
this.action = action;
return this;
}
/**
* The next Assignee (optional).
* @return {@code this}.
*/
@java.lang.SuppressWarnings("all")
public StatusAction setAssignee(final String assignee) {
this.assignee = assignee;
return this;
}
/**
* The revision number of the record before updating the status (optional).
* @return {@code this}.
*/
@java.lang.SuppressWarnings("all")
public StatusAction 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 StatusAction)) return false;
final StatusAction other = (StatusAction) o;
if (!other.canEqual((java.lang.Object) this)) return false;
final java.lang.Object this$id = this.getId();
final java.lang.Object other$id = other.getId();
if (this$id == null ? other$id != null : !this$id.equals(other$id)) 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$action = this.getAction();
final java.lang.Object other$action = other.getAction();
if (this$action == null ? other$action != null : !this$action.equals(other$action)) return false;
final java.lang.Object this$assignee = this.getAssignee();
final java.lang.Object other$assignee = other.getAssignee();
if (this$assignee == null ? other$assignee != null : !this$assignee.equals(other$assignee)) return false;
return true;
}
@java.lang.SuppressWarnings("all")
protected boolean canEqual(final java.lang.Object other) {
return other instanceof StatusAction;
}
@java.lang.Override
@java.lang.SuppressWarnings("all")
public int hashCode() {
final int PRIME = 59;
int result = 1;
final java.lang.Object $id = this.getId();
result = result * PRIME + ($id == null ? 43 : $id.hashCode());
final java.lang.Object $revision = this.getRevision();
result = result * PRIME + ($revision == null ? 43 : $revision.hashCode());
final java.lang.Object $action = this.getAction();
result = result * PRIME + ($action == null ? 43 : $action.hashCode());
final java.lang.Object $assignee = this.getAssignee();
result = result * PRIME + ($assignee == null ? 43 : $assignee.hashCode());
return result;
}
@java.lang.Override
@java.lang.SuppressWarnings("all")
public java.lang.String toString() {
return "StatusAction(id=" + this.getId() + ", action=" + this.getAction() + ", assignee=" + this.getAssignee() + ", revision=" + this.getRevision() + ")";
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy