com.clinia.model.common.V1Sort Maven / Gradle / Ivy
// Code generated by OpenAPI Generator (https://openapi-generator.tech), manual changes will be lost
// - read more on https://github.com/clinia/api-clients-generation. DO NOT EDIT.
package com.clinia.model.common;
import com.fasterxml.jackson.annotation.*;
import com.fasterxml.jackson.databind.annotation.*;
import java.util.Objects;
/** V1Sort */
public class V1Sort {
@JsonProperty("direction")
private V1SortDirection direction;
@JsonProperty("path")
private String path;
public V1Sort setDirection(V1SortDirection direction) {
this.direction = direction;
return this;
}
/** Get direction */
@javax.annotation.Nullable
public V1SortDirection getDirection() {
return direction;
}
public V1Sort setPath(String path) {
this.path = path;
return this;
}
/** Get path */
@javax.annotation.Nonnull
public String getPath() {
return path;
}
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
V1Sort v1Sort = (V1Sort) o;
return Objects.equals(this.direction, v1Sort.direction) && Objects.equals(this.path, v1Sort.path);
}
@Override
public int hashCode() {
return Objects.hash(direction, path);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class V1Sort {\n");
sb.append(" direction: ").append(toIndentedString(direction)).append("\n");
sb.append(" path: ").append(toIndentedString(path)).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 ");
}
}