io.lakefs.clients.api.model.RepositoryRestoreStatus Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of api-client Show documentation
Show all versions of api-client Show documentation
lakeFS OpenAPI Java client legacy SDK
/*
* lakeFS API
* lakeFS HTTP API
*
* 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 io.lakefs.clients.api.model;
import java.util.Objects;
import java.util.Arrays;
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;
/**
* RepositoryRestoreStatus
*/
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
public class RepositoryRestoreStatus {
public static final String SERIALIZED_NAME_ID = "id";
@SerializedName(SERIALIZED_NAME_ID)
private String id;
public static final String SERIALIZED_NAME_DONE = "done";
@SerializedName(SERIALIZED_NAME_DONE)
private Boolean done;
public static final String SERIALIZED_NAME_UPDATE_TIME = "update_time";
@SerializedName(SERIALIZED_NAME_UPDATE_TIME)
private OffsetDateTime updateTime;
public static final String SERIALIZED_NAME_ERROR = "error";
@SerializedName(SERIALIZED_NAME_ERROR)
private String error;
public RepositoryRestoreStatus id(String id) {
this.id = id;
return this;
}
/**
* ID of the task
* @return id
**/
@javax.annotation.Nonnull
@ApiModelProperty(required = true, value = "ID of the task")
public String getId() {
return id;
}
public void setId(String id) {
this.id = id;
}
public RepositoryRestoreStatus done(Boolean done) {
this.done = done;
return this;
}
/**
* Get done
* @return done
**/
@javax.annotation.Nonnull
@ApiModelProperty(required = true, value = "")
public Boolean getDone() {
return done;
}
public void setDone(Boolean done) {
this.done = done;
}
public RepositoryRestoreStatus updateTime(OffsetDateTime updateTime) {
this.updateTime = updateTime;
return this;
}
/**
* Get updateTime
* @return updateTime
**/
@javax.annotation.Nonnull
@ApiModelProperty(required = true, value = "")
public OffsetDateTime getUpdateTime() {
return updateTime;
}
public void setUpdateTime(OffsetDateTime updateTime) {
this.updateTime = updateTime;
}
public RepositoryRestoreStatus error(String error) {
this.error = error;
return this;
}
/**
* Get error
* @return error
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
public String getError() {
return error;
}
public void setError(String error) {
this.error = error;
}
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
RepositoryRestoreStatus repositoryRestoreStatus = (RepositoryRestoreStatus) o;
return Objects.equals(this.id, repositoryRestoreStatus.id) &&
Objects.equals(this.done, repositoryRestoreStatus.done) &&
Objects.equals(this.updateTime, repositoryRestoreStatus.updateTime) &&
Objects.equals(this.error, repositoryRestoreStatus.error);
}
@Override
public int hashCode() {
return Objects.hash(id, done, updateTime, error);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class RepositoryRestoreStatus {\n");
sb.append(" id: ").append(toIndentedString(id)).append("\n");
sb.append(" done: ").append(toIndentedString(done)).append("\n");
sb.append(" updateTime: ").append(toIndentedString(updateTime)).append("\n");
sb.append(" error: ").append(toIndentedString(error)).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 ");
}
}