
com.squareup.connect.models.ShiftSort Maven / Gradle / Ivy
/*
* Square Connect API
* Client library for accessing the Square Connect APIs
*
* OpenAPI spec version: 2.0
* Contact: [email protected]
*
* 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.squareup.connect.models;
import java.util.Objects;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
/**
* Sets the sort order of search results.
*/
@ApiModel(description = "Sets the sort order of search results.")
public class ShiftSort {
@JsonProperty("field")
private String field = null;
@JsonProperty("order")
private String order = null;
public ShiftSort field(String field) {
this.field = field;
return this;
}
/**
* The field to sort on. See [ShiftSortField](#type-shiftsortfield) for possible values
* @return field
**/
@ApiModelProperty(value = "The field to sort on. See [ShiftSortField](#type-shiftsortfield) for possible values")
public String getField() {
return field;
}
public void setField(String field) {
this.field = field;
}
public ShiftSort order(String order) {
this.order = order;
return this;
}
/**
* The order in which results are returned. Defaults to DESC. See [SortOrder](#type-sortorder) for possible values
* @return order
**/
@ApiModelProperty(value = "The order in which results are returned. Defaults to DESC. See [SortOrder](#type-sortorder) for possible values")
public String getOrder() {
return order;
}
public void setOrder(String order) {
this.order = order;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
ShiftSort shiftSort = (ShiftSort) o;
return Objects.equals(this.field, shiftSort.field) &&
Objects.equals(this.order, shiftSort.order);
}
@Override
public int hashCode() {
return Objects.hash(field, order);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class ShiftSort {\n");
sb.append(" field: ").append(toIndentedString(field)).append("\n");
sb.append(" order: ").append(toIndentedString(order)).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(java.lang.Object o) {
if (o == null) {
return "null";
}
return o.toString().replace("\n", "\n ");
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy