clients/java/src/main/java/io/swagger/client/model/SiteLanguageCreate.java
<filename>clients/java/src/main/java/io/swagger/client/model/SiteLanguageCreate.java/*
 * JBS Backend Service
 * Journalim Protocol Compatible Backend Service
 *
 * OpenAPI spec version: 0.0.1
 * Contact: nnheo@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;
/**
 * SiteLanguageCreate
 */

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

  @SerializedName("description")
  private String description = null;

  @SerializedName("alternative_logo")
  private String alternativeLogo = null;

  @SerializedName("site_id")
  private Integer siteId = null;

  @SerializedName("language_id")
  private Integer languageId = null;

  public SiteLanguageCreate title(String title) {
    this.title = title;
    return this;
  }

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

  public void setTitle(String title) {
    this.title = title;
  }

  public SiteLanguageCreate description(String description) {
    this.description = description;
    return this;
  }

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

  public void setDescription(String description) {
    this.description = description;
  }

  public SiteLanguageCreate alternativeLogo(String alternativeLogo) {
    this.alternativeLogo = alternativeLogo;
    return this;
  }

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

  public void setAlternativeLogo(String alternativeLogo) {
    this.alternativeLogo = alternativeLogo;
  }

  public SiteLanguageCreate siteId(Integer siteId) {
    this.siteId = siteId;
    return this;
  }

   /**
   * Get siteId
   * @return siteId
  **/
  @Schema(description = "")
  public Integer getSiteId() {
    return siteId;
  }

  public void setSiteId(Integer siteId) {
    this.siteId = siteId;
  }

  public SiteLanguageCreate languageId(Integer languageId) {
    this.languageId = languageId;
    return this;
  }

   /**
   * Get languageId
   * @return languageId
  **/
  @Schema(description = "")
  public Integer getLanguageId() {
    return languageId;
  }

  public void setLanguageId(Integer languageId) {
    this.languageId = languageId;
  }


  @Override
  public boolean equals(java.lang.Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    SiteLanguageCreate siteLanguageCreate = (SiteLanguageCreate) o;
    return Objects.equals(this.title, siteLanguageCreate.title) &&
        Objects.equals(this.description, siteLanguageCreate.description) &&
        Objects.equals(this.alternativeLogo, siteLanguageCreate.alternativeLogo) &&
        Objects.equals(this.siteId, siteLanguageCreate.siteId) &&
        Objects.equals(this.languageId, siteLanguageCreate.languageId);
  }

  @Override
  public int hashCode() {
    return Objects.hash(title, description, alternativeLogo, siteId, languageId);
  }


  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class SiteLanguageCreate {\n");
    
    sb.append("    title: ").append(toIndentedString(title)).append("\n");
    sb.append("    description: ").append(toIndentedString(description)).append("\n");
    sb.append("    alternativeLogo: ").append(toIndentedString(alternativeLogo)).append("\n");
    sb.append("    siteId: ").append(toIndentedString(siteId)).append("\n");
    sb.append("    languageId: ").append(toIndentedString(languageId)).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    ");
  }

}
