org.whitesource.agent.api.model.ProjectDetails Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of wss-agent-api Show documentation
Show all versions of wss-agent-api Show documentation
Java bindings for White Source API
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);
}
}