jp.co.freee.accounting.models.SelectablesIndexResponse Maven / Gradle / Ivy
/*
* freee API
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: v1.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
package jp.co.freee.accounting.models;
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 java.util.ArrayList;
import java.util.List;
import jp.co.freee.accounting.models.SelectablesIndexResponseAccountCategories;
import jp.co.freee.accounting.models.SelectablesIndexResponseAccountGroups;
/**
* SelectablesIndexResponse
*/
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
public class SelectablesIndexResponse {
public static final String SERIALIZED_NAME_ACCOUNT_CATEGORIES = "account_categories";
@SerializedName(SERIALIZED_NAME_ACCOUNT_CATEGORIES)
private List accountCategories = null;
public static final String SERIALIZED_NAME_ACCOUNT_GROUPS = "account_groups";
@SerializedName(SERIALIZED_NAME_ACCOUNT_GROUPS)
private List accountGroups = null;
public SelectablesIndexResponse() {
}
public SelectablesIndexResponse accountCategories(List accountCategories) {
this.accountCategories = accountCategories;
return this;
}
public SelectablesIndexResponse addAccountCategoriesItem(SelectablesIndexResponseAccountCategories accountCategoriesItem) {
if (this.accountCategories == null) {
this.accountCategories = new ArrayList<>();
}
this.accountCategories.add(accountCategoriesItem);
return this;
}
/**
* Get accountCategories
* @return accountCategories
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
public List getAccountCategories() {
return accountCategories;
}
public void setAccountCategories(List accountCategories) {
this.accountCategories = accountCategories;
}
public SelectablesIndexResponse accountGroups(List accountGroups) {
this.accountGroups = accountGroups;
return this;
}
public SelectablesIndexResponse addAccountGroupsItem(SelectablesIndexResponseAccountGroups accountGroupsItem) {
if (this.accountGroups == null) {
this.accountGroups = new ArrayList<>();
}
this.accountGroups.add(accountGroupsItem);
return this;
}
/**
* 決算書表示名(小カテゴリー)
* @return accountGroups
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "決算書表示名(小カテゴリー)")
public List getAccountGroups() {
return accountGroups;
}
public void setAccountGroups(List accountGroups) {
this.accountGroups = accountGroups;
}
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
SelectablesIndexResponse selectablesIndexResponse = (SelectablesIndexResponse) o;
return Objects.equals(this.accountCategories, selectablesIndexResponse.accountCategories) &&
Objects.equals(this.accountGroups, selectablesIndexResponse.accountGroups);
}
@Override
public int hashCode() {
return Objects.hash(accountCategories, accountGroups);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class SelectablesIndexResponse {\n");
sb.append(" accountCategories: ").append(toIndentedString(accountCategories)).append("\n");
sb.append(" accountGroups: ").append(toIndentedString(accountGroups)).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 ");
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy