/*
 * Pydio Cells Rest API
 * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
 *
 * OpenAPI spec version: 1.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 com.pydio.sdk.core.api.cells.model;

import com.google.gson.annotations.SerializedName;

import java.util.ArrayList;
import java.util.List;
import java.util.Objects;

import io.swagger.annotations.ApiModelProperty;

/**
 * JobsJob
 */
@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-11-30T14:51:15.861Z")
public class JobsJob {
  @SerializedName("ID")
  private String ID = null;

  @SerializedName("Label")
  private String label = null;

  @SerializedName("Owner")
  private String owner = null;

  @SerializedName("Inactive")
  private Boolean inactive = null;

  @SerializedName("Languages")
  private List<String> languages = null;

  @SerializedName("EventNames")
  private List<String> eventNames = null;

  @SerializedName("Schedule")
  private JobsSchedule schedule = null;

  @SerializedName("AutoStart")
  private Boolean autoStart = null;

  @SerializedName("AutoClean")
  private Boolean autoClean = null;

  @SerializedName("Actions")
  private List<JobsAction> actions = null;

  @SerializedName("MaxConcurrency")
  private Integer maxConcurrency = null;

    @SerializedName("TasksSilentUpdate")
    private Boolean tasksSilentUpdate = null;

  @SerializedName("Tasks")
  private List<JobsTask> tasks = null;

  public JobsJob ID(String ID) {
    this.ID = ID;
    return this;
  }

   /**
   * Get ID
   * @return ID
  **/
  @ApiModelProperty(value = "")
  public String getID() {
    return ID;
  }

  public void setID(String ID) {
    this.ID = ID;
  }

  public JobsJob label(String label) {
    this.label = label;
    return this;
  }

   /**
   * Get label
   * @return label
  **/
  @ApiModelProperty(value = "")
  public String getLabel() {
    return label;
  }

  public void setLabel(String label) {
    this.label = label;
  }

  public JobsJob owner(String owner) {
    this.owner = owner;
    return this;
  }

   /**
   * Get owner
   * @return owner
  **/
  @ApiModelProperty(value = "")
  public String getOwner() {
    return owner;
  }

  public void setOwner(String owner) {
    this.owner = owner;
  }

  public JobsJob inactive(Boolean inactive) {
    this.inactive = inactive;
    return this;
  }

   /**
   * Get inactive
   * @return inactive
  **/
  @ApiModelProperty(value = "")
  public Boolean isInactive() {
    return inactive;
  }

  public void setInactive(Boolean inactive) {
    this.inactive = inactive;
  }

  public JobsJob languages(List<String> languages) {
    this.languages = languages;
    return this;
  }

  public JobsJob addLanguagesItem(String languagesItem) {
    if (this.languages == null) {
      this.languages = new ArrayList<String>();
    }
    this.languages.add(languagesItem);
    return this;
  }

   /**
   * Get languages
   * @return languages
  **/
  @ApiModelProperty(value = "")
  public List<String> getLanguages() {
    return languages;
  }

  public void setLanguages(List<String> languages) {
    this.languages = languages;
  }

  public JobsJob eventNames(List<String> eventNames) {
    this.eventNames = eventNames;
    return this;
  }

  public JobsJob addEventNamesItem(String eventNamesItem) {
    if (this.eventNames == null) {
      this.eventNames = new ArrayList<String>();
    }
    this.eventNames.add(eventNamesItem);
    return this;
  }

   /**
   * Get eventNames
   * @return eventNames
  **/
  @ApiModelProperty(value = "")
  public List<String> getEventNames() {
    return eventNames;
  }

  public void setEventNames(List<String> eventNames) {
    this.eventNames = eventNames;
  }

  public JobsJob schedule(JobsSchedule schedule) {
    this.schedule = schedule;
    return this;
  }

   /**
   * Get schedule
   * @return schedule
  **/
  @ApiModelProperty(value = "")
  public JobsSchedule getSchedule() {
    return schedule;
  }

  public void setSchedule(JobsSchedule schedule) {
    this.schedule = schedule;
  }

  public JobsJob autoStart(Boolean autoStart) {
    this.autoStart = autoStart;
    return this;
  }

   /**
   * Get autoStart
   * @return autoStart
  **/
  @ApiModelProperty(value = "")
  public Boolean isAutoStart() {
    return autoStart;
  }

  public void setAutoStart(Boolean autoStart) {
    this.autoStart = autoStart;
  }

  public JobsJob autoClean(Boolean autoClean) {
    this.autoClean = autoClean;
    return this;
  }

