/*
 * Swagger of Opencellsoft Api
 * @#Introduction
 *
 * The version of the OpenAPI document: 7.3.1-SNAPSHOT
 * Contact: contact@opencellsoft.fr
 *
 * 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.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.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.IOException;
import java.util.ArrayList;
import java.util.List;
import org.openapitools.client.model.LanguageDescriptionDto;

/**
 * CountryIsoDto
 */
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-09-13T10:03:17.753Z[GMT]")
public class CountryIsoDto {
  public static final String SERIALIZED_NAME_COUNTRY_CODE = "countryCode";
  @SerializedName(SERIALIZED_NAME_COUNTRY_CODE)
  private String countryCode;

  public static final String SERIALIZED_NAME_DESCRIPTION = "description";
  @SerializedName(SERIALIZED_NAME_DESCRIPTION)
  private String description;

  public static final String SERIALIZED_NAME_LANGUAGE_DESCRIPTIONS = "languageDescriptions";
  @SerializedName(SERIALIZED_NAME_LANGUAGE_DESCRIPTIONS)
  private List<LanguageDescriptionDto> languageDescriptions = null;

  public static final String SERIALIZED_NAME_CURRENCY_CODE = "currencyCode";
  @SerializedName(SERIALIZED_NAME_CURRENCY_CODE)
  private String currencyCode;

  public static final String SERIALIZED_NAME_LANGUAGE_CODE = "languageCode";
  @SerializedName(SERIALIZED_NAME_LANGUAGE_CODE)
  private String languageCode;


  public CountryIsoDto countryCode(String countryCode) {
    
    this.countryCode = countryCode;
    return this;
  }

   /**
   * Get countryCode
   * @return countryCode
  **/
  @javax.annotation.Nullable
  @ApiModelProperty(value = "")

  public String getCountryCode() {
    return countryCode;
  }



  public void setCountryCode(String countryCode) {
    this.countryCode = countryCode;
  }


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

   /**
   * Get description
   * @return description
  **/
  @javax.annotation.Nullable
  @ApiModelProperty(value = "")

  public String getDescription() {
    return description;
  }



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


  public CountryIsoDto languageDescriptions(List<LanguageDescriptionDto> languageDescriptions) {
    
    this.languageDescriptions = languageDescriptions;
    return this;
  }

  public CountryIsoDto addLanguageDescriptionsItem(LanguageDescriptionDto languageDescriptionsItem) {
    if (this.languageDescriptions == null) {
      this.languageDescriptions = new ArrayList<LanguageDescriptionDto>();
    }
    this.languageDescriptions.add(languageDescriptionsItem);
    return this;
  }

   /**
   * Get languageDescriptions
   * @return languageDescriptions
  **/
  @javax.annotation.Nullable
  @ApiModelProperty(value = "")

  public List<LanguageDescriptionDto> getLanguageDescriptions() {
    return languageDescriptions;
  }



  public void setLanguageDescriptions(List<LanguageDescriptionDto> languageDescriptions) {
    this.languageDescriptions = languageDescriptions;
  }


  public CountryIsoDto currencyCode(String currencyCode) {
    
    this.currencyCode = currencyCode;
    return this;
  }

   /**
   * Get currencyCode
   * @return currencyCode
  **/
  @ApiModelProperty(required = true, value = "")

  public String getCurrencyCode() {
    return currencyCode;
  }



  public void setCurrencyCode(String currencyCode) {
    this.currencyCode = currencyCode;
  }


  public CountryIsoDto languageCode(String languageCode) {
    
    this.languageCode = languageCode;
    return this;
  }

   /**
   * Get languageCode
   * @return languageCode
  **/
  @ApiModelProperty(required = true, value = "")

  public String getLanguageCode() {
    return languageCode;
  }



  public void setLanguageCode(String languageCode) {
    this.languageCode = languageCode;
  }


  @Override
  public boolean equals(java.lang.Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    CountryIsoDto countryIsoDto = (CountryIsoDto) o;
    return Objects.equals(this.countryCode, countryIsoDto.countryCode) &&
        Objects.equals(this.description, countryIsoDto.description) &&
        Objects.equals(this.languageDescriptions, countryIsoDto.languageDescriptions) &&
        Objects.equals(this.currencyCode, countryIsoDto.currencyCode) &&
        Objects.equals(this.languageCode, countryIsoDto.languageCode);
  }

  @Override
  public int hashCode() {
    return Objects.hash(countryCode, description, languageDescriptions, currencyCode, languageCode);
  }


  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class CountryIsoDto {\n");
    sb.append("    countryCode: ").append(toIndentedString(countryCode)).append("\n");
    sb.append("    description: ").append(toIndentedString(description)).append("\n");
    sb.append("    languageDescriptions: ").append(toIndentedString(languageDescriptions)).append("\n");
    sb.append("    currencyCode: ").append(toIndentedString(currencyCode)).append("\n");
    sb.append("    languageCode: ").append(toIndentedString(languageCode)).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    ");
  }

}

