com.factset.sdk.FactSetTickHistory.models.Pagination Maven / Gradle / Ivy
/*
* Tick History
* Tick History provides dynamic access to historical tick data for a specific security for specific dates or date range.
*
* The version of the OpenAPI document: 2.3.0
* 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.factset.sdk.FactSetTickHistory.models;
import java.util.Objects;
import java.util.Arrays;
import java.util.Map;
import java.util.HashMap;
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;
import com.factset.sdk.FactSetTickHistory.JSON;
/**
* List of pagination objects
*/
@ApiModel(description = "List of pagination objects")
@JsonPropertyOrder({
Pagination.JSON_PROPERTY_TOTAL,
Pagination.JSON_PROPERTY_IS_ESTIMATED_TOTAL
})
@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
public class Pagination implements Serializable {
private static final long serialVersionUID = 1L;
public static final String JSON_PROPERTY_TOTAL = "total";
private Integer total;
public static final String JSON_PROPERTY_IS_ESTIMATED_TOTAL = "isEstimatedTotal";
private Boolean isEstimatedTotal;
public Pagination() {
}
public Pagination total(Integer total) {
this.total = total;
return this;
}
/**
* Total number of files the API returns for a particular query
* @return total
**/
@jakarta.annotation.Nullable
@ApiModelProperty(value = "Total number of files the API returns for a particular query")
@JsonProperty(JSON_PROPERTY_TOTAL)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public Integer getTotal() {
return total;
}
@JsonProperty(JSON_PROPERTY_TOTAL)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setTotal(Integer total) {
this.total = total;
}
public Pagination isEstimatedTotal(Boolean isEstimatedTotal) {
this.isEstimatedTotal = isEstimatedTotal;
return this;
}
/**
* Boolean value that represents whether the total count of files returned is exact or an estimate. This is defaulted to False as the API should always return the exact count
* @return isEstimatedTotal
**/
@jakarta.annotation.Nullable
@ApiModelProperty(value = "Boolean value that represents whether the total count of files returned is exact or an estimate. This is defaulted to False as the API should always return the exact count")
@JsonProperty(JSON_PROPERTY_IS_ESTIMATED_TOTAL)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public Boolean getIsEstimatedTotal() {
return isEstimatedTotal;
}
@JsonProperty(JSON_PROPERTY_IS_ESTIMATED_TOTAL)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setIsEstimatedTotal(Boolean isEstimatedTotal) {
this.isEstimatedTotal = isEstimatedTotal;
}
/**
* Return true if this pagination object is equal to o.
*/
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
Pagination pagination = (Pagination) o;
return Objects.equals(this.total, pagination.total) &&
Objects.equals(this.isEstimatedTotal, pagination.isEstimatedTotal);
}
@Override
public int hashCode() {
return Objects.hash(total, isEstimatedTotal);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class Pagination {\n");
sb.append(" total: ").append(toIndentedString(total)).append("\n");
sb.append(" isEstimatedTotal: ").append(toIndentedString(isEstimatedTotal)).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 ");
}
}