All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.lob.model.BuckslipOrdersList Maven / Gradle / Ivy

The newest version!
/*
 * Lob
 * The Lob API is organized around REST. Our API is designed to have predictable, resource-oriented URLs and uses HTTP response codes to indicate any API errors. 

Looking for our [previous documentation](https://lob.github.io/legacy-docs/)? * * The version of the OpenAPI document: 1.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.lob.model; import java.util.Objects; import java.util.Arrays; 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; import org.openapitools.jackson.nullable.JsonNullable; import com.google.gson.Gson; import java.util.HashMap; import java.util.Map; /** * BuckslipOrdersList */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") public class BuckslipOrdersList { public static final String SERIALIZED_NAME_OBJECT = "object"; @SerializedName(SERIALIZED_NAME_OBJECT) private String _object; /** * Value is type of resource. * @return _object **/ @javax.annotation.Nullable @ApiModelProperty(value = "Value is type of resource.") public String getObject() { return _object; } public static final String SERIALIZED_NAME_NEXT_URL = "next_url"; @SerializedName(SERIALIZED_NAME_NEXT_URL) private String nextUrl; /** * Url of next page of items in list. * @return nextUrl **/ @javax.annotation.Nullable @ApiModelProperty(value = "Url of next page of items in list.") public String getNextUrl() { return nextUrl; } public static final String SERIALIZED_NAME_PREVIOUS_URL = "previous_url"; @SerializedName(SERIALIZED_NAME_PREVIOUS_URL) private String previousUrl; /** * Url of previous page of items in list. * @return previousUrl **/ @javax.annotation.Nullable @ApiModelProperty(value = "Url of previous page of items in list.") public String getPreviousUrl() { return previousUrl; } public static final String SERIALIZED_NAME_COUNT = "count"; @SerializedName(SERIALIZED_NAME_COUNT) private Integer count; /** * number of resources in a set * @return count **/ @javax.annotation.Nullable @ApiModelProperty(value = "number of resources in a set") public Integer getCount() { return count; } public static final String SERIALIZED_NAME_TOTAL_COUNT = "total_count"; @SerializedName(SERIALIZED_NAME_TOTAL_COUNT) private Integer totalCount; /** * indicates the total number of records. Provided when the request specifies an \"include\" query parameter * @return totalCount **/ @javax.annotation.Nullable @ApiModelProperty(value = "indicates the total number of records. Provided when the request specifies an \"include\" query parameter") public Integer getTotalCount() { return totalCount; } /* public BuckslipOrdersList _object(String _object) { this._object = _object; return this; } */ public void setObject(String _object) { this._object = _object; } /* public BuckslipOrdersList nextUrl(String nextUrl) { this.nextUrl = nextUrl; return this; } */ public void setNextUrl(String nextUrl) { this.nextUrl = nextUrl; } /* public BuckslipOrdersList previousUrl(String previousUrl) { this.previousUrl = previousUrl; return this; } */ public void setPreviousUrl(String previousUrl) { this.previousUrl = previousUrl; } /* public BuckslipOrdersList count(Integer count) { this.count = count; return this; } */ public void setCount(Integer count) { this.count = count; } /* public BuckslipOrdersList totalCount(Integer totalCount) { this.totalCount = totalCount; return this; } */ public void setTotalCount(Integer totalCount) { this.totalCount = totalCount; } @Override public boolean equals(Object o) { if (this == o) { return true; } if (o == null || getClass() != o.getClass()) { return false; } BuckslipOrdersList buckslipOrdersList = (BuckslipOrdersList) o; return Objects.equals(this._object, buckslipOrdersList._object) && Objects.equals(this.nextUrl, buckslipOrdersList.nextUrl) && Objects.equals(this.previousUrl, buckslipOrdersList.previousUrl) && Objects.equals(this.count, buckslipOrdersList.count) && Objects.equals(this.totalCount, buckslipOrdersList.totalCount); } private static boolean equalsNullable(JsonNullable a, JsonNullable b) { return a == b || (a != null && b != null && a.isPresent() && b.isPresent() && Objects.deepEquals(a.get(), b.get())); } @Override public int hashCode() { return Objects.hash(_object, nextUrl, previousUrl, count, totalCount); } private static int hashCodeNullable(JsonNullable a) { if (a == null) { return 1; } return a.isPresent() ? Arrays.deepHashCode(new Object[]{a.get()}) : 31; } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{\n"); sb.append(" _object: ").append(toIndentedString(_object)).append("\n"); sb.append(" nextUrl: ").append(toIndentedString(nextUrl)).append("\n"); sb.append(" previousUrl: ").append(toIndentedString(previousUrl)).append("\n"); sb.append(" count: ").append(toIndentedString(count)).append("\n"); sb.append(" totalCount: ").append(toIndentedString(totalCount)).append("\n"); sb.append("}"); return sb.toString(); } public Map toMap() { Map localMap = new HashMap(); localMap.put("object", _object); localMap.put("next_url", nextUrl); localMap.put("previous_url", previousUrl); localMap.put("count", count); localMap.put("total_count", totalCount); return localMap; } /** * 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 "); } }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy