/*
 * 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;

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

  public static final String SERIALIZED_NAME_CLASSNAME_CODE = "classnameCode";
  @SerializedName(SERIALIZED_NAME_CLASSNAME_CODE)
  private String classnameCode;

  public static final String SERIALIZED_NAME_CODE = "code";
  @SerializedName(SERIALIZED_NAME_CODE)
  private String code;

  public static final String SERIALIZED_NAME_REFERENCE_CODE = "referenceCode";
  @SerializedName(SERIALIZED_NAME_REFERENCE_CODE)
  private String referenceCode;

  public static final String SERIALIZED_NAME_REFERENCE_DESCRIPTION = "referenceDescription";
  @SerializedName(SERIALIZED_NAME_REFERENCE_DESCRIPTION)
  private String referenceDescription;

  public static final String SERIALIZED_NAME_EMPTY = "empty";
  @SerializedName(SERIALIZED_NAME_EMPTY)
  private Boolean empty;


  public EntityReferenceWrapper classname(String classname) {
    
    this.classname = classname;
    return this;
  }

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

  public String getClassname() {
    return classname;
  }



  public void setClassname(String classname) {
    this.classname = classname;
  }


  public EntityReferenceWrapper classnameCode(String classnameCode) {
    
    this.classnameCode = classnameCode;
    return this;
  }

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

  public String getClassnameCode() {
    return classnameCode;
  }



  public void setClassnameCode(String classnameCode) {
    this.classnameCode = classnameCode;
  }


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

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

  public String getCode() {
    return code;
  }



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


  public EntityReferenceWrapper referenceCode(String referenceCode) {
    
    this.referenceCode = referenceCode;
    return this;
  }

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

  public String getReferenceCode() {
    return referenceCode;
  }



  public void setReferenceCode(String referenceCode) {
    this.referenceCode = referenceCode;
  }


  public EntityReferenceWrapper referenceDescription(String referenceDescription) {
    
    this.referenceDescription = referenceDescription;
    return this;
  }

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

  public String getReferenceDescription() {
    return referenceDescription;
  }



  public void setReferenceDescription(String referenceDescription) {
    this.referenceDescription = referenceDescription;
  }


  public EntityReferenceWrapper empty(Boolean empty) {
    
    this.empty = empty;
    return this;
  }

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

  public Boolean getEmpty() {
    return empty;
  }



  public void setEmpty(Boolean empty) {
    this.empty = empty;
  }


  @Override
  public boolean equals(java.lang.Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    EntityReferenceWrapper entityReferenceWrapper = (EntityReferenceWrapper) o;
    return Objects.equals(this.classname, entityReferenceWrapper.classname) &&
        Objects.equals(this.classnameCode, entityReferenceWrapper.classnameCode) &&
        Objects.equals(this.code, entityReferenceWrapper.code) &&
        Objects.equals(this.referenceCode, entityReferenceWrapper.referenceCode) &&
        Objects.equals(this.referenceDescription, entityReferenceWrapper.referenceDescription) &&
        Objects.equals(this.empty, entityReferenceWrapper.empty);
  }

  @Override
  public int hashCode() {
    return Objects.hash(classname, classnameCode, code, referenceCode, referenceDescription, empty);
  }


  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class EntityReferenceWrapper {\n");
    sb.append("    classname: ").append(toIndentedString(classname)).append("\n");
    sb.append("    classnameCode: ").append(toIndentedString(classnameCode)).append("\n");
    sb.append("    code: ").append(toIndentedString(code)).append("\n");
    sb.append("    referenceCode: ").append(toIndentedString(referenceCode)).append("\n");
    sb.append("    referenceDescription: ").append(toIndentedString(referenceDescription)).append("\n");
    sb.append("    empty: ").append(toIndentedString(empty)).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    ");
  }

}

