org.gitlab.api.models.GitlabBuildVariable Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of java-gitlab-api Show documentation
Show all versions of java-gitlab-api Show documentation
A Java wrapper for the Gitlab Git Hosting Server API
The newest version!
package org.gitlab.api.models;
import com.fasterxml.jackson.annotation.JsonProperty;
/**
* @author Vitezslav Zak
*/
public class GitlabBuildVariable {
public final static String URL = "/variables";
public GitlabBuildVariable() {
}
public GitlabBuildVariable(String key, String value) {
this.key = key;
this.value = value;
this.variableType = VariableType.env_var;
}
public GitlabBuildVariable(String key, String value, VariableType variableType) {
this.key = key;
this.value = value;
this.variableType = variableType;
}
@JsonProperty("key")
private String key;
@JsonProperty("value")
private String value;
@JsonProperty("variable_type")
private VariableType variableType;
public String getKey() {
return key;
}
public void setKey(String key) {
this.key = key;
}
public String getValue() {
return value;
}
public void setValue(String value) {
this.value = value;
}
public VariableType getVariableType() {
return variableType;
}
public void setVariableType(VariableType variableType) {
this.variableType = variableType;
}
public enum VariableType {
env_var,
file
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy