/*
 * ARTIK Cloud API
 * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
 *
 * OpenAPI spec version: 2.0.0
 * 
 *
 * 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 cloud.artik.model;

import java.util.Objects;
import cloud.artik.model.TaskHistory;
import com.google.gson.annotations.SerializedName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.util.ArrayList;
import java.util.List;

/**
 * 
 */
@ApiModel(description = "")

public class TaskHistoryList {
  @SerializedName("history")
  private List<TaskHistory> history = new ArrayList<TaskHistory>();

  public TaskHistoryList history(List<TaskHistory> history) {
    this.history = history;
    return this;
  }

  public TaskHistoryList addHistoryItem(TaskHistory historyItem) {
    this.history.add(historyItem);
    return this;
  }

   /**
   * Status history
   * @return history
  **/
  @ApiModelProperty(example = "null", value = "Status history")
  public List<TaskHistory> getHistory() {
    return history;
  }

  public void setHistory(List<TaskHistory> history) {
    this.history = history;
  }


  @Override
  public boolean equals(java.lang.Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    TaskHistoryList taskHistoryList = (TaskHistoryList) o;
    return Objects.equals(this.history, taskHistoryList.history);
  }

  @Override
  public int hashCode() {
    return Objects.hash(history);
  }


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

