org.gitlab4j.api.models.Badge Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of gitlab4j-api Show documentation
Show all versions of gitlab4j-api Show documentation
GitLab4J-API (gitlab4j-api) provides a full featured Java client library for working with GitLab repositories and servers via the GitLab REST API.
package org.gitlab4j.api.models;
import org.gitlab4j.api.utils.JacksonJson;
import org.gitlab4j.api.utils.JacksonJsonEnumHelper;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue;
public class Badge {
public enum BadgeKind {
PROJECT, GROUP;
private static JacksonJsonEnumHelper enumHelper = new JacksonJsonEnumHelper<>(BadgeKind.class);
@JsonCreator
public static BadgeKind forValue(String value) {
return enumHelper.forValue(value);
}
@JsonValue
public String toValue() {
return (enumHelper.toString(this));
}
@Override
public String toString() {
return (enumHelper.toString(this));
}
}
private Long id;
private String name;
private String linkUrl;
private String imageUrl;
private String renderedLinkUrl;
private String renderedImageUrl;
private BadgeKind kind;
public Long getId() {
return id;
}
public void setId(Long id) {
this.id = id;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public String getLinkUrl() {
return linkUrl;
}
public void setLinkUrl(String linkUrl) {
this.linkUrl = linkUrl;
}
public String getImageUrl() {
return imageUrl;
}
public void setImageUrl(String imageUrl) {
this.imageUrl = imageUrl;
}
public String getRenderedImageUrl() {
return renderedImageUrl;
}
public void setRenderedImageUrl(String renderedImageUrl) {
this.renderedImageUrl = renderedImageUrl;
}
public String getRenderedLinkUrl() {
return renderedLinkUrl;
}
public void setRenderedLinkUrl(String renderedLinkUrl) {
this.renderedLinkUrl = renderedLinkUrl;
}
public BadgeKind getKind() {
return kind;
}
public void setKind(BadgeKind kind) {
this.kind = kind;
}
@Override
public String toString() {
return (JacksonJson.toJsonString(this));
}
}