clients/java/src/main/java/io/swagger/client/model/LanguageCreate.java
<reponame>AzatAI/journalim/*
 * JBS Backend Service
 * Journalim Protocol Compatible Backend Service
 *
 * OpenAPI spec version: 0.0.1
 * Contact: ychag@example.com
 *
 * NOTE: This class is auto generated by the swagger code generator program.
 * https://github.com/swagger-api/swagger-codegen.git
 * Do not edit the class manually.
 */

package io.swagger.client.model;

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.v3.oas.annotations.media.Schema;
import java.io.IOException;
/**
 * LanguageCreate
 */

@javax.annotation.Generated(value = "io.swagger.codegen.v3.generators.java.JavaClientCodegen", date = "2022-12-16T10:25:26.213Z[GMT]")
public class LanguageCreate {
  @SerializedName("code")
  private String code = null;

  @SerializedName("name_local")
  private String nameLocal = null;

  @SerializedName("name_global")
  private String nameGlobal = null;

  public LanguageCreate code(String code) {
    this.code = code;
    return this;
  }

   /**
   * Get code
   * @return code
  **/
  @Schema(required = true, description = "")
  public String getCode() {
    return code;
  }

  public void setCode(String code) {
    this.code = code;
  }

  public LanguageCreate nameLocal(String nameLocal) {
    this.nameLocal = nameLocal;
    return this;
  }

   /**
   * Get nameLocal
   * @return nameLocal
  **/
  @Schema(required = true, description = "")
  public String getNameLocal() {
    return nameLocal;
  }

  public void setNameLocal(String nameLocal) {
    this.nameLocal = nameLocal;
  }

  public LanguageCreate nameGlobal(String nameGlobal) {
    this.nameGlobal = nameGlobal;
    return this;
  }

   /**
   * Get nameGlobal
   * @return nameGlobal
  **/
  @Schema(description = "")
  public String getNameGlobal() {
    return nameGlobal;
  }

  public void setNameGlobal(String nameGlobal) {
    this.nameGlobal = nameGlobal;
  }


  @Override
  public boolean equals(java.lang.Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    LanguageCreate languageCreate = (LanguageCreate) o;
    return Objects.equals(this.code, languageCreate.code) &&
        Objects.equals(this.nameLocal, languageCreate.nameLocal) &&
        Objects.equals(this.nameGlobal, languageCreate.nameGlobal);
  }

  @Override
  public int hashCode() {
    return Objects.hash(code, nameLocal, nameGlobal);
  }


  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class LanguageCreate {\n");
    
    sb.append("    code: ").append(toIndentedString(code)).append("\n");
    sb.append("    nameLocal: ").append(toIndentedString(nameLocal)).append("\n");
    sb.append("    nameGlobal: ").append(toIndentedString(nameGlobal)).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(java.lang.Object o) {
    if (o == null) {
      return "null";
    }
    return o.toString().replace("\n", "\n    ");
  }

}
