com.devonfw.cobigen.openapiplugin.model.PathDef Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of openapiplugin-model Show documentation
Show all versions of openapiplugin-model Show documentation
A Code-based incremental Generator
package com.devonfw.cobigen.openapiplugin.model;
import java.util.LinkedList;
import java.util.List;
/**
*
*/
@SuppressWarnings("javadoc")
public class PathDef {
private String rootComponent;
private String pathURI;
private String version;
private List operations;
public PathDef(String pathURI, String version) {
this.version = version;
this.pathURI = pathURI;
this.operations = new LinkedList<>();
}
public PathDef(String rootComponent, String pathURI, String version) {
this(pathURI, version);
this.rootComponent = rootComponent;
}
public PathDef() {
this.version = "v1";
}
public String getRootComponent() {
return this.rootComponent;
}
public void setRootComponent(String rootComponent) {
this.rootComponent = rootComponent;
}
public String getPathURI() {
return this.pathURI;
}
public void setPathURI(String pathURI) {
this.pathURI = pathURI;
}
public List getOperations() {
return this.operations;
}
public void setOperations(List operations) {
this.operations = operations;
}
public String getVersion() {
return this.version;
}
public void setVersion(String version) {
this.version = version;
}
}