/*
 * OpenAPI Petstore
 * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
 *
 * The version of the OpenAPI document: 1.0.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 org.openapitools.model;

import java.util.Objects;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.File;
import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
import javax.validation.constraints.*;
import javax.validation.Valid;

/**
 * InlineObject3
 */
@JsonPropertyOrder({
  InlineObject3.JSON_PROPERTY_INTEGER,
  InlineObject3.JSON_PROPERTY_INT32,
  InlineObject3.JSON_PROPERTY_INT64,
  InlineObject3.JSON_PROPERTY_NUMBER,
  InlineObject3.JSON_PROPERTY_FLOAT,
  InlineObject3.JSON_PROPERTY_DOUBLE,
  InlineObject3.JSON_PROPERTY_STRING,
  InlineObject3.JSON_PROPERTY_PATTERN_WITHOUT_DELIMITER,
  InlineObject3.JSON_PROPERTY_BYTE,
  InlineObject3.JSON_PROPERTY_BINARY,
  InlineObject3.JSON_PROPERTY_DATE,
  InlineObject3.JSON_PROPERTY_DATE_TIME,
  InlineObject3.JSON_PROPERTY_PASSWORD,
  InlineObject3.JSON_PROPERTY_CALLBACK
})
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaJerseyServerCodegen")
public class InlineObject3   {
  public static final String JSON_PROPERTY_INTEGER = "integer";
  @JsonProperty(JSON_PROPERTY_INTEGER)
  private Integer integer;

  public static final String JSON_PROPERTY_INT32 = "int32";
  @JsonProperty(JSON_PROPERTY_INT32)
  private Integer int32;

  public static final String JSON_PROPERTY_INT64 = "int64";
  @JsonProperty(JSON_PROPERTY_INT64)
  private Long int64;

  public static final String JSON_PROPERTY_NUMBER = "number";
  @JsonProperty(JSON_PROPERTY_NUMBER)
  private BigDecimal number;

  public static final String JSON_PROPERTY_FLOAT = "float";
  @JsonProperty(JSON_PROPERTY_FLOAT)
  private Float _float;

  public static final String JSON_PROPERTY_DOUBLE = "double";
  @JsonProperty(JSON_PROPERTY_DOUBLE)
  private Double _double;

  public static final String JSON_PROPERTY_STRING = "string";
  @JsonProperty(JSON_PROPERTY_STRING)
  private String string;

  public static final String JSON_PROPERTY_PATTERN_WITHOUT_DELIMITER = "pattern_without_delimiter";
  @JsonProperty(JSON_PROPERTY_PATTERN_WITHOUT_DELIMITER)
  private String patternWithoutDelimiter;

  public static final String JSON_PROPERTY_BYTE = "byte";
  @JsonProperty(JSON_PROPERTY_BYTE)
  private byte[] _byte;

  public static final String JSON_PROPERTY_BINARY = "binary";
  @JsonProperty(JSON_PROPERTY_BINARY)
  private File binary;

  public static final String JSON_PROPERTY_DATE = "date";
  @JsonProperty(JSON_PROPERTY_DATE)
  private Date date;

  public static final String JSON_PROPERTY_DATE_TIME = "dateTime";
  @JsonProperty(JSON_PROPERTY_DATE_TIME)
  private Date dateTime;

  public static final String JSON_PROPERTY_PASSWORD = "password";
  @JsonProperty(JSON_PROPERTY_PASSWORD)
  private String password;

  public static final String JSON_PROPERTY_CALLBACK = "callback";
  @JsonProperty(JSON_PROPERTY_CALLBACK)
  private String callback;

  public InlineObject3 integer(Integer integer) {
    this.integer = integer;
    return this;
  }

  /**
   * None
   * minimum: 10
   * maximum: 100
   * @return integer
   **/
  @JsonProperty("integer")
  @ApiModelProperty(value = "None")
   @Min(10) @Max(100)
  public Integer getInteger() {
    return integer;
  }

