
Model.InlineResponse2005 Maven / Gradle / Ivy
/*
* CyberSource Merged Spec
* All CyberSource API specs merged together. These are available at https://developer.cybersource.com/api/reference/api-reference.html
*
* OpenAPI spec version: 0.0.1
*
*
* 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 Model;
import java.util.Objects;
import java.util.Arrays;
import Model.InlineResponse2005Embedded;
import Model.InlineResponse2005Links;
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 java.util.ArrayList;
import java.util.List;
/**
* InlineResponse2005
*/
public class InlineResponse2005 {
@SerializedName("_links")
private List links = null;
@SerializedName("object")
private String object = null;
@SerializedName("offset")
private Integer offset = null;
@SerializedName("limit")
private Integer limit = null;
@SerializedName("count")
private Integer count = null;
@SerializedName("total")
private Integer total = null;
@SerializedName("_embedded")
private InlineResponse2005Embedded embedded = null;
public InlineResponse2005 links(List links) {
this.links = links;
return this;
}
public InlineResponse2005 addLinksItem(InlineResponse2005Links linksItem) {
if (this.links == null) {
this.links = new ArrayList();
}
this.links.add(linksItem);
return this;
}
/**
* Get links
* @return links
**/
@ApiModelProperty(value = "")
public List getLinks() {
return links;
}
public void setLinks(List links) {
this.links = links;
}
public InlineResponse2005 object(String object) {
this.object = object;
return this;
}
/**
* Get object
* @return object
**/
@ApiModelProperty(example = "collection", value = "")
public String getObject() {
return object;
}
public void setObject(String object) {
this.object = object;
}
public InlineResponse2005 offset(Integer offset) {
this.offset = offset;
return this;
}
/**
* Get offset
* @return offset
**/
@ApiModelProperty(example = "0", value = "")
public Integer getOffset() {
return offset;
}
public void setOffset(Integer offset) {
this.offset = offset;
}
public InlineResponse2005 limit(Integer limit) {
this.limit = limit;
return this;
}
/**
* Get limit
* @return limit
**/
@ApiModelProperty(example = "20", value = "")
public Integer getLimit() {
return limit;
}
public void setLimit(Integer limit) {
this.limit = limit;
}
public InlineResponse2005 count(Integer count) {
this.count = count;
return this;
}
/**
* Get count
* @return count
**/
@ApiModelProperty(example = "1", value = "")
public Integer getCount() {
return count;
}
public void setCount(Integer count) {
this.count = count;
}
public InlineResponse2005 total(Integer total) {
this.total = total;
return this;
}
/**
* Get total
* @return total
**/
@ApiModelProperty(example = "1", value = "")
public Integer getTotal() {
return total;
}
public void setTotal(Integer total) {
this.total = total;
}
public InlineResponse2005 embedded(InlineResponse2005Embedded embedded) {
this.embedded = embedded;
return this;
}
/**
* Get embedded
* @return embedded
**/
@ApiModelProperty(value = "")
public InlineResponse2005Embedded getEmbedded() {
return embedded;
}
public void setEmbedded(InlineResponse2005Embedded embedded) {
this.embedded = embedded;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
InlineResponse2005 inlineResponse2005 = (InlineResponse2005) o;
return Objects.equals(this.links, inlineResponse2005.links) &&
Objects.equals(this.object, inlineResponse2005.object) &&
Objects.equals(this.offset, inlineResponse2005.offset) &&
Objects.equals(this.limit, inlineResponse2005.limit) &&
Objects.equals(this.count, inlineResponse2005.count) &&
Objects.equals(this.total, inlineResponse2005.total) &&
Objects.equals(this.embedded, inlineResponse2005.embedded);
}
@Override
public int hashCode() {
return Objects.hash(links, object, offset, limit, count, total, embedded);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class InlineResponse2005 {\n");
if (links != null) sb.append(" links: ").append(toIndentedString(links)).append("\n");
if (object != null) sb.append(" object: ").append(toIndentedString(object)).append("\n");
if (offset != null) sb.append(" offset: ").append(toIndentedString(offset)).append("\n");
if (limit != null) sb.append(" limit: ").append(toIndentedString(limit)).append("\n");
if (count != null) sb.append(" count: ").append(toIndentedString(count)).append("\n");
if (total != null) sb.append(" total: ").append(toIndentedString(total)).append("\n");
if (embedded != null) sb.append(" embedded: ").append(toIndentedString(embedded)).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