Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance. Project price only 1 $
You can buy this project and download/modify it how often you want.
/*
* Seeq REST API
* No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
*
* OpenAPI spec version: 63.1.6-v202409101657
*
*
* 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.ScalarPropertyV1;
import io.swagger.v3.oas.annotations.media.Schema;
import java.util.ArrayList;
import java.util.List;
/**
* DatasourceInputV1
*/
public class DatasourceInputV1 {
@JsonProperty("additionalProperties")
private List additionalProperties = new ArrayList();
@JsonProperty("cacheEnabled")
private Boolean cacheEnabled = null;
/**
* If StoredInSeeq is set to true, then this is where conditions under this datasource will be stored. Valid values: POSTGRES.
*/
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("indexingScheduleSupported")
private Boolean indexingScheduleSupported = false;
@JsonProperty("name")
private String name = null;
/**
* If StoredInSeeq is set to true, then this is where signals under this datasource will be stored. Valid values: FILE_SIGNAL_STORAGE.
*/
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("storedInSeeq")
private Boolean storedInSeeq = false;
public DatasourceInputV1 additionalProperties(List additionalProperties) {
this.additionalProperties = additionalProperties;
return this;
}
public DatasourceInputV1 addAdditionalPropertiesItem(ScalarPropertyV1 additionalPropertiesItem) {
if (this.additionalProperties == null) {
this.additionalProperties = new ArrayList();
}
this.additionalProperties.add(additionalPropertiesItem);
return this;
}
/**
* Additional properties to set on the datasource
* @return additionalProperties
**/
@Schema(description = "Additional properties to set on the datasource")
public List getAdditionalProperties() {
return additionalProperties;
}
public void setAdditionalProperties(List additionalProperties) {
this.additionalProperties = additionalProperties;
}
public DatasourceInputV1 cacheEnabled(Boolean cacheEnabled) {
this.cacheEnabled = cacheEnabled;
return this;
}
/**
* True if this datasource's signal data should be cached in Seeq; false otherwise
* @return cacheEnabled
**/
@Schema(description = "True if this datasource's signal data should be cached in Seeq; false otherwise")
public Boolean getCacheEnabled() {
return cacheEnabled;
}
public void setCacheEnabled(Boolean cacheEnabled) {
this.cacheEnabled = cacheEnabled;
}
public DatasourceInputV1 conditionLocation(ConditionLocationEnum conditionLocation) {
this.conditionLocation = conditionLocation;
return this;
}
/**
* If StoredInSeeq is set to true, then this is where conditions under this datasource will be stored. Valid values: POSTGRES.
* @return conditionLocation
**/
@Schema(description = "If StoredInSeeq is set to true, then this is where conditions under this datasource will be stored. Valid values: POSTGRES.")
public ConditionLocationEnum getConditionLocation() {
return conditionLocation;
}
public void setConditionLocation(ConditionLocationEnum conditionLocation) {
this.conditionLocation = conditionLocation;
}
public DatasourceInputV1 datasourceClass(String datasourceClass) {
this.datasourceClass = datasourceClass;
return this;
}
/**
* The class of the datasource
* @return datasourceClass
**/
@Schema(required = true, description = "The class of the datasource")
public String getDatasourceClass() {
return datasourceClass;
}
public void setDatasourceClass(String datasourceClass) {
this.datasourceClass = datasourceClass;
}
public DatasourceInputV1 datasourceId(String datasourceId) {
this.datasourceId = datasourceId;
return this;
}
/**
* The ID of the datasource
* @return datasourceId
**/
@Schema(required = true, description = "The ID of the datasource")
public String getDatasourceId() {
return datasourceId;
}
public void setDatasourceId(String datasourceId) {
this.datasourceId = datasourceId;
}
public DatasourceInputV1 description(String description) {
this.description = description;
return this;
}
/**
* Clarifying information or other plain language description of this item. An input of just whitespaces is equivalent to a null input.
* @return description
**/
@Schema(description = "Clarifying information or other plain language description of this item. An input of just whitespaces is equivalent to a null input.")
public String getDescription() {
return description;
}
public void setDescription(String description) {
this.description = description;
}
public DatasourceInputV1 indexingScheduleSupported(Boolean indexingScheduleSupported) {
this.indexingScheduleSupported = indexingScheduleSupported;
return this;
}
/**
* True if for this datasource indexing can be scheduled or requested from Datasource Management UI.
* @return indexingScheduleSupported
**/
@Schema(description = "True if 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 DatasourceInputV1 name(String name) {
this.name = name;
return this;
}
/**
* Human readable name. Required during creation. An input of just whitespaces is equivalent to a null input.
* @return name
**/
@Schema(required = true, description = "Human readable name. Required during creation. An input of just whitespaces is equivalent to a null input.")
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public DatasourceInputV1 signalLocation(SignalLocationEnum signalLocation) {
this.signalLocation = signalLocation;
return this;
}
/**
* If StoredInSeeq is set to true, then this is where signals under this datasource will be stored. Valid values: FILE_SIGNAL_STORAGE.
* @return signalLocation
**/
@Schema(description = "If StoredInSeeq is set to true, then this is where signals under this datasource will be stored. Valid values: FILE_SIGNAL_STORAGE.")
public SignalLocationEnum getSignalLocation() {
return signalLocation;
}
public void setSignalLocation(SignalLocationEnum signalLocation) {
this.signalLocation = signalLocation;
}
public DatasourceInputV1 storedInSeeq(Boolean storedInSeeq) {
this.storedInSeeq = storedInSeeq;
return this;
}
/**
* True if this datasource's data is stored in Seeq; false otherwise (e.g. a remote datasource like PI).
* @return storedInSeeq
**/
@Schema(description = "True if this datasource's data is stored in Seeq; false otherwise (e.g. a remote datasource like PI).")
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;
}
DatasourceInputV1 datasourceInputV1 = (DatasourceInputV1) o;
return Objects.equals(this.additionalProperties, datasourceInputV1.additionalProperties) &&
Objects.equals(this.cacheEnabled, datasourceInputV1.cacheEnabled) &&
Objects.equals(this.conditionLocation, datasourceInputV1.conditionLocation) &&
Objects.equals(this.datasourceClass, datasourceInputV1.datasourceClass) &&
Objects.equals(this.datasourceId, datasourceInputV1.datasourceId) &&
Objects.equals(this.description, datasourceInputV1.description) &&
Objects.equals(this.indexingScheduleSupported, datasourceInputV1.indexingScheduleSupported) &&
Objects.equals(this.name, datasourceInputV1.name) &&
Objects.equals(this.signalLocation, datasourceInputV1.signalLocation) &&
Objects.equals(this.storedInSeeq, datasourceInputV1.storedInSeeq);
}
@Override
public int hashCode() {
return Objects.hash(additionalProperties, cacheEnabled, conditionLocation, datasourceClass, datasourceId, description, indexingScheduleSupported, name, signalLocation, storedInSeeq);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class DatasourceInputV1 {\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(" indexingScheduleSupported: ").append(toIndentedString(indexingScheduleSupported)).append("\n");
sb.append(" name: ").append(toIndentedString(name)).append("\n");
sb.append(" signalLocation: ").append(toIndentedString(signalLocation)).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 ");
}
}