   /**
   * Get autoClean
   * @return autoClean
  **/
  @ApiModelProperty(value = "")
  public Boolean isAutoClean() {
    return autoClean;
  }

  public void setAutoClean(Boolean autoClean) {
    this.autoClean = autoClean;
  }

  public JobsJob actions(List<JobsAction> actions) {
    this.actions = actions;
    return this;
  }

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

   /**
   * Get actions
   * @return actions
  **/
  @ApiModelProperty(value = "")
  public List<JobsAction> getActions() {
    return actions;
  }

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

  public JobsJob maxConcurrency(Integer maxConcurrency) {
    this.maxConcurrency = maxConcurrency;
    return this;
  }

   /**
   * Get maxConcurrency
   * @return maxConcurrency
  **/
  @ApiModelProperty(value = "")
  public Integer getMaxConcurrency() {
    return maxConcurrency;
  }

  public void setMaxConcurrency(Integer maxConcurrency) {
    this.maxConcurrency = maxConcurrency;
  }

    public JobsJob tasksSilentUpdate(Boolean tasksSilentUpdate) {
        this.tasksSilentUpdate = tasksSilentUpdate;
        return this;
    }

    /**
     * Get tasksSilentUpdate
     *
     * @return tasksSilentUpdate
     **/
    @ApiModelProperty(value = "")
    public Boolean isTasksSilentUpdate() {
        return tasksSilentUpdate;
    }

    public void setTasksSilentUpdate(Boolean tasksSilentUpdate) {
        this.tasksSilentUpdate = tasksSilentUpdate;
    }

  public JobsJob tasks(List<JobsTask> tasks) {
    this.tasks = tasks;
    return this;
  }

  public JobsJob addTasksItem(JobsTask tasksItem) {
    if (this.tasks == null) {
      this.tasks = new ArrayList<JobsTask>();
    }
    this.tasks.add(tasksItem);
    return this;
  }

   /**
   * Get tasks
   * @return tasks
  **/
  @ApiModelProperty(value = "")
  public List<JobsTask> getTasks() {
    return tasks;
  }

  public void setTasks(List<JobsTask> tasks) {
    this.tasks = tasks;
  }


  @Override
  public boolean equals(Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    JobsJob jobsJob = (JobsJob) o;
    return Objects.equals(this.ID, jobsJob.ID) &&
        Objects.equals(this.label, jobsJob.label) &&
        Objects.equals(this.owner, jobsJob.owner) &&
        Objects.equals(this.inactive, jobsJob.inactive) &&
        Objects.equals(this.languages, jobsJob.languages) &&
        Objects.equals(this.eventNames, jobsJob.eventNames) &&
        Objects.equals(this.schedule, jobsJob.schedule) &&
        Objects.equals(this.autoStart, jobsJob.autoStart) &&
        Objects.equals(this.autoClean, jobsJob.autoClean) &&
        Objects.equals(this.actions, jobsJob.actions) &&
        Objects.equals(this.maxConcurrency, jobsJob.maxConcurrency) &&
            Objects.equals(this.tasksSilentUpdate, jobsJob.tasksSilentUpdate) &&
        Objects.equals(this.tasks, jobsJob.tasks);
  }

  @Override
  public int hashCode() {
      return Objects.hash(ID, label, owner, inactive, languages, eventNames, schedule, autoStart, autoClean, actions, maxConcurrency, tasksSilentUpdate, tasks);
  }


  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class JobsJob {\n");
    
    sb.append("    ID: ").append(toIndentedString(ID)).append("\n");
    sb.append("    label: ").append(toIndentedString(label)).append("\n");
    sb.append("    owner: ").append(toIndentedString(owner)).append("\n");
    sb.append("    inactive: ").append(toIndentedString(inactive)).append("\n");
    sb.append("    languages: ").append(toIndentedString(languages)).append("\n");
    sb.append("    eventNames: ").append(toIndentedString(eventNames)).append("\n");
    sb.append("    schedule: ").append(toIndentedString(schedule)).append("\n");
    sb.append("    autoStart: ").append(toIndentedString(autoStart)).append("\n");
    sb.append("    autoClean: ").append(toIndentedString(autoClean)).append("\n");
    sb.append("    actions: ").append(toIndentedString(actions)).append("\n");
    sb.append("    maxConcurrency: ").append(toIndentedString(maxConcurrency)).append("\n");
      sb.append("    tasksSilentUpdate: ").append(toIndentedString(tasksSilentUpdate)).append("\n");
    sb.append("    tasks: ").append(toIndentedString(tasks)).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(Object o) {
    if (o == null) {
      return "null";
    }
    return o.toString().replace("\n", "\n    ");
  }

}

