/*
 * 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.CustomFieldTemplateDto;
import org.openapitools.client.model.EntityCustomActionDto;

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

  public static final String SERIALIZED_NAME_FIELDS = "fields";
  @SerializedName(SERIALIZED_NAME_FIELDS)
  private List<CustomFieldTemplateDto> fields = null;

  public static final String SERIALIZED_NAME_ACTIONS = "actions";
  @SerializedName(SERIALIZED_NAME_ACTIONS)
  private List<EntityCustomActionDto> actions = null;


  public EntityCustomizationDto 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 EntityCustomizationDto fields(List<CustomFieldTemplateDto> fields) {
    
    this.fields = fields;
    return this;
  }

  public EntityCustomizationDto addFieldsItem(CustomFieldTemplateDto fieldsItem) {
    if (this.fields == null) {
      this.fields = new ArrayList<CustomFieldTemplateDto>();
    }
    this.fields.add(fieldsItem);
    return this;
  }

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

  public List<CustomFieldTemplateDto> getFields() {
    return fields;
  }



  public void setFields(List<CustomFieldTemplateDto> fields) {
    this.fields = fields;
  }


  public EntityCustomizationDto actions(List<EntityCustomActionDto> actions) {
    
    this.actions = actions;
    return this;
  }

  public EntityCustomizationDto addActionsItem(EntityCustomActionDto actionsItem) {
    if (this.actions == null) {
      this.actions = new ArrayList<EntityCustomActionDto>();
    }
    this.actions.add(actionsItem);
    return this;
  }

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

  public List<EntityCustomActionDto> getActions() {
    return actions;
  }



  public void setActions(List<EntityCustomActionDto> actions) {
    this.actions = actions;
  }


  @Override
  public boolean equals(java.lang.Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    EntityCustomizationDto entityCustomizationDto = (EntityCustomizationDto) o;
    return Objects.equals(this.classname, entityCustomizationDto.classname) &&
        Objects.equals(this.fields, entityCustomizationDto.fields) &&
        Objects.equals(this.actions, entityCustomizationDto.actions);
  }

  @Override
  public int hashCode() {
    return Objects.hash(classname, fields, actions);
  }


  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class EntityCustomizationDto {\n");
    sb.append("    classname: ").append(toIndentedString(classname)).append("\n");
    sb.append("    fields: ").append(toIndentedString(fields)).append("\n");
    sb.append("    actions: ").append(toIndentedString(actions)).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    ");
  }

}

