org.gitlab.api.models.GitlabLabel 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
package org.gitlab.api.models;
/**
* Models a Gitlab label.
*/
public class GitlabLabel {
public static final String URL = "/labels";
private String name;
private String color;
/**
* Gets the name (text) of a label.
* @return
*/
public String getName() {
return name;
}
/**
* Sets the name (text) of a label.
* @param name
*/
public void setName(String name) {
this.name = name;
}
/**
* Gets the color of a label as six digit HTML hex value.
* @return
*/
public String getColor() {
return color;
}
/**
* Sets the color of a label.
* @param color A six digit HTML hex value including number sign (eg #ff0000)
*/
public void setColor(String color) {
this.color = color;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy