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

org.whitesource.agent.api.model.ProjectDetails Maven / Gradle / Ivy

There is a newer version: 18.4.1
Show newest version
package org.whitesource.agent.api.model;

import com.google.gson.annotations.Since;
import org.whitesource.agent.api.AgentApiVersion;

import java.io.Serializable;
import java.util.Objects;

/**
 * @author eRez Huberman
 * @since 2.9.8
 **/
@Since(AgentApiVersion.AGENT_API_VERSION_2_9_8)
public class ProjectDetails implements Serializable{

    private static final long serialVersionUID = 6155870504657108377L;

    /* --- Members --- */
    private String projectName;
    private Integer projectId;
    private String projectToken;

    /* --- Constructors --- */

    public ProjectDetails(String name, Integer id, String token){
        this.projectName = name;
        this.projectId = id;
        this.projectToken = token;
    }

    /* --- Getters / Setters --- */
    public String getProjectName() {
        return projectName;
    }

    public void setProjectName(String projectName) {
        this.projectName = projectName;
    }

    public Integer getProjectId() {
        return projectId;
    }

    public void setProjectId(Integer projectId) {
        this.projectId = projectId;
    }

    public String getProjectToken() {
        return projectToken;
    }

    public void setProjectToken(String projectToken) {
        this.projectToken = projectToken;
    }

    /* --- Overridden methods --- */

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        ProjectDetails that = (ProjectDetails) o;
        return Objects.equals(projectName, that.projectName) &&
                Objects.equals(projectId, that.projectId) &&
                Objects.equals(projectToken, that.projectToken);
    }

    @Override
    public int hashCode() {

        return Objects.hash(projectName, projectId, projectToken);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy