package org.openapitools.model;

import io.swagger.annotations.ApiModel;
import javax.validation.constraints.*;
import javax.validation.Valid;

import io.swagger.annotations.ApiModelProperty;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonProperty;


/**
 * Model for testing model name same as property name
 */
@ApiModel(description="Model for testing model name same as property name")

public class Name  {
  
  @ApiModelProperty(required = true, value = "")
  private Integer name;

  @ApiModelProperty(value = "")
  private Integer snakeCase;

  @ApiModelProperty(value = "")
  private String property;

  @ApiModelProperty(value = "")
  private Integer _123number;
 /**
  * Get name
  * @return name
  */
  @JsonProperty("name")
  @NotNull
  public Integer getName() {
    return name;
  }

  /**
   * Sets the <code>name</code> property.
   */
 public void setName(Integer name) {
    this.name = name;
  }

  /**
   * Sets the <code>name</code> property.
   */
  public Name name(Integer name) {
    this.name = name;
    return this;
  }

 /**
  * Get snakeCase
  * @return snakeCase
  */
  @JsonProperty("snake_case")
  public Integer getSnakeCase() {
    return snakeCase;
  }

  /**
   * Sets the <code>snakeCase</code> property.
   * <br><em>N.B. <code>snakeCase</code> is <b>read only</b>; client code should not call this method</em>.
   */
 public void setSnakeCase(Integer snakeCase) {
    this.snakeCase = snakeCase;
  }

  /**
   * Sets the <code>snakeCase</code> property.
   * <br><em>N.B. <code>snakeCase</code> is <b>read only</b>; client code should not call this method</em>.
   */
  public Name snakeCase(Integer snakeCase) {
    this.snakeCase = snakeCase;
    return this;
  }

 /**
  * Get property
  * @return property
  */
  @JsonProperty("property")
  public String getProperty() {
    return property;
  }

  /**
   * Sets the <code>property</code> property.
   */
 public void setProperty(String property) {
    this.property = property;
  }

  /**
   * Sets the <code>property</code> property.
   */
  public Name property(String property) {
    this.property = property;
    return this;
  }

 /**
  * Get _123number
  * @return _123number
  */
  @JsonProperty("123Number")
  public Integer get123number() {
    return _123number;
  }

  /**
   * Sets the <code>_123number</code> property.
   * <br><em>N.B. <code>_123number</code> is <b>read only</b>; client code should not call this method</em>.
   */
 public void set123number(Integer _123number) {
    this._123number = _123number;
  }

  /**
   * Sets the <code>_123number</code> property.
   * <br><em>N.B. <code>_123number</code> is <b>read only</b>; client code should not call this method</em>.
   */
  public Name _123number(Integer _123number) {
    this._123number = _123number;
    return this;
  }


  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class Name {\n");
    
    sb.append("    name: ").append(toIndentedString(name)).append("\n");
    sb.append("    snakeCase: ").append(toIndentedString(snakeCase)).append("\n");
    sb.append("    property: ").append(toIndentedString(property)).append("\n");
    sb.append("    _123number: ").append(toIndentedString(_123number)).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 static String toIndentedString(Object o) {
    if (o == null) {
      return "null";
    }
    return o.toString().replace("\n", "\n    ");
  }
}

