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

jp.co.freee.accounting.models.TrialCrSectionsResponseTrialCrSectionsSections Maven / Gradle / Ivy

There is a newer version: 2.29.0
Show newest version
/*
 * 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.TrialCrSectionsResponseTrialCrSectionsItems;
import jp.co.freee.accounting.models.TrialCrSectionsResponseTrialCrSectionsPartners;
import jp.co.freee.accounting.models.TrialCrSectionsResponseTrialCrSectionsSegment1Tags;
import jp.co.freee.accounting.models.TrialCrSectionsResponseTrialCrSectionsSegment2Tags;
import jp.co.freee.accounting.models.TrialCrSectionsResponseTrialCrSectionsSegment3Tags;

/**
 * TrialCrSectionsResponseTrialCrSectionsSections
 */
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
public class TrialCrSectionsResponseTrialCrSectionsSections {
  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 TrialCrSectionsResponseTrialCrSectionsSections() { 
  }

  public TrialCrSectionsResponseTrialCrSectionsSections 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 TrialCrSectionsResponseTrialCrSectionsSections id(Integer id) {
    
    this.id = id;
    return this;
  }

   /**
   * 部門ID
   * minimum: 0
   * 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 TrialCrSectionsResponseTrialCrSectionsSections items(List items) {
    
    this.items = items;
    return this;
  }

  public TrialCrSectionsResponseTrialCrSectionsSections addItemsItem(TrialCrSectionsResponseTrialCrSectionsItems 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 TrialCrSectionsResponseTrialCrSectionsSections 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 TrialCrSectionsResponseTrialCrSectionsSections partners(List partners) {
    
    this.partners = partners;
    return this;
  }

  public TrialCrSectionsResponseTrialCrSectionsSections addPartnersItem(TrialCrSectionsResponseTrialCrSectionsPartners 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 TrialCrSectionsResponseTrialCrSectionsSections segment1Tags(List segment1Tags) {
    
    this.segment1Tags = segment1Tags;
    return this;
  }

  public TrialCrSectionsResponseTrialCrSectionsSections addSegment1TagsItem(TrialCrSectionsResponseTrialCrSectionsSegment1Tags 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 TrialCrSectionsResponseTrialCrSectionsSections segment2Tags(List segment2Tags) {
    
    this.segment2Tags = segment2Tags;
    return this;
  }

  public TrialCrSectionsResponseTrialCrSectionsSections addSegment2TagsItem(TrialCrSectionsResponseTrialCrSectionsSegment2Tags 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 TrialCrSectionsResponseTrialCrSectionsSections segment3Tags(List segment3Tags) {
    
    this.segment3Tags = segment3Tags;
    return this;
  }

  public TrialCrSectionsResponseTrialCrSectionsSections addSegment3TagsItem(TrialCrSectionsResponseTrialCrSectionsSegment3Tags 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;
    }
    TrialCrSectionsResponseTrialCrSectionsSections trialCrSectionsResponseTrialCrSectionsSections = (TrialCrSectionsResponseTrialCrSectionsSections) o;
    return Objects.equals(this.closingBalance, trialCrSectionsResponseTrialCrSectionsSections.closingBalance) &&
        Objects.equals(this.id, trialCrSectionsResponseTrialCrSectionsSections.id) &&
        Objects.equals(this.items, trialCrSectionsResponseTrialCrSectionsSections.items) &&
        Objects.equals(this.name, trialCrSectionsResponseTrialCrSectionsSections.name) &&
        Objects.equals(this.partners, trialCrSectionsResponseTrialCrSectionsSections.partners) &&
        Objects.equals(this.segment1Tags, trialCrSectionsResponseTrialCrSectionsSections.segment1Tags) &&
        Objects.equals(this.segment2Tags, trialCrSectionsResponseTrialCrSectionsSections.segment2Tags) &&
        Objects.equals(this.segment3Tags, trialCrSectionsResponseTrialCrSectionsSections.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 TrialCrSectionsResponseTrialCrSectionsSections {\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    ");
  }

}





© 2015 - 2024 Weber Informatics LLC | Privacy Policy