
org.gitlab4j.api.models.SshKey Maven / Gradle / Ivy
package org.gitlab4j.api.models;
import java.io.Serializable;
import java.util.Date;
import org.gitlab4j.api.utils.JacksonJson;
import com.fasterxml.jackson.annotation.JsonIgnore;
public class SshKey implements Serializable {
private static final long serialVersionUID = 1L;
private Long id;
private String title;
private String key;
private Date createdAt;
private Date expiresAt;
private Long userId;
public Long getId() {
return id;
}
public void setId(Long id) {
this.id = id;
}
public String getTitle() {
return title;
}
public void setTitle(String title) {
this.title = title;
}
public String getKey() {
return key;
}
public void setKey(String key) {
this.key = key;
}
public Date getCreatedAt() {
return createdAt;
}
public void setCreatedAt(Date createdAt) {
this.createdAt = createdAt;
}
public Date getExpiresAt() {
return expiresAt;
}
public void setExpiresAt(Date expiresAt) {
this.expiresAt = expiresAt;
}
@JsonIgnore
public Long getUserId() {
return userId;
}
public void setUserId(Long userId) {
this.userId = userId;
}
@Override
public String toString() {
return (JacksonJson.toJsonString(this));
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy