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

com.seeq.model.DatasourceStatusV1 Maven / Gradle / Ivy

There is a newer version: 66.0.0-v202407310200
Show newest version
/*
 * Seeq REST API
 * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
 *
 * OpenAPI spec version: 64.3.0-v202405012032
 * 
 *
 * 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.seeq.model;

import java.util.Objects;
import java.util.Arrays;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue;
import com.seeq.model.DatasourceStatisticsV1;
import io.swagger.v3.oas.annotations.media.Schema;
/**
 * List of datasource statuses
 */
@Schema(description = "List of datasource statuses")
public class DatasourceStatusV1 {
  @JsonProperty("datasourceClass")
  private String datasourceClass = null;

  @JsonProperty("datasourceGuid")
  private String datasourceGuid = null;

  @JsonProperty("datasourceId")
  private String datasourceId = null;

  @JsonProperty("datasourceName")
  private String datasourceName = null;

  @JsonProperty("enabled")
  private Boolean enabled = false;

  @JsonProperty("seeqInternal")
  private Boolean seeqInternal = false;

  @JsonProperty("statistics")
  private DatasourceStatisticsV1 statistics = null;

  @JsonProperty("storedInSeeq")
  private Boolean storedInSeeq = false;

  public DatasourceStatusV1 datasourceClass(String datasourceClass) {
    this.datasourceClass = datasourceClass;
    return this;
  }

   /**
   * The class of the datasource
   * @return datasourceClass
  **/
  @Schema(description = "The class of the datasource")
  public String getDatasourceClass() {
    return datasourceClass;
  }

  public void setDatasourceClass(String datasourceClass) {
    this.datasourceClass = datasourceClass;
  }

  public DatasourceStatusV1 datasourceGuid(String datasourceGuid) {
    this.datasourceGuid = datasourceGuid;
    return this;
  }

   /**
   * The Seeq ID of the datasource
   * @return datasourceGuid
  **/
  @Schema(description = "The Seeq ID of the datasource")
  public String getDatasourceGuid() {
    return datasourceGuid;
  }

  public void setDatasourceGuid(String datasourceGuid) {
    this.datasourceGuid = datasourceGuid;
  }

  public DatasourceStatusV1 datasourceId(String datasourceId) {
    this.datasourceId = datasourceId;
    return this;
  }

   /**
   * The ID of the datasource
   * @return datasourceId
  **/
  @Schema(description = "The ID of the datasource")
  public String getDatasourceId() {
    return datasourceId;
  }

  public void setDatasourceId(String datasourceId) {
    this.datasourceId = datasourceId;
  }

  public DatasourceStatusV1 datasourceName(String datasourceName) {
    this.datasourceName = datasourceName;
    return this;
  }

   /**
   * The name of the datasource
   * @return datasourceName
  **/
  @Schema(description = "The name of the datasource")
  public String getDatasourceName() {
    return datasourceName;
  }

  public void setDatasourceName(String datasourceName) {
    this.datasourceName = datasourceName;
  }

  public DatasourceStatusV1 enabled(Boolean enabled) {
    this.enabled = enabled;
    return this;
  }

   /**
   * Whether the datasource is enabled
   * @return enabled
  **/
  @Schema(description = "Whether the datasource is enabled")
  public Boolean getEnabled() {
    return enabled;
  }

  public void setEnabled(Boolean enabled) {
    this.enabled = enabled;
  }

  public DatasourceStatusV1 seeqInternal(Boolean seeqInternal) {
    this.seeqInternal = seeqInternal;
    return this;
  }

   /**
   * Whether this datasource is internal to Seeq (System Datasource) or not.
   * @return seeqInternal
  **/
  @Schema(description = "Whether this datasource is internal to Seeq (System Datasource) or not.")
  public Boolean getSeeqInternal() {
    return seeqInternal;
  }

  public void setSeeqInternal(Boolean seeqInternal) {
    this.seeqInternal = seeqInternal;
  }

  public DatasourceStatusV1 statistics(DatasourceStatisticsV1 statistics) {
    this.statistics = statistics;
    return this;
  }

   /**
   * Get statistics
   * @return statistics
  **/
  @Schema(description = "")
  public DatasourceStatisticsV1 getStatistics() {
    return statistics;
  }

  public void setStatistics(DatasourceStatisticsV1 statistics) {
    this.statistics = statistics;
  }

  public DatasourceStatusV1 storedInSeeq(Boolean storedInSeeq) {
    this.storedInSeeq = storedInSeeq;
    return this;
  }

   /**
   * Whether the actual data is stored in Seeq or not.
   * @return storedInSeeq
  **/
  @Schema(description = "Whether the actual data is stored in Seeq or not.")
  public Boolean getStoredInSeeq() {
    return storedInSeeq;
  }

  public void setStoredInSeeq(Boolean storedInSeeq) {
    this.storedInSeeq = storedInSeeq;
  }


  @Override
  public boolean equals(java.lang.Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    DatasourceStatusV1 datasourceStatusV1 = (DatasourceStatusV1) o;
    return Objects.equals(this.datasourceClass, datasourceStatusV1.datasourceClass) &&
        Objects.equals(this.datasourceGuid, datasourceStatusV1.datasourceGuid) &&
        Objects.equals(this.datasourceId, datasourceStatusV1.datasourceId) &&
        Objects.equals(this.datasourceName, datasourceStatusV1.datasourceName) &&
        Objects.equals(this.enabled, datasourceStatusV1.enabled) &&
        Objects.equals(this.seeqInternal, datasourceStatusV1.seeqInternal) &&
        Objects.equals(this.statistics, datasourceStatusV1.statistics) &&
        Objects.equals(this.storedInSeeq, datasourceStatusV1.storedInSeeq);
  }

  @Override
  public int hashCode() {
    return Objects.hash(datasourceClass, datasourceGuid, datasourceId, datasourceName, enabled, seeqInternal, statistics, storedInSeeq);
  }


  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class DatasourceStatusV1 {\n");
    
    sb.append("    datasourceClass: ").append(toIndentedString(datasourceClass)).append("\n");
    sb.append("    datasourceGuid: ").append(toIndentedString(datasourceGuid)).append("\n");
    sb.append("    datasourceId: ").append(toIndentedString(datasourceId)).append("\n");
    sb.append("    datasourceName: ").append(toIndentedString(datasourceName)).append("\n");
    sb.append("    enabled: ").append(toIndentedString(enabled)).append("\n");
    sb.append("    seeqInternal: ").append(toIndentedString(seeqInternal)).append("\n");
    sb.append("    statistics: ").append(toIndentedString(statistics)).append("\n");
    sb.append("    storedInSeeq: ").append(toIndentedString(storedInSeeq)).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    ");
  }
  
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy