All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.opendatadiscovery.client.model.DataTransformerRun Maven / Gradle / Ivy

Go to download

Ingestion Contract WebFlux Client defines OpenDataDiscovery APIs and models for Spring WebClient

There is a newer version: 0.1.41
Show newest version
/*
 * OpenDataDiscovery API Contract
 * OpenDataDiscovery API Contract
 *
 * The version of the OpenAPI document: 0.0.1
 * 
 *
 * 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.opendatadiscovery.client.model;

import java.util.Objects;
import java.util.Arrays;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonTypeName;
import com.fasterxml.jackson.annotation.JsonValue;
import java.time.OffsetDateTime;
import org.opendatadiscovery.client.model.JobRunStatus;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
import com.fasterxml.jackson.annotation.JsonTypeName;

/**
 * DataTransformerRun
 */
@JsonPropertyOrder({
  DataTransformerRun.JSON_PROPERTY_TRANSFORMER_ODDRN,
  DataTransformerRun.JSON_PROPERTY_START_TIME,
  DataTransformerRun.JSON_PROPERTY_END_TIME,
  DataTransformerRun.JSON_PROPERTY_STATUS_REASON,
  DataTransformerRun.JSON_PROPERTY_STATUS
})
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-04-17T12:42:16.563637609Z[Etc/UTC]")
public class DataTransformerRun {
  public static final String JSON_PROPERTY_TRANSFORMER_ODDRN = "transformer_oddrn";
  private String transformerOddrn;

  public static final String JSON_PROPERTY_START_TIME = "start_time";
  private OffsetDateTime startTime;

  public static final String JSON_PROPERTY_END_TIME = "end_time";
  private OffsetDateTime endTime;

  public static final String JSON_PROPERTY_STATUS_REASON = "status_reason";
  private String statusReason;

  public static final String JSON_PROPERTY_STATUS = "status";
  private JobRunStatus status;

  public DataTransformerRun() {
  }

  public DataTransformerRun transformerOddrn(String transformerOddrn) {
    
    this.transformerOddrn = transformerOddrn;
    return this;
  }

   /**
   * Get transformerOddrn
   * @return transformerOddrn
  **/
  @javax.annotation.Nonnull
  @JsonProperty(JSON_PROPERTY_TRANSFORMER_ODDRN)
  @JsonInclude(value = JsonInclude.Include.ALWAYS)

  public String getTransformerOddrn() {
    return transformerOddrn;
  }


  @JsonProperty(JSON_PROPERTY_TRANSFORMER_ODDRN)
  @JsonInclude(value = JsonInclude.Include.ALWAYS)
  public void setTransformerOddrn(String transformerOddrn) {
    this.transformerOddrn = transformerOddrn;
  }


  public DataTransformerRun startTime(OffsetDateTime startTime) {
    
    this.startTime = startTime;
    return this;
  }

   /**
   * Get startTime
   * @return startTime
  **/
  @javax.annotation.Nonnull
  @JsonProperty(JSON_PROPERTY_START_TIME)
  @JsonInclude(value = JsonInclude.Include.ALWAYS)

  public OffsetDateTime getStartTime() {
    return startTime;
  }


  @JsonProperty(JSON_PROPERTY_START_TIME)
  @JsonInclude(value = JsonInclude.Include.ALWAYS)
  public void setStartTime(OffsetDateTime startTime) {
    this.startTime = startTime;
  }


  public DataTransformerRun endTime(OffsetDateTime endTime) {
    
    this.endTime = endTime;
    return this;
  }

   /**
   * Get endTime
   * @return endTime
  **/
  @javax.annotation.Nullable
  @JsonProperty(JSON_PROPERTY_END_TIME)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)

  public OffsetDateTime getEndTime() {
    return endTime;
  }


  @JsonProperty(JSON_PROPERTY_END_TIME)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
  public void setEndTime(OffsetDateTime endTime) {
    this.endTime = endTime;
  }


  public DataTransformerRun statusReason(String statusReason) {
    
    this.statusReason = statusReason;
    return this;
  }

   /**
   * Get statusReason
   * @return statusReason
  **/
  @javax.annotation.Nullable
  @JsonProperty(JSON_PROPERTY_STATUS_REASON)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)

  public String getStatusReason() {
    return statusReason;
  }


  @JsonProperty(JSON_PROPERTY_STATUS_REASON)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
  public void setStatusReason(String statusReason) {
    this.statusReason = statusReason;
  }


  public DataTransformerRun status(JobRunStatus status) {
    
    this.status = status;
    return this;
  }

   /**
   * Get status
   * @return status
  **/
  @javax.annotation.Nonnull
  @JsonProperty(JSON_PROPERTY_STATUS)
  @JsonInclude(value = JsonInclude.Include.ALWAYS)

  public JobRunStatus getStatus() {
    return status;
  }


  @JsonProperty(JSON_PROPERTY_STATUS)
  @JsonInclude(value = JsonInclude.Include.ALWAYS)
  public void setStatus(JobRunStatus status) {
    this.status = status;
  }

  @Override
  public boolean equals(Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    DataTransformerRun dataTransformerRun = (DataTransformerRun) o;
    return Objects.equals(this.transformerOddrn, dataTransformerRun.transformerOddrn) &&
        Objects.equals(this.startTime, dataTransformerRun.startTime) &&
        Objects.equals(this.endTime, dataTransformerRun.endTime) &&
        Objects.equals(this.statusReason, dataTransformerRun.statusReason) &&
        Objects.equals(this.status, dataTransformerRun.status);
  }

  @Override
  public int hashCode() {
    return Objects.hash(transformerOddrn, startTime, endTime, statusReason, status);
  }

  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class DataTransformerRun {\n");
    sb.append("    transformerOddrn: ").append(toIndentedString(transformerOddrn)).append("\n");
    sb.append("    startTime: ").append(toIndentedString(startTime)).append("\n");
    sb.append("    endTime: ").append(toIndentedString(endTime)).append("\n");
    sb.append("    statusReason: ").append(toIndentedString(statusReason)).append("\n");
    sb.append("    status: ").append(toIndentedString(status)).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    ");
  }

}





© 2015 - 2024 Weber Informatics LLC | Privacy Policy