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: 60.1.3-v202304250417
*
*
* 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.ConnectionStatusOutputV1;
import com.seeq.model.SyncProgressOutputV1;
import io.swagger.v3.oas.annotations.media.Schema;
import java.util.ArrayList;
import java.util.List;
/**
* The status for all datasources accessible by the user. Available only when the required level of detail is 'Complete' or 'Summary'
*/
@Schema(description = "The status for all datasources accessible by the user. Available only when the required level of detail is 'Complete' or 'Summary'")
public class DatasourceSummaryStatusOutputV1 {
@JsonProperty("allowRequests")
private Boolean allowRequests = false;
@JsonProperty("averageIndexingDuration")
private Long averageIndexingDuration = null;
@JsonProperty("cacheEnabled")
private Boolean cacheEnabled = false;
@JsonProperty("connections")
private List connections = new ArrayList();
@JsonProperty("connectionsConnectedCount")
private Integer connectionsConnectedCount = null;
@JsonProperty("currentIndexAt")
private String currentIndexAt = null;
@JsonProperty("currentIndexingDuration")
private Long currentIndexingDuration = null;
@JsonProperty("currentIndexingPercentage")
private Integer currentIndexingPercentage = null;
@JsonProperty("currentIndexingStartedAt")
private String currentIndexingStartedAt = null;
@JsonProperty("datasourceClass")
private String datasourceClass = null;
@JsonProperty("datasourceId")
private String datasourceId = null;
@JsonProperty("id")
private String id = null;
@JsonProperty("indexingScheduleSupported")
private Boolean indexingScheduleSupported = false;
@JsonProperty("name")
private String name = null;
@JsonProperty("nextScheduledIndexAt")
private String nextScheduledIndexAt = null;
@JsonProperty("previousIndexAt")
private String previousIndexAt = null;
@JsonProperty("remainingIndexingDuration")
private Long remainingIndexingDuration = null;
@JsonProperty("syncProgress")
private SyncProgressOutputV1 syncProgress = null;
/**
* The aggregate synchronization status of the connections for this datasource
*/
public enum SyncStatusEnum {
ARCHIVING_DELETED_ITEMS("SYNC_ARCHIVING_DELETED_ITEMS"),
IN_PROGRESS("SYNC_IN_PROGRESS"),
INITIALIZING("SYNC_INITIALIZING"),
SUCCESS("SYNC_SUCCESS"),
COMPLETE("SYNC_COMPLETE"),
FAILED("SYNC_FAILED"),
UNKNOWN("SYNC_UNKNOWN");
private String value;
SyncStatusEnum(String value) {
this.value = value;
}
@JsonValue
public String getValue() {
return value;
}
@Override
public String toString() {
return String.valueOf(value);
}
@JsonCreator
public static SyncStatusEnum fromValue(String input) {
for (SyncStatusEnum b : SyncStatusEnum.values()) {
if (b.value.equals(input)) {
return b;
}
}
return null;
}
} @JsonProperty("syncStatus")
private SyncStatusEnum syncStatus = null;
@JsonProperty("totalConnectionsCount")
private Integer totalConnectionsCount = null;
public DatasourceSummaryStatusOutputV1 allowRequests(Boolean allowRequests) {
this.allowRequests = allowRequests;
return this;
}
/**
* Whether Seeq allows requests to the datasource
* @return allowRequests
**/
@Schema(description = "Whether Seeq allows requests to the datasource")
public Boolean getAllowRequests() {
return allowRequests;
}
public void setAllowRequests(Boolean allowRequests) {
this.allowRequests = allowRequests;
}
public DatasourceSummaryStatusOutputV1 averageIndexingDuration(Long averageIndexingDuration) {
this.averageIndexingDuration = averageIndexingDuration;
return this;
}
/**
* The duration in nanoseconds that indexing is expected to take, obtained via the average of the last 10 successful indexing durations, with null indicating no previous successful indexes
* @return averageIndexingDuration
**/
@Schema(description = "The duration in nanoseconds that indexing is expected to take, obtained via the average of the last 10 successful indexing durations, with null indicating no previous successful indexes")
public Long getAverageIndexingDuration() {
return averageIndexingDuration;
}
public void setAverageIndexingDuration(Long averageIndexingDuration) {
this.averageIndexingDuration = averageIndexingDuration;
}
public DatasourceSummaryStatusOutputV1 cacheEnabled(Boolean cacheEnabled) {
this.cacheEnabled = cacheEnabled;
return this;
}
/**
* Whether Cache is enabled for the datasource
* @return cacheEnabled
**/
@Schema(description = "Whether Cache is enabled for the datasource")
public Boolean getCacheEnabled() {
return cacheEnabled;
}
public void setCacheEnabled(Boolean cacheEnabled) {
this.cacheEnabled = cacheEnabled;
}
public DatasourceSummaryStatusOutputV1 connections(List connections) {
this.connections = connections;
return this;
}
public DatasourceSummaryStatusOutputV1 addConnectionsItem(ConnectionStatusOutputV1 connectionsItem) {
if (this.connections == null) {
this.connections = new ArrayList();
}
this.connections.add(connectionsItem);
return this;
}
/**
* The status for each connection that provides data to this datasource. Provided only when the required level of detail is 'Complete'
* @return connections
**/
@Schema(description = "The status for each connection that provides data to this datasource. Provided only when the required level of detail is 'Complete'")
public List getConnections() {
return connections;
}
public void setConnections(List connections) {
this.connections = connections;
}
public DatasourceSummaryStatusOutputV1 connectionsConnectedCount(Integer connectionsConnectedCount) {
this.connectionsConnectedCount = connectionsConnectedCount;
return this;
}
/**
* Number of connections in status 'Connected' providing data for this datasource
* @return connectionsConnectedCount
**/
@Schema(description = "Number of connections in status 'Connected' providing data for this datasource")
public Integer getConnectionsConnectedCount() {
return connectionsConnectedCount;
}
public void setConnectionsConnectedCount(Integer connectionsConnectedCount) {
this.connectionsConnectedCount = connectionsConnectedCount;
}
public DatasourceSummaryStatusOutputV1 currentIndexAt(String currentIndexAt) {
this.currentIndexAt = currentIndexAt;
return this;
}
/**
* The ISO 8601 date of when current index occurred (YYYY-MM-DDThh:mm:ss.sssssssss±hh:mm)
* @return currentIndexAt
**/
@Schema(description = "The ISO 8601 date of when current index occurred (YYYY-MM-DDThh:mm:ss.sssssssss±hh:mm)")
public String getCurrentIndexAt() {
return currentIndexAt;
}
public void setCurrentIndexAt(String currentIndexAt) {
this.currentIndexAt = currentIndexAt;
}
public DatasourceSummaryStatusOutputV1 currentIndexingDuration(Long currentIndexingDuration) {
this.currentIndexingDuration = currentIndexingDuration;
return this;
}
/**
* The duration in nanoseconds from when indexing started to the present time, if indexing is currently occurring
* @return currentIndexingDuration
**/
@Schema(description = "The duration in nanoseconds from when indexing started to the present time, if indexing is currently occurring")
public Long getCurrentIndexingDuration() {
return currentIndexingDuration;
}
public void setCurrentIndexingDuration(Long currentIndexingDuration) {
this.currentIndexingDuration = currentIndexingDuration;
}
public DatasourceSummaryStatusOutputV1 currentIndexingPercentage(Integer currentIndexingPercentage) {
this.currentIndexingPercentage = currentIndexingPercentage;
return this;
}
/**
* The ratio of currentIndexingDuration to averageIndexingDuration, expressed as a percentage and rounded to the nearest integer
* @return currentIndexingPercentage
**/
@Schema(description = "The ratio of currentIndexingDuration to averageIndexingDuration, expressed as a percentage and rounded to the nearest integer")
public Integer getCurrentIndexingPercentage() {
return currentIndexingPercentage;
}
public void setCurrentIndexingPercentage(Integer currentIndexingPercentage) {
this.currentIndexingPercentage = currentIndexingPercentage;
}
public DatasourceSummaryStatusOutputV1 currentIndexingStartedAt(String currentIndexingStartedAt) {
this.currentIndexingStartedAt = currentIndexingStartedAt;
return this;
}
/**
* The ISO 8601 date of when the current indexing started, if indexing is currently occurring (YYYY-MM-DDThh:mm:ss.sssssssss±hh:mm)
* @return currentIndexingStartedAt
**/
@Schema(description = "The ISO 8601 date of when the current indexing started, if indexing is currently occurring (YYYY-MM-DDThh:mm:ss.sssssssss±hh:mm)")
public String getCurrentIndexingStartedAt() {
return currentIndexingStartedAt;
}
public void setCurrentIndexingStartedAt(String currentIndexingStartedAt) {
this.currentIndexingStartedAt = currentIndexingStartedAt;
}
public DatasourceSummaryStatusOutputV1 datasourceClass(String datasourceClass) {
this.datasourceClass = datasourceClass;
return this;
}
/**
* The datasource class. Example: OSIsoft PI
* @return datasourceClass
**/
@Schema(required = true, description = "The datasource class. Example: OSIsoft PI")
public String getDatasourceClass() {
return datasourceClass;
}
public void setDatasourceClass(String datasourceClass) {
this.datasourceClass = datasourceClass;
}
public DatasourceSummaryStatusOutputV1 datasourceId(String datasourceId) {
this.datasourceId = datasourceId;
return this;
}
/**
* The datasource ID
* @return datasourceId
**/
@Schema(required = true, description = "The datasource ID")
public String getDatasourceId() {
return datasourceId;
}
public void setDatasourceId(String datasourceId) {
this.datasourceId = datasourceId;
}
public DatasourceSummaryStatusOutputV1 id(String id) {
this.id = id;
return this;
}
/**
* The Seeq ID of the datasource
* @return id
**/
@Schema(required = true, description = "The Seeq ID of the datasource")
public String getId() {
return id;
}
public void setId(String id) {
this.id = id;
}
public DatasourceSummaryStatusOutputV1 indexingScheduleSupported(Boolean indexingScheduleSupported) {
this.indexingScheduleSupported = indexingScheduleSupported;
return this;
}
/**
* Whether indexing schedule is supported for the datasource
* @return indexingScheduleSupported
**/
@Schema(description = "Whether indexing schedule is supported for the datasource")
public Boolean getIndexingScheduleSupported() {
return indexingScheduleSupported;
}
public void setIndexingScheduleSupported(Boolean indexingScheduleSupported) {
this.indexingScheduleSupported = indexingScheduleSupported;
}
public DatasourceSummaryStatusOutputV1 name(String name) {
this.name = name;
return this;
}
/**
* The name of the datasource
* @return name
**/
@Schema(required = true, description = "The name of the datasource")
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public DatasourceSummaryStatusOutputV1 nextScheduledIndexAt(String nextScheduledIndexAt) {
this.nextScheduledIndexAt = nextScheduledIndexAt;
return this;
}
/**
* The ISO 8601 date of when next indexing is scheduled (YYYY-MM-DDThh:mm:ss.sssssssss±hh:mm)
* @return nextScheduledIndexAt
**/
@Schema(description = "The ISO 8601 date of when next indexing is scheduled (YYYY-MM-DDThh:mm:ss.sssssssss±hh:mm)")
public String getNextScheduledIndexAt() {
return nextScheduledIndexAt;
}
public void setNextScheduledIndexAt(String nextScheduledIndexAt) {
this.nextScheduledIndexAt = nextScheduledIndexAt;
}
public DatasourceSummaryStatusOutputV1 previousIndexAt(String previousIndexAt) {
this.previousIndexAt = previousIndexAt;
return this;
}
/**
* The ISO 8601 date of when previous index occurred (YYYY-MM-DDThh:mm:ss.sssssssss±hh:mm)
* @return previousIndexAt
**/
@Schema(description = "The ISO 8601 date of when previous index occurred (YYYY-MM-DDThh:mm:ss.sssssssss±hh:mm)")
public String getPreviousIndexAt() {
return previousIndexAt;
}
public void setPreviousIndexAt(String previousIndexAt) {
this.previousIndexAt = previousIndexAt;
}
public DatasourceSummaryStatusOutputV1 remainingIndexingDuration(Long remainingIndexingDuration) {
this.remainingIndexingDuration = remainingIndexingDuration;
return this;
}
/**
* The difference between averageIndexingDuration and currentIndexingDuration, expressed in nanoseconds
* @return remainingIndexingDuration
**/
@Schema(description = "The difference between averageIndexingDuration and currentIndexingDuration, expressed in nanoseconds")
public Long getRemainingIndexingDuration() {
return remainingIndexingDuration;
}
public void setRemainingIndexingDuration(Long remainingIndexingDuration) {
this.remainingIndexingDuration = remainingIndexingDuration;
}
public DatasourceSummaryStatusOutputV1 syncProgress(SyncProgressOutputV1 syncProgress) {
this.syncProgress = syncProgress;
return this;
}
/**
* Get syncProgress
* @return syncProgress
**/
@Schema(description = "")
public SyncProgressOutputV1 getSyncProgress() {
return syncProgress;
}
public void setSyncProgress(SyncProgressOutputV1 syncProgress) {
this.syncProgress = syncProgress;
}
public DatasourceSummaryStatusOutputV1 syncStatus(SyncStatusEnum syncStatus) {
this.syncStatus = syncStatus;
return this;
}
/**
* The aggregate synchronization status of the connections for this datasource
* @return syncStatus
**/
@Schema(description = "The aggregate synchronization status of the connections for this datasource")
public SyncStatusEnum getSyncStatus() {
return syncStatus;
}
public void setSyncStatus(SyncStatusEnum syncStatus) {
this.syncStatus = syncStatus;
}
public DatasourceSummaryStatusOutputV1 totalConnectionsCount(Integer totalConnectionsCount) {
this.totalConnectionsCount = totalConnectionsCount;
return this;
}
/**
* The total number of connections that should be in status 'Connected' for this datasource
* @return totalConnectionsCount
**/
@Schema(description = "The total number of connections that should be in status 'Connected' for this datasource")
public Integer getTotalConnectionsCount() {
return totalConnectionsCount;
}
public void setTotalConnectionsCount(Integer totalConnectionsCount) {
this.totalConnectionsCount = totalConnectionsCount;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
DatasourceSummaryStatusOutputV1 datasourceSummaryStatusOutputV1 = (DatasourceSummaryStatusOutputV1) o;
return Objects.equals(this.allowRequests, datasourceSummaryStatusOutputV1.allowRequests) &&
Objects.equals(this.averageIndexingDuration, datasourceSummaryStatusOutputV1.averageIndexingDuration) &&
Objects.equals(this.cacheEnabled, datasourceSummaryStatusOutputV1.cacheEnabled) &&
Objects.equals(this.connections, datasourceSummaryStatusOutputV1.connections) &&
Objects.equals(this.connectionsConnectedCount, datasourceSummaryStatusOutputV1.connectionsConnectedCount) &&
Objects.equals(this.currentIndexAt, datasourceSummaryStatusOutputV1.currentIndexAt) &&
Objects.equals(this.currentIndexingDuration, datasourceSummaryStatusOutputV1.currentIndexingDuration) &&
Objects.equals(this.currentIndexingPercentage, datasourceSummaryStatusOutputV1.currentIndexingPercentage) &&
Objects.equals(this.currentIndexingStartedAt, datasourceSummaryStatusOutputV1.currentIndexingStartedAt) &&
Objects.equals(this.datasourceClass, datasourceSummaryStatusOutputV1.datasourceClass) &&
Objects.equals(this.datasourceId, datasourceSummaryStatusOutputV1.datasourceId) &&
Objects.equals(this.id, datasourceSummaryStatusOutputV1.id) &&
Objects.equals(this.indexingScheduleSupported, datasourceSummaryStatusOutputV1.indexingScheduleSupported) &&
Objects.equals(this.name, datasourceSummaryStatusOutputV1.name) &&
Objects.equals(this.nextScheduledIndexAt, datasourceSummaryStatusOutputV1.nextScheduledIndexAt) &&
Objects.equals(this.previousIndexAt, datasourceSummaryStatusOutputV1.previousIndexAt) &&
Objects.equals(this.remainingIndexingDuration, datasourceSummaryStatusOutputV1.remainingIndexingDuration) &&
Objects.equals(this.syncProgress, datasourceSummaryStatusOutputV1.syncProgress) &&
Objects.equals(this.syncStatus, datasourceSummaryStatusOutputV1.syncStatus) &&
Objects.equals(this.totalConnectionsCount, datasourceSummaryStatusOutputV1.totalConnectionsCount);
}
@Override
public int hashCode() {
return Objects.hash(allowRequests, averageIndexingDuration, cacheEnabled, connections, connectionsConnectedCount, currentIndexAt, currentIndexingDuration, currentIndexingPercentage, currentIndexingStartedAt, datasourceClass, datasourceId, id, indexingScheduleSupported, name, nextScheduledIndexAt, previousIndexAt, remainingIndexingDuration, syncProgress, syncStatus, totalConnectionsCount);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class DatasourceSummaryStatusOutputV1 {\n");
sb.append(" allowRequests: ").append(toIndentedString(allowRequests)).append("\n");
sb.append(" averageIndexingDuration: ").append(toIndentedString(averageIndexingDuration)).append("\n");
sb.append(" cacheEnabled: ").append(toIndentedString(cacheEnabled)).append("\n");
sb.append(" connections: ").append(toIndentedString(connections)).append("\n");
sb.append(" connectionsConnectedCount: ").append(toIndentedString(connectionsConnectedCount)).append("\n");
sb.append(" currentIndexAt: ").append(toIndentedString(currentIndexAt)).append("\n");
sb.append(" currentIndexingDuration: ").append(toIndentedString(currentIndexingDuration)).append("\n");
sb.append(" currentIndexingPercentage: ").append(toIndentedString(currentIndexingPercentage)).append("\n");
sb.append(" currentIndexingStartedAt: ").append(toIndentedString(currentIndexingStartedAt)).append("\n");
sb.append(" datasourceClass: ").append(toIndentedString(datasourceClass)).append("\n");
sb.append(" datasourceId: ").append(toIndentedString(datasourceId)).append("\n");
sb.append(" id: ").append(toIndentedString(id)).append("\n");
sb.append(" indexingScheduleSupported: ").append(toIndentedString(indexingScheduleSupported)).append("\n");
sb.append(" name: ").append(toIndentedString(name)).append("\n");
sb.append(" nextScheduledIndexAt: ").append(toIndentedString(nextScheduledIndexAt)).append("\n");
sb.append(" previousIndexAt: ").append(toIndentedString(previousIndexAt)).append("\n");
sb.append(" remainingIndexingDuration: ").append(toIndentedString(remainingIndexingDuration)).append("\n");
sb.append(" syncProgress: ").append(toIndentedString(syncProgress)).append("\n");
sb.append(" syncStatus: ").append(toIndentedString(syncStatus)).append("\n");
sb.append(" totalConnectionsCount: ").append(toIndentedString(totalConnectionsCount)).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 ");
}
}