jp.co.freee.accounting.models.ApprovalRequestFormResponseApprovalRequestForm 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.ApprovalRequestFormResponseApprovalRequestFormParts;
/**
* ApprovalRequestFormResponseApprovalRequestForm
*/
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
public class ApprovalRequestFormResponseApprovalRequestForm {
public static final String SERIALIZED_NAME_COMPANY_ID = "company_id";
@SerializedName(SERIALIZED_NAME_COMPANY_ID)
private Integer companyId;
public static final String SERIALIZED_NAME_CREATED_DATE = "created_date";
@SerializedName(SERIALIZED_NAME_CREATED_DATE)
private String createdDate;
public static final String SERIALIZED_NAME_DESCRIPTION = "description";
@SerializedName(SERIALIZED_NAME_DESCRIPTION)
private String description;
public static final String SERIALIZED_NAME_FORM_ORDER = "form_order";
@SerializedName(SERIALIZED_NAME_FORM_ORDER)
private Integer formOrder;
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_PARTS = "parts";
@SerializedName(SERIALIZED_NAME_PARTS)
private List parts = null;
public static final String SERIALIZED_NAME_ROUTE_SETTING_COUNT = "route_setting_count";
@SerializedName(SERIALIZED_NAME_ROUTE_SETTING_COUNT)
private Integer routeSettingCount;
/**
* ステータス(draft: 申請で使用しない、active: 申請で使用する、deleted: 削除済み)
*/
@JsonAdapter(StatusEnum.Adapter.class)
public enum StatusEnum {
DRAFT("draft"),
ACTIVE("active"),
DELETED("deleted");
private String value;
StatusEnum(String value) {
this.value = value;
}
public String getValue() {
return value;
}
@Override
public String toString() {
return String.valueOf(value);
}
public static StatusEnum fromValue(String value) {
for (StatusEnum b : StatusEnum.values()) {
if (b.value.equals(value)) {
return b;
}
}
throw new IllegalArgumentException("Unexpected value '" + value + "'");
}
public static class Adapter extends TypeAdapter {
@Override
public void write(final JsonWriter jsonWriter, final StatusEnum enumeration) throws IOException {
jsonWriter.value(enumeration.getValue());
}
@Override
public StatusEnum read(final JsonReader jsonReader) throws IOException {
String value = jsonReader.nextString();
return StatusEnum.fromValue(value);
}
}
}
public static final String SERIALIZED_NAME_STATUS = "status";
@SerializedName(SERIALIZED_NAME_STATUS)
private StatusEnum status;
public ApprovalRequestFormResponseApprovalRequestForm() {
}
public ApprovalRequestFormResponseApprovalRequestForm companyId(Integer companyId) {
this.companyId = companyId;
return this;
}
/**
* 事業所ID
* minimum: 1
* maximum: 2147483647
* @return companyId
**/
@javax.annotation.Nonnull
@ApiModelProperty(example = "1", required = true, value = "事業所ID")
public Integer getCompanyId() {
return companyId;
}
public void setCompanyId(Integer companyId) {
this.companyId = companyId;
}
public ApprovalRequestFormResponseApprovalRequestForm createdDate(String createdDate) {
this.createdDate = createdDate;
return this;
}
/**
* 作成日時
* @return createdDate
**/
@javax.annotation.Nonnull
@ApiModelProperty(example = "2019-12-17T13:47:24+09:00", required = true, value = "作成日時")
public String getCreatedDate() {
return createdDate;
}
public void setCreatedDate(String createdDate) {
this.createdDate = createdDate;
}
public ApprovalRequestFormResponseApprovalRequestForm description(String description) {
this.description = description;
return this;
}
/**
* 申請フォームの説明
* @return description
**/
@javax.annotation.Nonnull
@ApiModelProperty(example = "申請フォームの説明", required = true, value = "申請フォームの説明")
public String getDescription() {
return description;
}
public void setDescription(String description) {
this.description = description;
}
public ApprovalRequestFormResponseApprovalRequestForm formOrder(Integer formOrder) {
this.formOrder = formOrder;
return this;
}
/**
* 表示順(申請者が選択する申請フォームの表示順を設定できます。小さい数ほど上位に表示されます。(0を除く整数のみ。マイナス不可)未入力の場合、表示順が後ろになります。同じ数字が入力された場合、登録順で表示されます。)
* minimum: 1
* maximum: 1000
* @return formOrder
**/
@javax.annotation.Nullable
@ApiModelProperty(example = "1", required = true, value = "表示順(申請者が選択する申請フォームの表示順を設定できます。小さい数ほど上位に表示されます。(0を除く整数のみ。マイナス不可)未入力の場合、表示順が後ろになります。同じ数字が入力された場合、登録順で表示されます。)")
public Integer getFormOrder() {
return formOrder;
}
public void setFormOrder(Integer formOrder) {
this.formOrder = formOrder;
}
public ApprovalRequestFormResponseApprovalRequestForm 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 ApprovalRequestFormResponseApprovalRequestForm name(String name) {
this.name = name;
return this;
}
/**
* 申請フォームの名前
* @return name
**/
@javax.annotation.Nonnull
@ApiModelProperty(example = "申請フォームの名前", required = true, value = "申請フォームの名前")
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public ApprovalRequestFormResponseApprovalRequestForm parts(List parts) {
this.parts = parts;
return this;
}
public ApprovalRequestFormResponseApprovalRequestForm addPartsItem(ApprovalRequestFormResponseApprovalRequestFormParts partsItem) {
if (this.parts == null) {
this.parts = new ArrayList<>();
}
this.parts.add(partsItem);
return this;
}
/**
* 申請フォームの項目
* @return parts
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "申請フォームの項目")
public List getParts() {
return parts;
}
public void setParts(List parts) {
this.parts = parts;
}
public ApprovalRequestFormResponseApprovalRequestForm routeSettingCount(Integer routeSettingCount) {
this.routeSettingCount = routeSettingCount;
return this;
}
/**
* 適用された経路数
* minimum: 0
* maximum: 2147483647
* @return routeSettingCount
**/
@javax.annotation.Nonnull
@ApiModelProperty(example = "1", required = true, value = "適用された経路数")
public Integer getRouteSettingCount() {
return routeSettingCount;
}
public void setRouteSettingCount(Integer routeSettingCount) {
this.routeSettingCount = routeSettingCount;
}
public ApprovalRequestFormResponseApprovalRequestForm status(StatusEnum status) {
this.status = status;
return this;
}
/**
* ステータス(draft: 申請で使用しない、active: 申請で使用する、deleted: 削除済み)
* @return status
**/
@javax.annotation.Nonnull
@ApiModelProperty(example = "active", required = true, value = "ステータス(draft: 申請で使用しない、active: 申請で使用する、deleted: 削除済み)")
public StatusEnum getStatus() {
return status;
}
public void setStatus(StatusEnum status) {
this.status = status;
}
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
ApprovalRequestFormResponseApprovalRequestForm approvalRequestFormResponseApprovalRequestForm = (ApprovalRequestFormResponseApprovalRequestForm) o;
return Objects.equals(this.companyId, approvalRequestFormResponseApprovalRequestForm.companyId) &&
Objects.equals(this.createdDate, approvalRequestFormResponseApprovalRequestForm.createdDate) &&
Objects.equals(this.description, approvalRequestFormResponseApprovalRequestForm.description) &&
Objects.equals(this.formOrder, approvalRequestFormResponseApprovalRequestForm.formOrder) &&
Objects.equals(this.id, approvalRequestFormResponseApprovalRequestForm.id) &&
Objects.equals(this.name, approvalRequestFormResponseApprovalRequestForm.name) &&
Objects.equals(this.parts, approvalRequestFormResponseApprovalRequestForm.parts) &&
Objects.equals(this.routeSettingCount, approvalRequestFormResponseApprovalRequestForm.routeSettingCount) &&
Objects.equals(this.status, approvalRequestFormResponseApprovalRequestForm.status);
}
@Override
public int hashCode() {
return Objects.hash(companyId, createdDate, description, formOrder, id, name, parts, routeSettingCount, status);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class ApprovalRequestFormResponseApprovalRequestForm {\n");
sb.append(" companyId: ").append(toIndentedString(companyId)).append("\n");
sb.append(" createdDate: ").append(toIndentedString(createdDate)).append("\n");
sb.append(" description: ").append(toIndentedString(description)).append("\n");
sb.append(" formOrder: ").append(toIndentedString(formOrder)).append("\n");
sb.append(" id: ").append(toIndentedString(id)).append("\n");
sb.append(" name: ").append(toIndentedString(name)).append("\n");
sb.append(" parts: ").append(toIndentedString(parts)).append("\n");
sb.append(" routeSettingCount: ").append(toIndentedString(routeSettingCount)).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(Object o) {
if (o == null) {
return "null";
}
return o.toString().replace("\n", "\n ");
}
}