com.volcengine.billing.model.ListFinancialRelationRequest Maven / Gradle / Ivy
/*
* billing
* No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
*
* OpenAPI spec version: common-version
*
*
* 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.volcengine.billing.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.v3.oas.annotations.media.Schema;
import java.io.IOException;
import java.util.ArrayList;
import java.util.List;
import javax.validation.constraints.*;
import javax.validation.Valid;
/**
* ListFinancialRelationRequest
*/
public class ListFinancialRelationRequest {
@SerializedName("AccountIDSearchList")
private List accountIDSearchList = null;
@SerializedName("Limit")
private Integer limit = null;
@SerializedName("Offset")
private Integer offset = null;
@SerializedName("Relation")
private List relation = null;
@SerializedName("Status")
private List status = null;
public ListFinancialRelationRequest accountIDSearchList(List accountIDSearchList) {
this.accountIDSearchList = accountIDSearchList;
return this;
}
public ListFinancialRelationRequest addAccountIDSearchListItem(String accountIDSearchListItem) {
if (this.accountIDSearchList == null) {
this.accountIDSearchList = new ArrayList();
}
this.accountIDSearchList.add(accountIDSearchListItem);
return this;
}
/**
* Get accountIDSearchList
* @return accountIDSearchList
**/
@Schema(description = "")
public List getAccountIDSearchList() {
return accountIDSearchList;
}
public void setAccountIDSearchList(List accountIDSearchList) {
this.accountIDSearchList = accountIDSearchList;
}
public ListFinancialRelationRequest limit(Integer limit) {
this.limit = limit;
return this;
}
/**
* Get limit
* @return limit
**/
@Schema(description = "")
public Integer getLimit() {
return limit;
}
public void setLimit(Integer limit) {
this.limit = limit;
}
public ListFinancialRelationRequest offset(Integer offset) {
this.offset = offset;
return this;
}
/**
* Get offset
* @return offset
**/
@Schema(description = "")
public Integer getOffset() {
return offset;
}
public void setOffset(Integer offset) {
this.offset = offset;
}
public ListFinancialRelationRequest relation(List relation) {
this.relation = relation;
return this;
}
public ListFinancialRelationRequest addRelationItem(String relationItem) {
if (this.relation == null) {
this.relation = new ArrayList();
}
this.relation.add(relationItem);
return this;
}
/**
* Get relation
* @return relation
**/
@Schema(description = "")
public List getRelation() {
return relation;
}
public void setRelation(List relation) {
this.relation = relation;
}
public ListFinancialRelationRequest status(List status) {
this.status = status;
return this;
}
public ListFinancialRelationRequest addStatusItem(String statusItem) {
if (this.status == null) {
this.status = new ArrayList();
}
this.status.add(statusItem);
return this;
}
/**
* Get status
* @return status
**/
@Schema(description = "")
public List getStatus() {
return status;
}
public void setStatus(List status) {
this.status = status;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
ListFinancialRelationRequest listFinancialRelationRequest = (ListFinancialRelationRequest) o;
return Objects.equals(this.accountIDSearchList, listFinancialRelationRequest.accountIDSearchList) &&
Objects.equals(this.limit, listFinancialRelationRequest.limit) &&
Objects.equals(this.offset, listFinancialRelationRequest.offset) &&
Objects.equals(this.relation, listFinancialRelationRequest.relation) &&
Objects.equals(this.status, listFinancialRelationRequest.status);
}
@Override
public int hashCode() {
return Objects.hash(accountIDSearchList, limit, offset, relation, status);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class ListFinancialRelationRequest {\n");
sb.append(" accountIDSearchList: ").append(toIndentedString(accountIDSearchList)).append("\n");
sb.append(" limit: ").append(toIndentedString(limit)).append("\n");
sb.append(" offset: ").append(toIndentedString(offset)).append("\n");
sb.append(" relation: ").append(toIndentedString(relation)).append("\n");
sb.append(" status: ").append(toIndentedString(status)).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 ");
}
}