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

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

  public static final String SERIALIZED_NAME_JOB_INSTANCES = "jobInstances";
  @SerializedName(SERIALIZED_NAME_JOB_INSTANCES)
  private List<JobInstanceDto> jobInstances = null;


  public JobInstanceListDto listSize(Integer listSize) {
    
    this.listSize = listSize;
    return this;
  }

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

  public Integer getListSize() {
    return listSize;
  }



  public void setListSize(Integer listSize) {
    this.listSize = listSize;
  }


  public JobInstanceListDto jobInstances(List<JobInstanceDto> jobInstances) {
    
    this.jobInstances = jobInstances;
    return this;
  }

  public JobInstanceListDto addJobInstancesItem(JobInstanceDto jobInstancesItem) {
    if (this.jobInstances == null) {
      this.jobInstances = new ArrayList<JobInstanceDto>();
    }
    this.jobInstances.add(jobInstancesItem);
    return this;
  }

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

  public List<JobInstanceDto> getJobInstances() {
    return jobInstances;
  }



  public void setJobInstances(List<JobInstanceDto> jobInstances) {
    this.jobInstances = jobInstances;
  }


  @Override
  public boolean equals(java.lang.Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    JobInstanceListDto jobInstanceListDto = (JobInstanceListDto) o;
    return Objects.equals(this.listSize, jobInstanceListDto.listSize) &&
        Objects.equals(this.jobInstances, jobInstanceListDto.jobInstances);
  }

  @Override
  public int hashCode() {
    return Objects.hash(listSize, jobInstances);
  }


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

}

