org.openapitools.codegen.model.OperationMap Maven / Gradle / Ivy
package org.openapitools.codegen.model;
import java.util.Collections;
import java.util.HashMap;
import java.util.List;
import org.openapitools.codegen.CodegenOperation;
public class OperationMap extends HashMap {
public void setOperation(CodegenOperation ops) {
put("operation", Collections.singletonList(ops));
}
public void setOperation(List extends CodegenOperation> ops) {
put("operation", ops);
}
@SuppressWarnings("unchecked")
public List getOperation() {
return (List) get("operation");
}
public void setClassname(String classname) {
put("classname", classname);
}
public String getClassname() {
return (String) get("classname");
}
public void setPathPrefix(String pathPrefix) {
put("pathPrefix", pathPrefix);
}
public String getPathPrefix() {
return (String) get("pathPrefix");
}
}