jp.co.freee.accounting.models.CompanyResponseCompanySections 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 org.openapitools.jackson.nullable.JsonNullable;
/**
* CompanyResponseCompanySections
*/
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
public class CompanyResponseCompanySections {
public static final String SERIALIZED_NAME_ID = "id";
@SerializedName(SERIALIZED_NAME_ID)
private Integer id;
public static final String SERIALIZED_NAME_NAME = "name";
@SerializedName(SERIALIZED_NAME_NAME)
private String name;
public static final String SERIALIZED_NAME_SHORTCUT1 = "shortcut1";
@SerializedName(SERIALIZED_NAME_SHORTCUT1)
private String shortcut1;
public static final String SERIALIZED_NAME_SHORTCUT2 = "shortcut2";
@SerializedName(SERIALIZED_NAME_SHORTCUT2)
private String shortcut2;
public CompanyResponseCompanySections() {
}
public CompanyResponseCompanySections 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 CompanyResponseCompanySections name(String name) {
this.name = name;
return this;
}
/**
* 部門名 (30文字以内)
* @return name
**/
@javax.annotation.Nonnull
@ApiModelProperty(example = "開発部門", required = true, value = "部門名 (30文字以内)")
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public CompanyResponseCompanySections shortcut1(String shortcut1) {
this.shortcut1 = shortcut1;
return this;
}
/**
* ショートカット1 (20文字以内)
* @return shortcut1
**/
@javax.annotation.Nullable
@ApiModelProperty(example = "DEVELOPER", value = "ショートカット1 (20文字以内)")
public String getShortcut1() {
return shortcut1;
}
public void setShortcut1(String shortcut1) {
this.shortcut1 = shortcut1;
}
public CompanyResponseCompanySections shortcut2(String shortcut2) {
this.shortcut2 = shortcut2;
return this;
}
/**
* ショートカット2 (20文字以内)
* @return shortcut2
**/
@javax.annotation.Nullable
@ApiModelProperty(example = "123", value = "ショートカット2 (20文字以内)")
public String getShortcut2() {
return shortcut2;
}
public void setShortcut2(String shortcut2) {
this.shortcut2 = shortcut2;
}
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
CompanyResponseCompanySections companyResponseCompanySections = (CompanyResponseCompanySections) o;
return Objects.equals(this.id, companyResponseCompanySections.id) &&
Objects.equals(this.name, companyResponseCompanySections.name) &&
Objects.equals(this.shortcut1, companyResponseCompanySections.shortcut1) &&
Objects.equals(this.shortcut2, companyResponseCompanySections.shortcut2);
}
private static boolean equalsNullable(JsonNullable a, JsonNullable b) {
return a == b || (a != null && b != null && a.isPresent() && b.isPresent() && Objects.deepEquals(a.get(), b.get()));
}
@Override
public int hashCode() {
return Objects.hash(id, name, shortcut1, shortcut2);
}
private static int hashCodeNullable(JsonNullable a) {
if (a == null) {
return 1;
}
return a.isPresent() ? Arrays.deepHashCode(new Object[]{a.get()}) : 31;
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class CompanyResponseCompanySections {\n");
sb.append(" id: ").append(toIndentedString(id)).append("\n");
sb.append(" name: ").append(toIndentedString(name)).append("\n");
sb.append(" shortcut1: ").append(toIndentedString(shortcut1)).append("\n");
sb.append(" shortcut2: ").append(toIndentedString(shortcut2)).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 ");
}
}