com.finbourne.luminesce.model.OrderByTermDesign Maven / Gradle / Ivy
/*
* FINBOURNE Luminesce Web API
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 1.13.202
* Contact: [email protected]
*
* 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.finbourne.luminesce.model;
import java.util.Objects;
import java.util.Arrays;
import com.finbourne.luminesce.model.OrderByDirection;
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;
/**
* A single clause within an Order BY
*/
@ApiModel(description = "A single clause within an Order BY")
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
public class OrderByTermDesign {
public static final String SERIALIZED_NAME_FIELD = "field";
@SerializedName(SERIALIZED_NAME_FIELD)
private String field;
public static final String SERIALIZED_NAME_DIRECTION = "direction";
@SerializedName(SERIALIZED_NAME_DIRECTION)
private OrderByDirection direction;
public OrderByTermDesign field(String field) {
this.field = field;
return this;
}
/**
* Name of the field to order by
* @return field
**/
@ApiModelProperty(required = true, value = "Name of the field to order by")
public String getField() {
return field;
}
public void setField(String field) {
this.field = field;
}
public OrderByTermDesign direction(OrderByDirection direction) {
this.direction = direction;
return this;
}
/**
* Get direction
* @return direction
**/
@ApiModelProperty(value = "")
public OrderByDirection getDirection() {
return direction;
}
public void setDirection(OrderByDirection direction) {
this.direction = direction;
}
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
return true;
}
@Override
public int hashCode() {
return super.hashCode();
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class OrderByTermDesign {\n");
sb.append(" field: ").append(toIndentedString(field)).append("\n");
sb.append(" direction: ").append(toIndentedString(direction)).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 ");
}
}