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

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

There is a newer version: 66.0.0-v202410141803
Show newest version
/*
 * 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.SyncProgress;
import io.swagger.v3.oas.annotations.media.Schema;
/**
 * The status for each connection known by the agent
 */
@Schema(description = "The status for each connection known by the agent")
public class ConnectionStatusV1 {
  @JsonProperty("connectionMessage")
  private String connectionMessage = null;

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

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

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

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

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

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

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

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

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

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

  @JsonProperty("syncProgress")
  private SyncProgress syncProgress = null;

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

  public ConnectionStatusV1 connectionMessage(String connectionMessage) {
    this.connectionMessage = connectionMessage;
    return this;
  }

   /**
   * The message indicating the status of the connection to the datasource (e.g. reason for disconnection)
   * @return connectionMessage
  **/
  @Schema(description = "The message indicating the status of the connection to the datasource (e.g. reason for disconnection)")
  public String getConnectionMessage() {
    return connectionMessage;
  }

  public void setConnectionMessage(String connectionMessage) {
    this.connectionMessage = connectionMessage;
  }

  public ConnectionStatusV1 connectorDeveloperName(String connectorDeveloperName) {
    this.connectorDeveloperName = connectorDeveloperName;
    return this;
  }

   /**
   * The name of this datasource's connector developer.
   * @return connectorDeveloperName
  **/
  @Schema(description = "The name of this datasource's connector developer.")
  public String getConnectorDeveloperName() {
    return connectorDeveloperName;
  }

  public void setConnectorDeveloperName(String connectorDeveloperName) {
    this.connectorDeveloperName = connectorDeveloperName;
  }

  public ConnectionStatusV1 connectorDeveloperSupportUrl(String connectorDeveloperSupportUrl) {
    this.connectorDeveloperSupportUrl = connectorDeveloperSupportUrl;
    return this;
  }

   /**
   * The support URL of this datasource's connector developer.
   * @return connectorDeveloperSupportUrl
  **/
  @Schema(description = "The support URL of this datasource's connector developer.")
  public String getConnectorDeveloperSupportUrl() {
    return connectorDeveloperSupportUrl;
  }

  public void setConnectorDeveloperSupportUrl(String connectorDeveloperSupportUrl) {
    this.connectorDeveloperSupportUrl = connectorDeveloperSupportUrl;
  }

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

   /**
   * The datasource class served by this connector.  Example: OSIsoft PI
   * @return datasourceClass
  **/
  @Schema(required = true, description = "The datasource class served by this connector.  Example: OSIsoft PI")
  public String getDatasourceClass() {
    return datasourceClass;
  }

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

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

   /**
   * The datasource ID served by this connector.
   * @return datasourceId
  **/
  @Schema(required = true, description = "The datasource ID served by this connector.")
  public String getDatasourceId() {
    return datasourceId;
  }

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

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

   /**
   * The ID of the connector. This ID uniquely identifies this connector but does not convey any information about the connector. There is no specified structure for this ID; it may be in UUID form but need not be
   * @return id
  **/
  @Schema(required = true, description = "The ID of the connector. This ID uniquely identifies this connector but does not convey any information about the connector. There is no specified structure for this ID; it may be in UUID form but need not be")
  public String getId() {
    return id;
  }

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

  public ConnectionStatusV1 indexingDatasourceConnection(Boolean indexingDatasourceConnection) {
    this.indexingDatasourceConnection = indexingDatasourceConnection;
    return this;
  }

   /**
   * Indicates whether the datasource allows metadata indexing.
   * @return indexingDatasourceConnection
  **/
  @Schema(required = true, description = "Indicates whether the datasource allows metadata indexing.")
  public Boolean getIndexingDatasourceConnection() {
    return indexingDatasourceConnection;
  }

  public void setIndexingDatasourceConnection(Boolean indexingDatasourceConnection) {
    this.indexingDatasourceConnection = indexingDatasourceConnection;
  }

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

   /**
   * The name of this connection. The name should represent the specific data source to which this connection connects.  Example: AMAZONA-4RV912N
   * @return name
  **/
  @Schema(required = true, description = "The name of this connection. The name should represent the specific data source to which this connection connects.  Example: AMAZONA-4RV912N")
  public String getName() {
    return name;
  }

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

  public ConnectionStatusV1 pullDatasourceConnection(Boolean pullDatasourceConnection) {
    this.pullDatasourceConnection = pullDatasourceConnection;
    return this;
  }

   /**
   * Indicates whether the datasource allows pull requests.
   * @return pullDatasourceConnection
  **/
  @Schema(required = true, description = "Indicates whether the datasource allows pull requests.")
  public Boolean getPullDatasourceConnection() {
    return pullDatasourceConnection;
  }

  public void setPullDatasourceConnection(Boolean pullDatasourceConnection) {
    this.pullDatasourceConnection = pullDatasourceConnection;
  }

  public ConnectionStatusV1 reinitialized(Boolean reinitialized) {
    this.reinitialized = reinitialized;
    return this;
  }

