com.gitee.sdk.gitee5j.model.CodeForks Maven / Gradle / Ivy
The newest version!
/*
* Gitee Open API
* No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
*
* OpenAPI spec version: 5.4.83
*
*
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen.git
* Do not edit the class manually.
*/
package com.gitee.sdk.gitee5j.model;
import java.util.Objects;
import java.util.Arrays;
import com.gitee.sdk.gitee5j.model.UserBasic;
import com.google.gson.TypeAdapter;
import com.google.gson.annotations.JsonAdapter;
import com.google.gson.annotations.SerializedName;
import com.google.gson.stream.JsonReader;
import com.google.gson.stream.JsonWriter;
import io.swagger.v3.oas.annotations.media.Schema;
import java.io.IOException;
import java.time.OffsetDateTime;
/**
* 获取 Fork 了指定代码片段的列表
*/
@Schema(description = "获取 Fork 了指定代码片段的列表")
public class CodeForks {
@SerializedName("created_at")
private OffsetDateTime createdAt = null;
@SerializedName("id")
private String id = null;
@SerializedName("updated_at")
private OffsetDateTime updatedAt = null;
@SerializedName("url")
private String url = null;
@SerializedName("user")
private UserBasic user = null;
public CodeForks createdAt(OffsetDateTime createdAt) {
this.createdAt = createdAt;
return this;
}
/**
* Get createdAt
* @return createdAt
**/
@Schema(description = "")
public OffsetDateTime getCreatedAt() {
return createdAt;
}
public void setCreatedAt(OffsetDateTime createdAt) {
this.createdAt = createdAt;
}
public CodeForks id(String id) {
this.id = id;
return this;
}
/**
* Get id
* @return id
**/
@Schema(description = "")
public String getId() {
return id;
}
public void setId(String id) {
this.id = id;
}
public CodeForks updatedAt(OffsetDateTime updatedAt) {
this.updatedAt = updatedAt;
return this;
}
/**
* Get updatedAt
* @return updatedAt
**/
@Schema(description = "")
public OffsetDateTime getUpdatedAt() {
return updatedAt;
}
public void setUpdatedAt(OffsetDateTime updatedAt) {
this.updatedAt = updatedAt;
}
public CodeForks url(String url) {
this.url = url;
return this;
}
/**
* Get url
* @return url
**/
@Schema(description = "")
public String getUrl() {
return url;
}
public void setUrl(String url) {
this.url = url;
}
public CodeForks user(UserBasic user) {
this.user = user;
return this;
}
/**
* Get user
* @return user
**/
@Schema(description = "")
public UserBasic getUser() {
return user;
}
public void setUser(UserBasic user) {
this.user = user;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
CodeForks codeForks = (CodeForks) o;
return Objects.equals(this.createdAt, codeForks.createdAt) &&
Objects.equals(this.id, codeForks.id) &&
Objects.equals(this.updatedAt, codeForks.updatedAt) &&
Objects.equals(this.url, codeForks.url) &&
Objects.equals(this.user, codeForks.user);
}
@Override
public int hashCode() {
return Objects.hash(createdAt, id, updatedAt, url, user);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class CodeForks {\n");
sb.append(" createdAt: ").append(toIndentedString(createdAt)).append("\n");
sb.append(" id: ").append(toIndentedString(id)).append("\n");
sb.append(" updatedAt: ").append(toIndentedString(updatedAt)).append("\n");
sb.append(" url: ").append(toIndentedString(url)).append("\n");
sb.append(" user: ").append(toIndentedString(user)).append("\n");
sb.append("}");
return sb.toString();
}
/**
* Convert the given object to string with each line indented by 4 spaces
* (except the first line).
*/
private String toIndentedString(java.lang.Object o) {
if (o == null) {
return "null";
}
return o.toString().replace("\n", "\n ");
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy