/*
 * 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 org.openapitools.client.model.CustomFieldsDto;
import org.threeten.bp.OffsetDateTime;

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

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

  public static final String SERIALIZED_NAME_LAST_TRANSACTION_DATE = "lastTransactionDate";
  @SerializedName(SERIALIZED_NAME_LAST_TRANSACTION_DATE)
  private OffsetDateTime lastTransactionDate;

  public static final String SERIALIZED_NAME_INVOICE_DATE = "invoiceDate";
  @SerializedName(SERIALIZED_NAME_INVOICE_DATE)
  private OffsetDateTime invoiceDate;

  public static final String SERIALIZED_NAME_BILLING_CYCLE = "billingCycle";
  @SerializedName(SERIALIZED_NAME_BILLING_CYCLE)
  private String billingCycle;

  public static final String SERIALIZED_NAME_FORCE_EXECUTION = "forceExecution";
  @SerializedName(SERIALIZED_NAME_FORCE_EXECUTION)
  private Boolean forceExecution;

  public static final String SERIALIZED_NAME_RUN_ON_NODES = "runOnNodes";
  @SerializedName(SERIALIZED_NAME_RUN_ON_NODES)
  private String runOnNodes;

  public static final String SERIALIZED_NAME_PARAMETERS = "parameters";
  @SerializedName(SERIALIZED_NAME_PARAMETERS)
  private String parameters;

  public static final String SERIALIZED_NAME_CUSTOM_FIELDS = "customFields";
  @SerializedName(SERIALIZED_NAME_CUSTOM_FIELDS)
  private CustomFieldsDto customFields;


  public JobInstanceInfoDto timerName(String timerName) {
    
    this.timerName = timerName;
    return this;
  }

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

  public String getTimerName() {
    return timerName;
  }



  public void setTimerName(String timerName) {
    this.timerName = timerName;
  }


  public JobInstanceInfoDto 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 JobInstanceInfoDto lastTransactionDate(OffsetDateTime lastTransactionDate) {
    
    this.lastTransactionDate = lastTransactionDate;
    return this;
  }

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

  public OffsetDateTime getLastTransactionDate() {
    return lastTransactionDate;
  }



  public void setLastTransactionDate(OffsetDateTime lastTransactionDate) {
    this.lastTransactionDate = lastTransactionDate;
  }


  public JobInstanceInfoDto invoiceDate(OffsetDateTime invoiceDate) {
    
    this.invoiceDate = invoiceDate;
    return this;
  }

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

  public OffsetDateTime getInvoiceDate() {
    return invoiceDate;
  }



  public void setInvoiceDate(OffsetDateTime invoiceDate) {
    this.invoiceDate = invoiceDate;
  }


  public JobInstanceInfoDto billingCycle(String billingCycle) {
    
    this.billingCycle = billingCycle;
    return this;
  }

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

  public String getBillingCycle() {
    return billingCycle;
  }



  public void setBillingCycle(String billingCycle) {
    this.billingCycle = billingCycle;
  }


  public JobInstanceInfoDto forceExecution(Boolean forceExecution) {
    
    this.forceExecution = forceExecution;
    return this;
  }

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

  public Boolean getForceExecution() {
    return forceExecution;
  }



  public void setForceExecution(Boolean forceExecution) {
    this.forceExecution = forceExecution;
  }


  public JobInstanceInfoDto runOnNodes(String runOnNodes) {
    
    this.runOnNodes = runOnNodes;
    return this;
  }

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

  public String getRunOnNodes() {
    return runOnNodes;
  }



  public void setRunOnNodes(String runOnNodes) {
    this.runOnNodes = runOnNodes;
  }


  public JobInstanceInfoDto parameters(String parameters) {
    
    this.parameters = parameters;
    return this;
  }

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

  public String getParameters() {
    return parameters;
  }



  public void setParameters(String parameters) {
    this.parameters = parameters;
  }


  public JobInstanceInfoDto customFields(CustomFieldsDto customFields) {
    
    this.customFields = customFields;
    return this;
  }

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

  public CustomFieldsDto getCustomFields() {
    return customFields;
  }



  public void setCustomFields(CustomFieldsDto customFields) {
    this.customFields = customFields;
  }


  @Override
  public boolean equals(java.lang.Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    JobInstanceInfoDto jobInstanceInfoDto = (JobInstanceInfoDto) o;
    return Objects.equals(this.timerName, jobInstanceInfoDto.timerName) &&
        Objects.equals(this.code, jobInstanceInfoDto.code) &&
        Objects.equals(this.lastTransactionDate, jobInstanceInfoDto.lastTransactionDate) &&
        Objects.equals(this.invoiceDate, jobInstanceInfoDto.invoiceDate) &&
        Objects.equals(this.billingCycle, jobInstanceInfoDto.billingCycle) &&
        Objects.equals(this.forceExecution, jobInstanceInfoDto.forceExecution) &&
        Objects.equals(this.runOnNodes, jobInstanceInfoDto.runOnNodes) &&
        Objects.equals(this.parameters, jobInstanceInfoDto.parameters) &&
        Objects.equals(this.customFields, jobInstanceInfoDto.customFields);
  }

  @Override
  public int hashCode() {
    return Objects.hash(timerName, code, lastTransactionDate, invoiceDate, billingCycle, forceExecution, runOnNodes, parameters, customFields);
  }


  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class JobInstanceInfoDto {\n");
    sb.append("    timerName: ").append(toIndentedString(timerName)).append("\n");
    sb.append("    code: ").append(toIndentedString(code)).append("\n");
    sb.append("    lastTransactionDate: ").append(toIndentedString(lastTransactionDate)).append("\n");
    sb.append("    invoiceDate: ").append(toIndentedString(invoiceDate)).append("\n");
    sb.append("    billingCycle: ").append(toIndentedString(billingCycle)).append("\n");
    sb.append("    forceExecution: ").append(toIndentedString(forceExecution)).append("\n");
    sb.append("    runOnNodes: ").append(toIndentedString(runOnNodes)).append("\n");
    sb.append("    parameters: ").append(toIndentedString(parameters)).append("\n");
    sb.append("    customFields: ").append(toIndentedString(customFields)).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    ");
  }

}

