com.nulabinc.backlog4j.api.option.AddVersionParams Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of backlog4j Show documentation
Show all versions of backlog4j Show documentation
Backlog4j is a Backlog binding library for Java.
package com.nulabinc.backlog4j.api.option;
import com.nulabinc.backlog4j.http.NameValuePair;
/**
* Parameters for add version API.
*
* @author nulab-inc
*/
public class AddVersionParams extends PostParams {
private Object projectIdOrKey;
public AddVersionParams(Object projectIdOrKey, String name) {
this.projectIdOrKey = projectIdOrKey;
parameters.add(new NameValuePair("name", name));
}
public String getProjectIdOrKeyString() {
return projectIdOrKey.toString();
}
public AddVersionParams description(String description) {
parameters.add(new NameValuePair("description", description));
return this;
}
public AddVersionParams startDate(String startDate) {
parameters.add(new NameValuePair("startDate", startDate));
return this;
}
public AddVersionParams releaseDueDate(String releaseDueDate) {
parameters.add(new NameValuePair("releaseDueDate", releaseDueDate));
return this;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy