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

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

The 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;

/**
 * ApprovalRequestResponseApprovalRequestComments
 */
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
public class ApprovalRequestResponseApprovalRequestComments {
  public static final String SERIALIZED_NAME_COMMENT = "comment";
  @SerializedName(SERIALIZED_NAME_COMMENT)
  private String comment;

  public static final String SERIALIZED_NAME_POSTED_AT = "posted_at";
  @SerializedName(SERIALIZED_NAME_POSTED_AT)
  private String postedAt;

  public static final String SERIALIZED_NAME_USER_ID = "user_id";
  @SerializedName(SERIALIZED_NAME_USER_ID)
  private Integer userId;

  public ApprovalRequestResponseApprovalRequestComments() { 
  }

  public ApprovalRequestResponseApprovalRequestComments comment(String comment) {
    
    this.comment = comment;
    return this;
  }

   /**
   * コメント内容
   * @return comment
  **/
  @javax.annotation.Nonnull
  @ApiModelProperty(example = "訂正をお願いします。", required = true, value = "コメント内容")

  public String getComment() {
    return comment;
  }


  public void setComment(String comment) {
    this.comment = comment;
  }


  public ApprovalRequestResponseApprovalRequestComments postedAt(String postedAt) {
    
    this.postedAt = postedAt;
    return this;
  }

   /**
   * コメント日時(ISO8601形式)
   * @return postedAt
  **/
  @javax.annotation.Nonnull
  @ApiModelProperty(example = "2019-12-17T18:30:24+09:00", required = true, value = "コメント日時(ISO8601形式)")

  public String getPostedAt() {
    return postedAt;
  }


  public void setPostedAt(String postedAt) {
    this.postedAt = postedAt;
  }


  public ApprovalRequestResponseApprovalRequestComments userId(Integer userId) {
    
    this.userId = userId;
    return this;
  }

   /**
   * ユーザーID
   * minimum: 1
   * maximum: 2147483647
   * @return userId
  **/
  @javax.annotation.Nonnull
  @ApiModelProperty(example = "1", required = true, value = "ユーザーID")

  public Integer getUserId() {
    return userId;
  }


  public void setUserId(Integer userId) {
    this.userId = userId;
  }


  @Override
  public boolean equals(Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    ApprovalRequestResponseApprovalRequestComments approvalRequestResponseApprovalRequestComments = (ApprovalRequestResponseApprovalRequestComments) o;
    return Objects.equals(this.comment, approvalRequestResponseApprovalRequestComments.comment) &&
        Objects.equals(this.postedAt, approvalRequestResponseApprovalRequestComments.postedAt) &&
        Objects.equals(this.userId, approvalRequestResponseApprovalRequestComments.userId);
  }

  @Override
  public int hashCode() {
    return Objects.hash(comment, postedAt, userId);
  }

  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class ApprovalRequestResponseApprovalRequestComments {\n");
    sb.append("    comment: ").append(toIndentedString(comment)).append("\n");
    sb.append("    postedAt: ").append(toIndentedString(postedAt)).append("\n");
    sb.append("    userId: ").append(toIndentedString(userId)).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