com.katalon.testops.api.model.Sort Maven / Gradle / Ivy
/*
* 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;
/**
* Sort
*/
@JsonPropertyOrder({
Sort.JSON_PROPERTY_SORTED,
Sort.JSON_PROPERTY_UNSORTED,
Sort.JSON_PROPERTY_EMPTY
})
@JsonTypeName("Sort")
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
public class Sort implements Serializable {
private static final long serialVersionUID = 1L;
public static final String JSON_PROPERTY_SORTED = "sorted";
private Boolean sorted;
public static final String JSON_PROPERTY_UNSORTED = "unsorted";
private Boolean unsorted;
public static final String JSON_PROPERTY_EMPTY = "empty";
private Boolean empty;
public Sort sorted(Boolean sorted) {
this.sorted = sorted;
return this;
}
/**
* Get sorted
* @return sorted
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_SORTED)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public Boolean getSorted() {
return sorted;
}
public void setSorted(Boolean sorted) {
this.sorted = sorted;
}
public Sort unsorted(Boolean unsorted) {
this.unsorted = unsorted;
return this;
}
/**
* Get unsorted
* @return unsorted
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_UNSORTED)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public Boolean getUnsorted() {
return unsorted;
}
public void setUnsorted(Boolean unsorted) {
this.unsorted = unsorted;
}
public Sort empty(Boolean empty) {
this.empty = empty;
return this;
}
/**
* Get empty
* @return empty
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_EMPTY)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public Boolean getEmpty() {
return empty;
}
public void setEmpty(Boolean empty) {
this.empty = empty;
}
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
Sort sort = (Sort) o;
return Objects.equals(this.sorted, sort.sorted) &&
Objects.equals(this.unsorted, sort.unsorted) &&
Objects.equals(this.empty, sort.empty);
}
@Override
public int hashCode() {
return Objects.hash(sorted, unsorted, empty);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class Sort {\n");
sb.append(" sorted: ").append(toIndentedString(sorted)).append("\n");
sb.append(" unsorted: ").append(toIndentedString(unsorted)).append("\n");
sb.append(" empty: ").append(toIndentedString(empty)).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 ");
}
}