![JAR search and dependency download from the Maven repository](/logo.png)
com.katalon.testops.api.model.FileResource Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of testops-api Show documentation
Show all versions of testops-api Show documentation
Katalon TestOps API Client generated by OpenAPI
The newest version!
/*
* Katalon TestOps API reference
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 1.0.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
package com.katalon.testops.api.model;
import java.util.Objects;
import java.util.Arrays;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonTypeName;
import com.fasterxml.jackson.annotation.JsonValue;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.Serializable;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
/**
* FileResource
*/
@JsonPropertyOrder({
FileResource.JSON_PROPERTY_ID,
FileResource.JSON_PROPERTY_SELF,
FileResource.JSON_PROPERTY_NAME,
FileResource.JSON_PROPERTY_PATH,
FileResource.JSON_PROPERTY_URL,
FileResource.JSON_PROPERTY_HASH,
FileResource.JSON_PROPERTY_SIZE,
FileResource.JSON_PROPERTY_UPLOAD_URL,
FileResource.JSON_PROPERTY_SIGNED_URL
})
@JsonTypeName("FileResource")
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
public class FileResource implements Serializable {
private static final long serialVersionUID = 1L;
public static final String JSON_PROPERTY_ID = "id";
private Long id;
public static final String JSON_PROPERTY_SELF = "self";
private String self;
public static final String JSON_PROPERTY_NAME = "name";
private String name;
public static final String JSON_PROPERTY_PATH = "path";
private String path;
public static final String JSON_PROPERTY_URL = "url";
private String url;
public static final String JSON_PROPERTY_HASH = "hash";
private String hash;
public static final String JSON_PROPERTY_SIZE = "size";
private Long size;
public static final String JSON_PROPERTY_UPLOAD_URL = "uploadUrl";
private String uploadUrl;
public static final String JSON_PROPERTY_SIGNED_URL = "signedUrl";
private String signedUrl;
public FileResource id(Long id) {
this.id = id;
return this;
}
/**
* Get id
* @return id
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_ID)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
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
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_SELF)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
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
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_NAME)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
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
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_PATH)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
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
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_URL)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
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
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_HASH)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
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
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_SIZE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
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
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_UPLOAD_URL)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
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
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_SIGNED_URL)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
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 ");
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy