All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.gitlab4j.api.models.ApprovalRule 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.

There is a newer version: 6.0.0-rc.6
Show newest version
package org.gitlab4j.api.models;

import org.gitlab4j.api.utils.JacksonJson;

import java.util.List;

public class ApprovalRule {

    private Long id;
    private String name;
    private String ruleType;
    private List eligibleApprovers;
    private Integer approvalsRequired;
    private ApprovalRule sourceRule;
    private List users;
    private List groups;
    private Boolean containsHiddenGroups;
    private List approvedBy;
    private Boolean approved;

    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 getRuleType() {
	return ruleType;
    }

    public void setRuleType(String ruleType) {
	this.ruleType = ruleType;
    }

    public List getEligibleApprovers() {
	return eligibleApprovers;
    }

    public void setEligibleApprovers(List eligibleApprovers) {
	this.eligibleApprovers = eligibleApprovers;
    }

    public Integer getApprovalsRequired() {
	return approvalsRequired;
    }

    public void setApprovalsRequired(Integer approvalsRequired) {
	this.approvalsRequired = approvalsRequired;
    }

    public ApprovalRule getSourceRule() {
	return sourceRule;
    }

    public void setSourceRule(ApprovalRule sourceRule) {
	this.sourceRule = sourceRule;
    }

    public List getUsers() {
	return users;
    }

    public void setUsers(List users) {
	this.users = users;
    }

    public List getGroups() {
	return groups;
    }

    public void setGroups(List groups) {
	this.groups = groups;
    }

    public Boolean getContainsHiddenGroups() {
	return containsHiddenGroups;
    }

    public void setContainsHiddenGroups(Boolean containsHiddenGroups) {
	this.containsHiddenGroups = containsHiddenGroups;
    }

    public List getApprovedBy() {
	return approvedBy;
    }

    public void setApprovedBy(List approvedBy) {
	this.approvedBy = approvedBy;
    }

    public Boolean getApproved() {
	return approved;
    }

    public void setApproved(Boolean approved) {
	this.approved = approved;
    }

    @Override
    public String toString() {
        return (JacksonJson.toJsonString(this));
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy