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

com.seeq.model.DatasourceOutputV1 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.PermissionsV1;
import com.seeq.model.ScalarPropertyV1;
import io.swagger.v3.oas.annotations.media.Schema;
import java.util.ArrayList;
import java.util.List;
/**
 * DatasourceOutputV1
 */
public class DatasourceOutputV1 {
  @JsonProperty("additionalProperties")
  private List additionalProperties = new ArrayList();

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

  /**
   * Where this datasource's condition data is stored, if this datasource is stored in seeq
   */
  public enum ConditionLocationEnum {
    FILE_SIGNAL_STORAGE("FILE_SIGNAL_STORAGE"),
    POSTGRES("POSTGRES");

    private String value;

    ConditionLocationEnum(String value) {
      this.value = value;
    }
    @JsonValue
    public String getValue() {
      return value;
    }

    @Override
    public String toString() {
      return String.valueOf(value);
    }
    @JsonCreator
    public static ConditionLocationEnum fromValue(String input) {
      for (ConditionLocationEnum b : ConditionLocationEnum.values()) {
        if (b.value.equals(input)) {
          return b;
        }
      }
      return null;
    }

  }  @JsonProperty("conditionLocation")
  private ConditionLocationEnum conditionLocation = null;

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

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

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

  @JsonProperty("effectivePermissions")
  private PermissionsV1 effectivePermissions = null;

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

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

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

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

  @JsonProperty("maxRequests")
  private Long maxRequests = null;

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

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

  /**
   * Where this datasource's signal data is stored, if this datasource is stored in seeq
   */
  public enum SignalLocationEnum {
    FILE_SIGNAL_STORAGE("FILE_SIGNAL_STORAGE"),
    POSTGRES("POSTGRES");

    private String value;

    SignalLocationEnum(String value) {
      this.value = value;
    }
    @JsonValue
    public String getValue() {
      return value;
    }

    @Override
    public String toString() {
      return String.valueOf(value);
    }
    @JsonCreator
    public static SignalLocationEnum fromValue(String input) {
      for (SignalLocationEnum b : SignalLocationEnum.values()) {
        if (b.value.equals(input)) {
          return b;
        }
      }
      return null;
    }

  }  @JsonProperty("signalLocation")
  private SignalLocationEnum signalLocation = null;

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

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

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

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

  public DatasourceOutputV1 additionalProperties(List additionalProperties) {
    this.additionalProperties = additionalProperties;
    return this;
  }

  public DatasourceOutputV1 addAdditionalPropertiesItem(ScalarPropertyV1 additionalPropertiesItem) {
    if (this.additionalProperties == null) {
      this.additionalProperties = new ArrayList();
    }
    this.additionalProperties.add(additionalPropertiesItem);
    return this;
  }

   /**
   * Additional properties of the datasource
   * @return additionalProperties
  **/
  @Schema(description = "Additional properties of the datasource")
  public List getAdditionalProperties() {
    return additionalProperties;
  }

  public void setAdditionalProperties(List additionalProperties) {
    this.additionalProperties = additionalProperties;
  }

  public DatasourceOutputV1 cacheEnabled(Boolean cacheEnabled) {
    this.cacheEnabled = cacheEnabled;
    return this;
  }

   /**
   * Whether this datasource's signal data will be cached in Seeq.
   * @return cacheEnabled
  **/
  @Schema(description = "Whether this datasource's signal data will be cached in Seeq.")
  public Boolean getCacheEnabled() {
    return cacheEnabled;
  }

  public void setCacheEnabled(Boolean cacheEnabled) {
    this.cacheEnabled = cacheEnabled;
  }

  public DatasourceOutputV1 conditionLocation(ConditionLocationEnum conditionLocation) {
    this.conditionLocation = conditionLocation;
    return this;
  }

   /**
   * Where this datasource's condition data is stored, if this datasource is stored in seeq
   * @return conditionLocation
  **/
  @Schema(description = "Where this datasource's condition data is stored, if this datasource is stored in seeq")
  public ConditionLocationEnum getConditionLocation() {
    return conditionLocation;
  }

  public void setConditionLocation(ConditionLocationEnum conditionLocation) {
    this.conditionLocation = conditionLocation;
  }

  public DatasourceOutputV1 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 DatasourceOutputV1 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 DatasourceOutputV1 description(String description) {
    this.description = description;
    return this;
  }

   /**
   * Clarifying information or other plain language description of this item
   * @return description
  **/
  @Schema(description = "Clarifying information or other plain language description of this item")
  public String getDescription() {
    return description;
  }

  public void setDescription(String description) {
    this.description = description;
  }

  public DatasourceOutputV1 effectivePermissions(PermissionsV1 effectivePermissions) {
    this.effectivePermissions = effectivePermissions;
    return this;
  }

   /**
   * Get effectivePermissions
   * @return effectivePermissions
  **/
  @Schema(description = "")
  public PermissionsV1 getEffectivePermissions() {
    return effectivePermissions;
  }

  public void setEffectivePermissions(PermissionsV1 effectivePermissions) {
    this.effectivePermissions = effectivePermissions;
  }

  public DatasourceOutputV1 id(String id) {
    this.id = id;
    return this;
  }

   /**
   * The ID that can be used to interact with the item
   * @return id
  **/
  @Schema(required = true, description = "The ID that can be used to interact with the item")
  public String getId() {
    return id;
  }

  public void setId(String id) {
    this.id = id;
  }

  public DatasourceOutputV1 indexingScheduleSupported(Boolean indexingScheduleSupported) {
    this.indexingScheduleSupported = indexingScheduleSupported;
    return this;
  }

   /**
   * Whether for this datasource indexing can be scheduled or requested from Datasource Management UI.
   * @return indexingScheduleSupported
  **/
  @Schema(description = "Whether for this datasource indexing can be scheduled or requested from Datasource Management UI.")
  public Boolean getIndexingScheduleSupported() {
    return indexingScheduleSupported;
  }

  public void setIndexingScheduleSupported(Boolean indexingScheduleSupported) {
    this.indexingScheduleSupported = indexingScheduleSupported;
  }

  public DatasourceOutputV1 isArchived(Boolean isArchived) {
    this.isArchived = isArchived;
    return this;
  }

   /**
   * Whether item is archived
   * @return isArchived
  **/
  @Schema(description = "Whether item is archived")
  public Boolean getIsArchived() {
    return isArchived;
  }

  public void setIsArchived(Boolean isArchived) {
    this.isArchived = isArchived;
  }

  public DatasourceOutputV1 isRedacted(Boolean isRedacted) {
    this.isRedacted = isRedacted;
    return this;
  }

   /**
   * Whether item is redacted
   * @return isRedacted
  **/
  @Schema(description = "Whether item is redacted")
  public Boolean getIsRedacted() {
    return isRedacted;
  }

  public void setIsRedacted(Boolean isRedacted) {
    this.isRedacted = isRedacted;
  }

  public DatasourceOutputV1 maxRequests(Long maxRequests) {
    this.maxRequests = maxRequests;
    return this;
  }

   /**
   * Configured max requests for the datasource
   * @return maxRequests
  **/
  @Schema(description = "Configured max requests for the datasource")
  public Long getMaxRequests() {
    return maxRequests;
  }

  public void setMaxRequests(Long maxRequests) {
    this.maxRequests = maxRequests;
  }

  public DatasourceOutputV1 name(String name) {
    this.name = name;
    return this;
  }

   /**
   * The human readable name
   * @return name
  **/
  @Schema(required = true, description = "The human readable name")
  public String getName() {
    return name;
  }

  public void setName(String name) {
    this.name = name;
  }

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

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

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

  public DatasourceOutputV1 signalLocation(SignalLocationEnum signalLocation) {
    this.signalLocation = signalLocation;
    return this;
  }

   /**
   * Where this datasource's signal data is stored, if this datasource is stored in seeq
   * @return signalLocation
  **/
  @Schema(description = "Where this datasource's signal data is stored, if this datasource is stored in seeq")
  public SignalLocationEnum getSignalLocation() {
    return signalLocation;
  }

  public void setSignalLocation(SignalLocationEnum signalLocation) {
    this.signalLocation = signalLocation;
  }

  public DatasourceOutputV1 statusMessage(String statusMessage) {
    this.statusMessage = statusMessage;
    return this;
  }

   /**
   * A plain language status message with information about any issues that may have been encountered during an operation
   * @return statusMessage
  **/
  @Schema(description = "A plain language status message with information about any issues that may have been encountered during an operation")
  public String getStatusMessage() {
    return statusMessage;
  }

  public void setStatusMessage(String statusMessage) {
    this.statusMessage = statusMessage;
  }

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

   /**
   * Whether this datasource's data is stored in Seeq.
   * @return storedInSeeq
  **/
  @Schema(description = "Whether this datasource's data is stored in Seeq.")
  public Boolean getStoredInSeeq() {
    return storedInSeeq;
  }

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

  public DatasourceOutputV1 translationKey(String translationKey) {
    this.translationKey = translationKey;
    return this;
  }

   /**
   * The item's translation key, if any
   * @return translationKey
  **/
  @Schema(description = "The item's translation key, if any")
  public String getTranslationKey() {
    return translationKey;
  }

  public void setTranslationKey(String translationKey) {
    this.translationKey = translationKey;
  }

  public DatasourceOutputV1 type(String type) {
    this.type = type;
    return this;
  }

   /**
   * The type of the item
   * @return type
  **/
  @Schema(required = true, description = "The type of the item")
  public String getType() {
    return type;
  }

  public void setType(String type) {
    this.type = type;
  }


  @Override
  public boolean equals(java.lang.Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    DatasourceOutputV1 datasourceOutputV1 = (DatasourceOutputV1) o;
    return Objects.equals(this.additionalProperties, datasourceOutputV1.additionalProperties) &&
        Objects.equals(this.cacheEnabled, datasourceOutputV1.cacheEnabled) &&
        Objects.equals(this.conditionLocation, datasourceOutputV1.conditionLocation) &&
        Objects.equals(this.datasourceClass, datasourceOutputV1.datasourceClass) &&
        Objects.equals(this.datasourceId, datasourceOutputV1.datasourceId) &&
        Objects.equals(this.description, datasourceOutputV1.description) &&
        Objects.equals(this.effectivePermissions, datasourceOutputV1.effectivePermissions) &&
        Objects.equals(this.id, datasourceOutputV1.id) &&
        Objects.equals(this.indexingScheduleSupported, datasourceOutputV1.indexingScheduleSupported) &&
        Objects.equals(this.isArchived, datasourceOutputV1.isArchived) &&
        Objects.equals(this.isRedacted, datasourceOutputV1.isRedacted) &&
        Objects.equals(this.maxRequests, datasourceOutputV1.maxRequests) &&
        Objects.equals(this.name, datasourceOutputV1.name) &&
        Objects.equals(this.seeqInternal, datasourceOutputV1.seeqInternal) &&
        Objects.equals(this.signalLocation, datasourceOutputV1.signalLocation) &&
        Objects.equals(this.statusMessage, datasourceOutputV1.statusMessage) &&
        Objects.equals(this.storedInSeeq, datasourceOutputV1.storedInSeeq) &&
        Objects.equals(this.translationKey, datasourceOutputV1.translationKey) &&
        Objects.equals(this.type, datasourceOutputV1.type);
  }

  @Override
  public int hashCode() {
    return Objects.hash(additionalProperties, cacheEnabled, conditionLocation, datasourceClass, datasourceId, description, effectivePermissions, id, indexingScheduleSupported, isArchived, isRedacted, maxRequests, name, seeqInternal, signalLocation, statusMessage, storedInSeeq, translationKey, type);
  }


  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class DatasourceOutputV1 {\n");
    
    sb.append("    additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n");
    sb.append("    cacheEnabled: ").append(toIndentedString(cacheEnabled)).append("\n");
    sb.append("    conditionLocation: ").append(toIndentedString(conditionLocation)).append("\n");
    sb.append("    datasourceClass: ").append(toIndentedString(datasourceClass)).append("\n");
    sb.append("    datasourceId: ").append(toIndentedString(datasourceId)).append("\n");
    sb.append("    description: ").append(toIndentedString(description)).append("\n");
    sb.append("    effectivePermissions: ").append(toIndentedString(effectivePermissions)).append("\n");
    sb.append("    id: ").append(toIndentedString(id)).append("\n");
    sb.append("    indexingScheduleSupported: ").append(toIndentedString(indexingScheduleSupported)).append("\n");
    sb.append("    isArchived: ").append(toIndentedString(isArchived)).append("\n");
    sb.append("    isRedacted: ").append(toIndentedString(isRedacted)).append("\n");
    sb.append("    maxRequests: ").append(toIndentedString(maxRequests)).append("\n");
    sb.append("    name: ").append(toIndentedString(name)).append("\n");
    sb.append("    seeqInternal: ").append(toIndentedString(seeqInternal)).append("\n");
    sb.append("    signalLocation: ").append(toIndentedString(signalLocation)).append("\n");
    sb.append("    statusMessage: ").append(toIndentedString(statusMessage)).append("\n");
    sb.append("    storedInSeeq: ").append(toIndentedString(storedInSeeq)).append("\n");
    sb.append("    translationKey: ").append(toIndentedString(translationKey)).append("\n");
    sb.append("    type: ").append(toIndentedString(type)).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