   /**
   * Indicates whether the connection was reinitialized.
   * @return reinitialized
  **/
  @Schema(required = true, description = "Indicates whether the connection was reinitialized.")
  public Boolean getReinitialized() {
    return reinitialized;
  }

  public void setReinitialized(Boolean reinitialized) {
    this.reinitialized = reinitialized;
  }

  public ConnectionStatusV1 status(String status) {
    this.status = status;
    return this;
  }

   /**
   * The status of the current connection between the datasource and this connector. Valid values are Connected, Disconnected and Connecting. If the state is Disconnected (or Connecting), it could be caused by a failure in the connection between the connector and its datasource or a failed connection between the Seeq application server and the agent hosting this connector. See connectionMessage.
   * @return status
  **/
  @Schema(description = "The status of the current connection between the datasource and this connector. Valid values are Connected, Disconnected and Connecting. If the state is Disconnected (or Connecting), it could be caused by a failure in the connection between the connector and its datasource or a failed connection between the Seeq application server and the agent hosting this connector. See connectionMessage.")
  public String getStatus() {
    return status;
  }

  public void setStatus(String status) {
    this.status = status;
  }

  public ConnectionStatusV1 syncProgress(SyncProgress syncProgress) {
    this.syncProgress = syncProgress;
    return this;
  }

   /**
   * Get syncProgress
   * @return syncProgress
  **/
  @Schema(description = "")
  public SyncProgress getSyncProgress() {
    return syncProgress;
  }

  public void setSyncProgress(SyncProgress syncProgress) {
    this.syncProgress = syncProgress;
  }

  public ConnectionStatusV1 syncStatus(String syncStatus) {
    this.syncStatus = syncStatus;
    return this;
  }

   /**
   * The synchronization status of the current connection between the datasource and this connector. Valid values are SYNC_UNKNOWN, SYNC_INITIALIZING, SYNC_IN_PROGRESS, SYNC_COMPLETE, SYNC_ARCHIVING_DELETED_ITEMS
   * @return syncStatus
  **/
  @Schema(description = "The synchronization status of the current connection between the datasource and this connector. Valid values are SYNC_UNKNOWN, SYNC_INITIALIZING, SYNC_IN_PROGRESS, SYNC_COMPLETE, SYNC_ARCHIVING_DELETED_ITEMS")
  public String getSyncStatus() {
    return syncStatus;
  }

  public void setSyncStatus(String syncStatus) {
    this.syncStatus = syncStatus;
  }


  @Override
  public boolean equals(java.lang.Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    ConnectionStatusV1 connectionStatusV1 = (ConnectionStatusV1) o;
    return Objects.equals(this.connectionMessage, connectionStatusV1.connectionMessage) &&
        Objects.equals(this.connectorDeveloperName, connectionStatusV1.connectorDeveloperName) &&
        Objects.equals(this.connectorDeveloperSupportUrl, connectionStatusV1.connectorDeveloperSupportUrl) &&
        Objects.equals(this.datasourceClass, connectionStatusV1.datasourceClass) &&
        Objects.equals(this.datasourceId, connectionStatusV1.datasourceId) &&
        Objects.equals(this.id, connectionStatusV1.id) &&
        Objects.equals(this.indexingDatasourceConnection, connectionStatusV1.indexingDatasourceConnection) &&
        Objects.equals(this.name, connectionStatusV1.name) &&
        Objects.equals(this.pullDatasourceConnection, connectionStatusV1.pullDatasourceConnection) &&
        Objects.equals(this.reinitialized, connectionStatusV1.reinitialized) &&
        Objects.equals(this.status, connectionStatusV1.status) &&
        Objects.equals(this.syncProgress, connectionStatusV1.syncProgress) &&
        Objects.equals(this.syncStatus, connectionStatusV1.syncStatus);
  }

  @Override
  public int hashCode() {
    return Objects.hash(connectionMessage, connectorDeveloperName, connectorDeveloperSupportUrl, datasourceClass, datasourceId, id, indexingDatasourceConnection, name, pullDatasourceConnection, reinitialized, status, syncProgress, syncStatus);
  }


  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class ConnectionStatusV1 {\n");
    
    sb.append("    connectionMessage: ").append(toIndentedString(connectionMessage)).append("\n");
    sb.append("    connectorDeveloperName: ").append(toIndentedString(connectorDeveloperName)).append("\n");
    sb.append("    connectorDeveloperSupportUrl: ").append(toIndentedString(connectorDeveloperSupportUrl)).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("    indexingDatasourceConnection: ").append(toIndentedString(indexingDatasourceConnection)).append("\n");
    sb.append("    name: ").append(toIndentedString(name)).append("\n");
    sb.append("    pullDatasourceConnection: ").append(toIndentedString(pullDatasourceConnection)).append("\n");
    sb.append("    reinitialized: ").append(toIndentedString(reinitialized)).append("\n");
    sb.append("    status: ").append(toIndentedString(status)).append("\n");
    sb.append("    syncProgress: ").append(toIndentedString(syncProgress)).append("\n");
    sb.append("    syncStatus: ").append(toIndentedString(syncStatus)).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