jp.co.freee.accounting.models.TrialPlSectionsResponseTrialPlSectionsSections Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of freee-accounting-sdk Show documentation
Show all versions of freee-accounting-sdk Show documentation
freee accounting client SDK for Java
/*
* 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.TrialPlSectionsResponseTrialPlSectionsItems;
import jp.co.freee.accounting.models.TrialPlSectionsResponseTrialPlSectionsPartners;
import jp.co.freee.accounting.models.TrialPlSectionsResponseTrialPlSectionsSegment1Tags;
import jp.co.freee.accounting.models.TrialPlSectionsResponseTrialPlSectionsSegment2Tags;
import jp.co.freee.accounting.models.TrialPlSectionsResponseTrialPlSectionsSegment3Tags;
/**
* TrialPlSectionsResponseTrialPlSectionsSections
*/
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
public class TrialPlSectionsResponseTrialPlSectionsSections {
public static final String SERIALIZED_NAME_CLOSING_BALANCE = "closing_balance";
@SerializedName(SERIALIZED_NAME_CLOSING_BALANCE)
private Integer closingBalance;
public static final String SERIALIZED_NAME_ID = "id";
@SerializedName(SERIALIZED_NAME_ID)
private Integer id;
public static final String SERIALIZED_NAME_ITEMS = "items";
@SerializedName(SERIALIZED_NAME_ITEMS)
private List items = null;
public static final String SERIALIZED_NAME_NAME = "name";
@SerializedName(SERIALIZED_NAME_NAME)
private String name;
public static final String SERIALIZED_NAME_PARTNERS = "partners";
@SerializedName(SERIALIZED_NAME_PARTNERS)
private List partners = null;
public static final String SERIALIZED_NAME_SEGMENT1_TAGS = "segment_1_tags";
@SerializedName(SERIALIZED_NAME_SEGMENT1_TAGS)
private List segment1Tags = null;
public static final String SERIALIZED_NAME_SEGMENT2_TAGS = "segment_2_tags";
@SerializedName(SERIALIZED_NAME_SEGMENT2_TAGS)
private List segment2Tags = null;
public static final String SERIALIZED_NAME_SEGMENT3_TAGS = "segment_3_tags";
@SerializedName(SERIALIZED_NAME_SEGMENT3_TAGS)
private List segment3Tags = null;
public TrialPlSectionsResponseTrialPlSectionsSections() {
}
public TrialPlSectionsResponseTrialPlSectionsSections closingBalance(Integer closingBalance) {
this.closingBalance = closingBalance;
return this;
}
/**
* 期末残高
* @return closingBalance
**/
@javax.annotation.Nullable
@ApiModelProperty(example = "-25920", value = "期末残高")
public Integer getClosingBalance() {
return closingBalance;
}
public void setClosingBalance(Integer closingBalance) {
this.closingBalance = closingBalance;
}
public TrialPlSectionsResponseTrialPlSectionsSections id(Integer id) {
this.id = id;
return this;
}
/**
* 部門ID
* minimum: 1
* maximum: 2147483647
* @return id
**/
@javax.annotation.Nonnull
@ApiModelProperty(example = "1", required = true, value = "部門ID")
public Integer getId() {
return id;
}
public void setId(Integer id) {
this.id = id;
}
public TrialPlSectionsResponseTrialPlSectionsSections items(List items) {
this.items = items;
return this;
}
public TrialPlSectionsResponseTrialPlSectionsSections addItemsItem(TrialPlSectionsResponseTrialPlSectionsItems itemsItem) {
if (this.items == null) {
this.items = new ArrayList<>();
}
this.items.add(itemsItem);
return this;
}
/**
* breakdown_display_type:item, account_item_display_type:account_item指定時のみ含まれる
* @return items
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "breakdown_display_type:item, account_item_display_type:account_item指定時のみ含まれる")
public List getItems() {
return items;
}
public void setItems(List items) {
this.items = items;
}
public TrialPlSectionsResponseTrialPlSectionsSections name(String name) {
this.name = name;
return this;
}
/**
* 部門名
* @return name
**/
@javax.annotation.Nullable
@ApiModelProperty(example = "開発部門", value = "部門名")
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public TrialPlSectionsResponseTrialPlSectionsSections partners(List partners) {
this.partners = partners;
return this;
}
public TrialPlSectionsResponseTrialPlSectionsSections addPartnersItem(TrialPlSectionsResponseTrialPlSectionsPartners partnersItem) {
if (this.partners == null) {
this.partners = new ArrayList<>();
}
this.partners.add(partnersItem);
return this;
}
/**
* breakdown_display_type:partner, account_item_display_type:account_item指定時のみ含まれる
* @return partners
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "breakdown_display_type:partner, account_item_display_type:account_item指定時のみ含まれる")
public List getPartners() {
return partners;
}
public void setPartners(List partners) {
this.partners = partners;
}
public TrialPlSectionsResponseTrialPlSectionsSections segment1Tags(List segment1Tags) {
this.segment1Tags = segment1Tags;
return this;
}
public TrialPlSectionsResponseTrialPlSectionsSections addSegment1TagsItem(TrialPlSectionsResponseTrialPlSectionsSegment1Tags segment1TagsItem) {
if (this.segment1Tags == null) {
this.segment1Tags = new ArrayList<>();
}
this.segment1Tags.add(segment1TagsItem);
return this;
}
/**
* breakdown_display_type:segment_1_tag, account_item_display_type:account_item指定時のみ含まれる
* @return segment1Tags
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "breakdown_display_type:segment_1_tag, account_item_display_type:account_item指定時のみ含まれる")
public List getSegment1Tags() {
return segment1Tags;
}
public void setSegment1Tags(List segment1Tags) {
this.segment1Tags = segment1Tags;
}
public TrialPlSectionsResponseTrialPlSectionsSections segment2Tags(List segment2Tags) {
this.segment2Tags = segment2Tags;
return this;
}
public TrialPlSectionsResponseTrialPlSectionsSections addSegment2TagsItem(TrialPlSectionsResponseTrialPlSectionsSegment2Tags segment2TagsItem) {
if (this.segment2Tags == null) {
this.segment2Tags = new ArrayList<>();
}
this.segment2Tags.add(segment2TagsItem);
return this;
}
/**
* breakdown_display_type:segment_2_tag, account_item_display_type:account_item指定時のみ含まれる
* @return segment2Tags
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "breakdown_display_type:segment_2_tag, account_item_display_type:account_item指定時のみ含まれる")
public List getSegment2Tags() {
return segment2Tags;
}
public void setSegment2Tags(List segment2Tags) {
this.segment2Tags = segment2Tags;
}
public TrialPlSectionsResponseTrialPlSectionsSections segment3Tags(List segment3Tags) {
this.segment3Tags = segment3Tags;
return this;
}
public TrialPlSectionsResponseTrialPlSectionsSections addSegment3TagsItem(TrialPlSectionsResponseTrialPlSectionsSegment3Tags segment3TagsItem) {
if (this.segment3Tags == null) {
this.segment3Tags = new ArrayList<>();
}
this.segment3Tags.add(segment3TagsItem);
return this;
}
/**
* breakdown_display_type:segment_3_tag, account_item_display_type:account_item指定時のみ含まれる
* @return segment3Tags
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "breakdown_display_type:segment_3_tag, account_item_display_type:account_item指定時のみ含まれる")
public List getSegment3Tags() {
return segment3Tags;
}
public void setSegment3Tags(List segment3Tags) {
this.segment3Tags = segment3Tags;
}
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
TrialPlSectionsResponseTrialPlSectionsSections trialPlSectionsResponseTrialPlSectionsSections = (TrialPlSectionsResponseTrialPlSectionsSections) o;
return Objects.equals(this.closingBalance, trialPlSectionsResponseTrialPlSectionsSections.closingBalance) &&
Objects.equals(this.id, trialPlSectionsResponseTrialPlSectionsSections.id) &&
Objects.equals(this.items, trialPlSectionsResponseTrialPlSectionsSections.items) &&
Objects.equals(this.name, trialPlSectionsResponseTrialPlSectionsSections.name) &&
Objects.equals(this.partners, trialPlSectionsResponseTrialPlSectionsSections.partners) &&
Objects.equals(this.segment1Tags, trialPlSectionsResponseTrialPlSectionsSections.segment1Tags) &&
Objects.equals(this.segment2Tags, trialPlSectionsResponseTrialPlSectionsSections.segment2Tags) &&
Objects.equals(this.segment3Tags, trialPlSectionsResponseTrialPlSectionsSections.segment3Tags);
}
@Override
public int hashCode() {
return Objects.hash(closingBalance, id, items, name, partners, segment1Tags, segment2Tags, segment3Tags);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class TrialPlSectionsResponseTrialPlSectionsSections {\n");
sb.append(" closingBalance: ").append(toIndentedString(closingBalance)).append("\n");
sb.append(" id: ").append(toIndentedString(id)).append("\n");
sb.append(" items: ").append(toIndentedString(items)).append("\n");
sb.append(" name: ").append(toIndentedString(name)).append("\n");
sb.append(" partners: ").append(toIndentedString(partners)).append("\n");
sb.append(" segment1Tags: ").append(toIndentedString(segment1Tags)).append("\n");
sb.append(" segment2Tags: ").append(toIndentedString(segment2Tags)).append("\n");
sb.append(" segment3Tags: ").append(toIndentedString(segment3Tags)).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 ");
}
}