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

org.opendatadiscovery.client.model.DataQualityTestRun 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 io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.time.OffsetDateTime;
import org.opendatadiscovery.client.model.QualityRunStatus;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;

/**
 * DataQualityTestRun
 */
@JsonPropertyOrder({
  DataQualityTestRun.JSON_PROPERTY_DATA_QUALITY_TEST_ODDRN,
  DataQualityTestRun.JSON_PROPERTY_START_TIME,
  DataQualityTestRun.JSON_PROPERTY_END_TIME,
  DataQualityTestRun.JSON_PROPERTY_STATUS_REASON,
  DataQualityTestRun.JSON_PROPERTY_STATUS
})
@JsonTypeName("DataQualityTestRun")
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-07-18T08:56:03.217273Z[Etc/UTC]")
public class DataQualityTestRun {
  public static final String JSON_PROPERTY_DATA_QUALITY_TEST_ODDRN = "data_quality_test_oddrn";
  private String dataQualityTestOddrn;

  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 QualityRunStatus status;


  public DataQualityTestRun dataQualityTestOddrn(String dataQualityTestOddrn) {
    
    this.dataQualityTestOddrn = dataQualityTestOddrn;
    return this;
  }

   /**
   * Get dataQualityTestOddrn
   * @return dataQualityTestOddrn
  **/
  @ApiModelProperty(required = true, value = "")
  @JsonProperty(JSON_PROPERTY_DATA_QUALITY_TEST_ODDRN)
  @JsonInclude(value = JsonInclude.Include.ALWAYS)

  public String getDataQualityTestOddrn() {
    return dataQualityTestOddrn;
  }


  @JsonProperty(JSON_PROPERTY_DATA_QUALITY_TEST_ODDRN)
  @JsonInclude(value = JsonInclude.Include.ALWAYS)
  public void setDataQualityTestOddrn(String dataQualityTestOddrn) {
    this.dataQualityTestOddrn = dataQualityTestOddrn;
  }


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

   /**
   * Get startTime
   * @return startTime
  **/
  @ApiModelProperty(required = true, value = "")
  @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 DataQualityTestRun endTime(OffsetDateTime endTime) {
    
    this.endTime = endTime;
    return this;
  }

   /**
   * Get endTime
   * @return endTime
  **/
  @javax.annotation.Nullable
  @ApiModelProperty(value = "")
  @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 DataQualityTestRun statusReason(String statusReason) {
    
    this.statusReason = statusReason;
    return this;
  }

   /**
   * Get statusReason
   * @return statusReason
  **/
  @javax.annotation.Nullable
  @ApiModelProperty(value = "")
  @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 DataQualityTestRun status(QualityRunStatus status) {
    
    this.status = status;
    return this;
  }

   /**
   * Get status
   * @return status
  **/
  @ApiModelProperty(required = true, value = "")
  @JsonProperty(JSON_PROPERTY_STATUS)
  @JsonInclude(value = JsonInclude.Include.ALWAYS)

  public QualityRunStatus getStatus() {
    return status;
  }


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


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

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

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