  public void setInteger(Integer integer) {
    this.integer = integer;
  }

  public InlineObject3 int32(Integer int32) {
    this.int32 = int32;
    return this;
  }

  /**
   * None
   * minimum: 20
   * maximum: 200
   * @return int32
   **/
  @JsonProperty("int32")
  @ApiModelProperty(value = "None")
   @Min(20) @Max(200)
  public Integer getInt32() {
    return int32;
  }

  public void setInt32(Integer int32) {
    this.int32 = int32;
  }

  public InlineObject3 int64(Long int64) {
    this.int64 = int64;
    return this;
  }

  /**
   * None
   * @return int64
   **/
  @JsonProperty("int64")
  @ApiModelProperty(value = "None")
  
  public Long getInt64() {
    return int64;
  }

  public void setInt64(Long int64) {
    this.int64 = int64;
  }

  public InlineObject3 number(BigDecimal number) {
    this.number = number;
    return this;
  }

  /**
   * None
   * minimum: 32.1
   * maximum: 543.2
   * @return number
   **/
  @JsonProperty("number")
  @ApiModelProperty(required = true, value = "None")
  @NotNull @Valid  @DecimalMin("32.1") @DecimalMax("543.2")
  public BigDecimal getNumber() {
    return number;
  }

  public void setNumber(BigDecimal number) {
    this.number = number;
  }

  public InlineObject3 _float(Float _float) {
    this._float = _float;
    return this;
  }

  /**
   * None
   * maximum: 987.6
   * @return _float
   **/
  @JsonProperty("float")
  @ApiModelProperty(value = "None")
   @DecimalMax("987.6")
  public Float getFloat() {
    return _float;
  }

  public void setFloat(Float _float) {
    this._float = _float;
  }

  public InlineObject3 _double(Double _double) {
    this._double = _double;
    return this;
  }

  /**
   * None
   * minimum: 67.8
   * maximum: 123.4
   * @return _double
   **/
  @JsonProperty("double")
  @ApiModelProperty(required = true, value = "None")
  @NotNull  @DecimalMin("67.8") @DecimalMax("123.4")
  public Double getDouble() {
    return _double;
  }

  public void setDouble(Double _double) {
    this._double = _double;
  }

  public InlineObject3 string(String string) {
    this.string = string;
    return this;
  }

  /**
   * None
   * @return string
   **/
  @JsonProperty("string")
  @ApiModelProperty(value = "None")
   @Pattern(regexp="/[a-z]/i")
  public String getString() {
    return string;
  }

  public void setString(String string) {
    this.string = string;
  }

  public InlineObject3 patternWithoutDelimiter(String patternWithoutDelimiter) {
    this.patternWithoutDelimiter = patternWithoutDelimiter;
    return this;
  }

  /**
   * None
   * @return patternWithoutDelimiter
   **/
  @JsonProperty("pattern_without_delimiter")
  @ApiModelProperty(required = true, value = "None")
  @NotNull  @Pattern(regexp="^[A-Z].*")
  public String getPatternWithoutDelimiter() {
    return patternWithoutDelimiter;
  }

  public void setPatternWithoutDelimiter(String patternWithoutDelimiter) {
    this.patternWithoutDelimiter = patternWithoutDelimiter;
  }

  public InlineObject3 _byte(byte[] _byte) {
    this._byte = _byte;
    return this;
  }

  /**
   * None
   * @return _byte
   **/
  @JsonProperty("byte")
  @ApiModelProperty(required = true, value = "None")
  @NotNull 
  public byte[] getByte() {
    return _byte;
  }

  public void setByte(byte[] _byte) {
    this._byte = _byte;
  }

  public InlineObject3 binary(File binary) {
    this.binary = binary;
    return this;
  }

  /**
   * None
   * @return binary
   **/
  @JsonProperty("binary")
  @ApiModelProperty(value = "None")
  
