java-gitea-api/src/main/java/io/gitea/model/Attachment.java

234 lines
5.3 KiB
Java

/*
* Gitea API.
* This documentation describes the Gitea API.
*
* OpenAPI spec version: 1.1.1
*
*
* 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 io.gitea.model;
import java.util.Objects;
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.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.IOException;
import org.threeten.bp.OffsetDateTime;
/**
* Attachment a generic attachment
*/
@ApiModel(description = "Attachment a generic attachment")
@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-10-20T18:39:27.321+01:00")
public class Attachment {
@SerializedName("browser_download_url")
private String browserDownloadUrl = null;
@SerializedName("created_at")
private OffsetDateTime createdAt = null;
@SerializedName("download_count")
private Long downloadCount = null;
@SerializedName("id")
private Long id = null;
@SerializedName("name")
private String name = null;
@SerializedName("size")
private Long size = null;
@SerializedName("uuid")
private String uuid = null;
public Attachment browserDownloadUrl(String browserDownloadUrl) {
this.browserDownloadUrl = browserDownloadUrl;
return this;
}
/**
* Get browserDownloadUrl
* @return browserDownloadUrl
**/
@ApiModelProperty(value = "")
public String getBrowserDownloadUrl() {
return browserDownloadUrl;
}
public void setBrowserDownloadUrl(String browserDownloadUrl) {
this.browserDownloadUrl = browserDownloadUrl;
}
public Attachment createdAt(OffsetDateTime createdAt) {
this.createdAt = createdAt;
return this;
}
/**
* Get createdAt
* @return createdAt
**/
@ApiModelProperty(value = "")
public OffsetDateTime getCreatedAt() {
return createdAt;
}
public void setCreatedAt(OffsetDateTime createdAt) {
this.createdAt = createdAt;
}
public Attachment downloadCount(Long downloadCount) {
this.downloadCount = downloadCount;
return this;
}
/**
* Get downloadCount
* @return downloadCount
**/
@ApiModelProperty(value = "")
public Long getDownloadCount() {
return downloadCount;
}
public void setDownloadCount(Long downloadCount) {
this.downloadCount = downloadCount;
}
public Attachment id(Long id) {
this.id = id;
return this;
}
/**
* Get id
* @return id
**/
@ApiModelProperty(value = "")
public Long getId() {
return id;
}
public void setId(Long id) {
this.id = id;
}
public Attachment name(String name) {
this.name = name;
return this;
}
/**
* Get name
* @return name
**/
@ApiModelProperty(value = "")
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public Attachment size(Long size) {
this.size = size;
return this;
}
/**
* Get size
* @return size
**/
@ApiModelProperty(value = "")
public Long getSize() {
return size;
}
public void setSize(Long size) {
this.size = size;
}
public Attachment uuid(String uuid) {
this.uuid = uuid;
return this;
}
/**
* Get uuid
* @return uuid
**/
@ApiModelProperty(value = "")
public String getUuid() {
return uuid;
}
public void setUuid(String uuid) {
this.uuid = uuid;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
Attachment attachment = (Attachment) o;
return Objects.equals(this.browserDownloadUrl, attachment.browserDownloadUrl) &&
Objects.equals(this.createdAt, attachment.createdAt) &&
Objects.equals(this.downloadCount, attachment.downloadCount) &&
Objects.equals(this.id, attachment.id) &&
Objects.equals(this.name, attachment.name) &&
Objects.equals(this.size, attachment.size) &&
Objects.equals(this.uuid, attachment.uuid);
}
@Override
public int hashCode() {
return Objects.hash(browserDownloadUrl, createdAt, downloadCount, id, name, size, uuid);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class Attachment {\n");
sb.append(" browserDownloadUrl: ").append(toIndentedString(browserDownloadUrl)).append("\n");
sb.append(" createdAt: ").append(toIndentedString(createdAt)).append("\n");
sb.append(" downloadCount: ").append(toIndentedString(downloadCount)).append("\n");
sb.append(" id: ").append(toIndentedString(id)).append("\n");
sb.append(" name: ").append(toIndentedString(name)).append("\n");
sb.append(" size: ").append(toIndentedString(size)).append("\n");
sb.append(" uuid: ").append(toIndentedString(uuid)).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 ");
}
}