com.jk.services.client.workflow.models.NewPayloadRequestModel Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jk-framework-service-client Show documentation
Show all versions of jk-framework-service-client Show documentation
A simple API to call Microservices from Java
package com.jk.services.client.workflow.models;
import java.io.Serializable;
public class NewPayloadRequestModel implements Serializable {
private Integer id;
private String system;
private String entity;
private String action;
private String body;
public NewPayloadRequestModel withId(Integer id) {
this.id = id;
return this;
}
public void setId(Integer id) {
this.id = id;
}
public Integer getId() {
return this.id;
}
public NewPayloadRequestModel withSystem(String system) {
this.system = system;
return this;
}
public void setSystem(String system) {
this.system = system;
}
public String getSystem() {
return this.system;
}
public NewPayloadRequestModel withEntity(String entity) {
this.entity = entity;
return this;
}
public void setEntity(String entity) {
this.entity = entity;
}
public String getEntity() {
return this.entity;
}
public NewPayloadRequestModel withAction(String action) {
this.action = action;
return this;
}
public void setAction(String action) {
this.action = action;
}
public String getAction() {
return this.action;
}
public NewPayloadRequestModel withBody(String body) {
this.body = body;
return this;
}
public void setBody(String body) {
this.body = body;
}
public String getBody() {
return this.body;
}
@Override
public boolean equals(Object obj) {
if (obj == null) {
return false;
}
return this.getId().equals(((NewPayloadRequestModel) obj).getId());
}
@Override
public int hashCode() {
if (this.id == null) {
return toString().hashCode();
}
return this.id.hashCode();
}
@Override
public String toString() {
StringBuffer buf = new StringBuffer();
buf.append(this.id).append(",");
buf.append(this.system).append(",");
buf.append(this.entity).append(",");
buf.append(this.action).append(",");
buf.append(this.body).append(",");
return buf.toString();
}
}