  public File getBinary() {
    return binary;
  }

  public void setBinary(File binary) {
    this.binary = binary;
  }

  public InlineObject3 date(Date date) {
    this.date = date;
    return this;
  }

  /**
   * None
   * @return date
   **/
  @JsonProperty("date")
  @ApiModelProperty(value = "None")
  
  public Date getDate() {
    return date;
  }

  public void setDate(Date date) {
    this.date = date;
  }

  public InlineObject3 dateTime(Date dateTime) {
    this.dateTime = dateTime;
    return this;
  }

  /**
   * None
   * @return dateTime
   **/
  @JsonProperty("dateTime")
  @ApiModelProperty(value = "None")
  
  public Date getDateTime() {
    return dateTime;
  }

  public void setDateTime(Date dateTime) {
    this.dateTime = dateTime;
  }

  public InlineObject3 password(String password) {
    this.password = password;
    return this;
  }

  /**
   * None
   * @return password
   **/
  @JsonProperty("password")
  @ApiModelProperty(value = "None")
   @Size(min=10,max=64)
  public String getPassword() {
    return password;
  }

  public void setPassword(String password) {
    this.password = password;
  }

  public InlineObject3 callback(String callback) {
    this.callback = callback;
    return this;
  }

  /**
   * None
   * @return callback
   **/
  @JsonProperty("callback")
  @ApiModelProperty(value = "None")
  
  public String getCallback() {
    return callback;
  }

  public void setCallback(String callback) {
    this.callback = callback;
  }


  @Override
  public boolean equals(Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    InlineObject3 inlineObject3 = (InlineObject3) o;
    return Objects.equals(this.integer, inlineObject3.integer) &&
        Objects.equals(this.int32, inlineObject3.int32) &&
        Objects.equals(this.int64, inlineObject3.int64) &&
        Objects.equals(this.number, inlineObject3.number) &&
        Objects.equals(this._float, inlineObject3._float) &&
        Objects.equals(this._double, inlineObject3._double) &&
        Objects.equals(this.string, inlineObject3.string) &&
        Objects.equals(this.patternWithoutDelimiter, inlineObject3.patternWithoutDelimiter) &&
        Objects.equals(this._byte, inlineObject3._byte) &&
        Objects.equals(this.binary, inlineObject3.binary) &&
        Objects.equals(this.date, inlineObject3.date) &&
        Objects.equals(this.dateTime, inlineObject3.dateTime) &&
        Objects.equals(this.password, inlineObject3.password) &&
        Objects.equals(this.callback, inlineObject3.callback);
  }

  @Override
  public int hashCode() {
    return Objects.hash(integer, int32, int64, number, _float, _double, string, patternWithoutDelimiter, _byte, binary, date, dateTime, password, callback);
  }


  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class InlineObject3 {\n");
    
    sb.append("    integer: ").append(toIndentedString(integer)).append("\n");
    sb.append("    int32: ").append(toIndentedString(int32)).append("\n");
    sb.append("    int64: ").append(toIndentedString(int64)).append("\n");
    sb.append("    number: ").append(toIndentedString(number)).append("\n");
    sb.append("    _float: ").append(toIndentedString(_float)).append("\n");
    sb.append("    _double: ").append(toIndentedString(_double)).append("\n");
    sb.append("    string: ").append(toIndentedString(string)).append("\n");
    sb.append("    patternWithoutDelimiter: ").append(toIndentedString(patternWithoutDelimiter)).append("\n");
    sb.append("    _byte: ").append(toIndentedString(_byte)).append("\n");
    sb.append("    binary: ").append(toIndentedString(binary)).append("\n");
    sb.append("    date: ").append(toIndentedString(date)).append("\n");
    sb.append("    dateTime: ").append(toIndentedString(dateTime)).append("\n");
    sb.append("    password: ").append(toIndentedString(password)).append("\n");
    sb.append("    callback: ").append(toIndentedString(callback)).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    ");
  }
}

