package com.perforce.hwsclient.models;
import java.util.Objects;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.util.HashMap;
import java.util.Map;
import com.google.gson.annotations.SerializedName;
/**
* A single map typically defines input to generic command methods.
**/
@ApiModel(description = "A single map typically defines input to generic command methods.")
public class CommandRequest extends HashMap<String, Object> {
@SerializedName("object")
private Object object = null;
/**
* Don't use this. It's a kludge around a bug in the Java client code generator
**/
@ApiModelProperty(value = "Don't use this. It's a kludge around a bug in the Java client code generator")
public Object getObject() {
return object;
}
public void setObject(Object object) {
this.object = object;
}
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
CommandRequest commandRequest = (CommandRequest) o;
return Objects.equals(object, commandRequest.object);
}
@Override
public int hashCode() {
return Objects.hash(object);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class CommandRequest {\n");
sb.append(" ").append(toIndentedString(super.toString())).append("\n");
sb.append(" object: ").append(toIndentedString(object)).append("\n");
sb.append("}");
return sb.toString();
}
/**
* Convert the given object to string with each line indented by 4 spaces
* (except the first line).
*/
private String toIndentedString(Object o) {
if (o == null) {
return "null";
}
return o.toString().replace("\n", "\n ");
}
}