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

org.gitlab.api.models.GitlabNamespace Maven / Gradle / Ivy

The newest version!
package org.gitlab.api.models;

import java.util.Date;

import com.fasterxml.jackson.annotation.JsonProperty;

public class GitlabNamespace {
    public static final String URL = "/namespaces";

    private Integer id;
    private String name;
    private String path;
    private String kind;
    private String plan;

    @JsonProperty("full_path")
    private String fullPath;

    @JsonProperty("parent_id")
    private String parentId;

    @JsonProperty("members_count_with_descendants")
    private Integer membersCountWithDescendants;



    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getPath() {
        return path;
    }

    public void setPath(String path) {
        this.path = path;
    }

    public String getKind() {
        return kind;
    }

    public void setKind(String kind) {
        this.kind = kind;
    }

    public String getPlan() {
        return plan;
    }

    public void setPlan(String plan) {
        this.plan = plan;
    }

    public String getFullPath() {
        return fullPath;
    }

    public void setFullPath(String fullPath) {
        this.fullPath = fullPath;
    }

    public String getParentId() {
        return parentId;
    }

    public void setParentId(String parentId) {
        this.parentId = parentId;
    }

    public Integer getMembersCountWithDescendants() {
        return membersCountWithDescendants;
    }

    public void setMembersCountWithDescendants(Integer membersCountWithDescendants) {
        this.membersCountWithDescendants = membersCountWithDescendants;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;

        GitlabNamespace that = (GitlabNamespace) o;

        if (id != null || that.id != null) {
            return id != null && id.equals(that.id);
        } else {
            return name != null ? name.equals(that.name) : that.name == null;
        }
    }

    @Override
    public int hashCode() {
        int result = id != null ? id.hashCode() : 0;
        result = 31 * result + (name != null ? name.hashCode() : 0);
        return result;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy