
org.gitlab4j.api.models.ProtectedBranch Maven / Gradle / Ivy
Go to download
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 javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlRootElement;
import java.util.List;
@XmlRootElement
@XmlAccessorType(XmlAccessType.FIELD)
public class ProtectedBranch {
private String name;
private List pushAccessLevels;
private List mergeAccessLevels;
public String getName() {
return this.name;
}
public void setName(String name) {
this.name = name;
}
public List getPushAccessLevels() {
return this.pushAccessLevels;
}
public void setPushAccessLevels(List pushAccessLevels) {
this.pushAccessLevels = pushAccessLevels;
}
public List getMergeAccessLevels() {
return this.mergeAccessLevels;
}
public void setMergeAccessLevels(List mergeAccessLevels) {
this.mergeAccessLevels = mergeAccessLevels;
}
public static final boolean isValid(ProtectedBranch branch) {
return (branch != null && branch.getName() != null);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy