com.katalon.testops.model.FileResource Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of testops-client-openapi Show documentation
Show all versions of testops-client-openapi Show documentation
Katalon TestOps Client generated by OpenAPI
/*
* Katalon TestOps API reference
* No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
*
* OpenAPI spec version: 1.0.0
*
*
* 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.katalon.testops.model;
import java.util.Objects;
import java.util.Arrays;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue;
import io.swagger.v3.oas.annotations.media.Schema;
/**
* FileResource
*/
public class FileResource {
@JsonProperty("id")
private Long id = null;
@JsonProperty("self")
private String self = null;
@JsonProperty("name")
private String name = null;
@JsonProperty("path")
private String path = null;
@JsonProperty("url")
private String url = null;
@JsonProperty("hash")
private String hash = null;
@JsonProperty("size")
private Long size = null;
@JsonProperty("uploadUrl")
private String uploadUrl = null;
@JsonProperty("signedUrl")
private String signedUrl = null;
public FileResource id(Long id) {
this.id = id;
return this;
}
/**
* Get id
* @return id
**/
@Schema(description = "")
public Long getId() {
return id;
}
public void setId(Long id) {
this.id = id;
}
public FileResource self(String self) {
this.self = self;
return this;
}
/**
* Get self
* @return self
**/
@Schema(description = "")
public String getSelf() {
return self;
}
public void setSelf(String self) {
this.self = self;
}
public FileResource name(String name) {
this.name = name;
return this;
}
/**
* Get name
* @return name
**/
@Schema(description = "")
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public FileResource path(String path) {
this.path = path;
return this;
}
/**
* Get path
* @return path
**/
@Schema(description = "")
public String getPath() {
return path;
}
public void setPath(String path) {
this.path = path;
}
public FileResource 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 FileResource hash(String hash) {
this.hash = hash;
return this;
}
/**
* Get hash
* @return hash
**/
@Schema(description = "")
public String getHash() {
return hash;
}
public void setHash(String hash) {
this.hash = hash;
}
public FileResource size(Long size) {
this.size = size;
return this;
}
/**
* Get size
* @return size
**/
@Schema(description = "")
public Long getSize() {
return size;
}
public void setSize(Long size) {
this.size = size;
}
public FileResource uploadUrl(String uploadUrl) {
this.uploadUrl = uploadUrl;
return this;
}
/**
* Get uploadUrl
* @return uploadUrl
**/
@Schema(description = "")
public String getUploadUrl() {
return uploadUrl;
}
public void setUploadUrl(String uploadUrl) {
this.uploadUrl = uploadUrl;
}
public FileResource signedUrl(String signedUrl) {
this.signedUrl = signedUrl;
return this;
}
/**
* Get signedUrl
* @return signedUrl
**/
@Schema(description = "")
public String getSignedUrl() {
return signedUrl;
}
public void setSignedUrl(String signedUrl) {
this.signedUrl = signedUrl;
}
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
FileResource fileResource = (FileResource) o;
return Objects.equals(this.id, fileResource.id) &&
Objects.equals(this.self, fileResource.self) &&
Objects.equals(this.name, fileResource.name) &&
Objects.equals(this.path, fileResource.path) &&
Objects.equals(this.url, fileResource.url) &&
Objects.equals(this.hash, fileResource.hash) &&
Objects.equals(this.size, fileResource.size) &&
Objects.equals(this.uploadUrl, fileResource.uploadUrl) &&
Objects.equals(this.signedUrl, fileResource.signedUrl);
}
@Override
public int hashCode() {
return Objects.hash(id, self, name, path, url, hash, size, uploadUrl, signedUrl);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class FileResource {\n");
sb.append(" id: ").append(toIndentedString(id)).append("\n");
sb.append(" self: ").append(toIndentedString(self)).append("\n");
sb.append(" name: ").append(toIndentedString(name)).append("\n");
sb.append(" path: ").append(toIndentedString(path)).append("\n");
sb.append(" url: ").append(toIndentedString(url)).append("\n");
sb.append(" hash: ").append(toIndentedString(hash)).append("\n");
sb.append(" size: ").append(toIndentedString(size)).append("\n");
sb.append(" uploadUrl: ").append(toIndentedString(uploadUrl)).append("\n");
sb.append(" signedUrl: ").append(toIndentedString(signedUrl)).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(Object o) {
if (o == null) {
return "null";
}
return o.toString().replace("\n", "\n ");
}
}