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

com.seeq.model.ConnectionStatusOutputV1 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: 65.1.3-v202408082312
 * 
 *
 * 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 io.swagger.v3.oas.annotations.media.Schema;
/**
 * The status for each connection that provides data to this datasource. Provided only when the required level of detail is 'Complete'
 */
@Schema(description = "The status for each connection that provides data to this datasource. Provided only when the required level of detail is 'Complete'")
public class ConnectionStatusOutputV1 {
  @JsonProperty("agentName")
  private String agentName = null;

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

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

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

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

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

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

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

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

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

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

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

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

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

  /**
   * The synchronization status of the current connection between the datasource and this connector. Valid values are SYNC_UNKNOWN, SYNC_INITIALIZING, SYNC_IN_PROGRESS, SYNC_ARCHIVING_DELETED_ITEMS, SYNC_COMPLETE, SYNC_SUCCESS, SYNC_FAILED
   */
  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;

  public ConnectionStatusOutputV1 agentName(String agentName) {
    this.agentName = agentName;
    return this;
  }

   /**
   * The name identifying the agent where the connector is hosted
   * @return agentName
  **/
  @Schema(required = true, description = "The name identifying the agent where the connector is hosted")
  public String getAgentName() {
    return agentName;
  }

  public void setAgentName(String agentName) {
    this.agentName = agentName;
  }

  public ConnectionStatusOutputV1 connectionId(String connectionId) {
    this.connectionId = connectionId;
    return this;
  }

   /**
   * The connectionID of the connection. This ID uniquely identifies this connection but it would not necessary be in the form of an UUID
   * @return connectionId
  **/
  @Schema(required = true, description = "The connectionID of the connection. This ID uniquely identifies this connection but it would not necessary be in the form of an UUID")
  public String getConnectionId() {
    return connectionId;
  }

  public void setConnectionId(String connectionId) {
    this.connectionId = connectionId;
  }

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

   /**
   * The name identifying the connector
   * @return connectorName
  **/
  @Schema(description = "The name identifying the connector")
  public String getConnectorName() {
    return connectorName;
  }

  public void setConnectorName(String connectorName) {
    this.connectorName = connectorName;
  }

  public ConnectionStatusOutputV1 createdAt(String createdAt) {
    this.createdAt = createdAt;
    return this;
  }

   /**
   * The timestamp of the connection creation
   * @return createdAt
  **/
  @Schema(description = "The timestamp of the connection creation")
  public String getCreatedAt() {
    return createdAt;
  }

  public void setCreatedAt(String createdAt) {
    this.createdAt = createdAt;
  }

  public ConnectionStatusOutputV1 datasourceManaged(Boolean datasourceManaged) {
    this.datasourceManaged = datasourceManaged;
    return this;
  }

   /**
   * Indicates if the configuration is managed by the datasource and cannot be changed in Seeq
   * @return datasourceManaged
  **/
  @Schema(description = "Indicates if the configuration is managed by the datasource and cannot be changed in Seeq")
  public Boolean getDatasourceManaged() {
    return datasourceManaged;
  }

  public void setDatasourceManaged(Boolean datasourceManaged) {
    this.datasourceManaged = datasourceManaged;
  }

  public ConnectionStatusOutputV1 disabledAt(String disabledAt) {
    this.disabledAt = disabledAt;
    return this;
  }

   /**
   * The ISO 8601 date of when the connection was disabled (YYYY-MM-DDThh:mm:ss.sssssssss±hh:mm)
   * @return disabledAt
  **/
  @Schema(description = "The ISO 8601 date of when the connection was disabled (YYYY-MM-DDThh:mm:ss.sssssssss±hh:mm)")
  public String getDisabledAt() {
    return disabledAt;
  }

  public void setDisabledAt(String disabledAt) {
    this.disabledAt = disabledAt;
  }

  public ConnectionStatusOutputV1 disabledBy(String disabledBy) {
    this.disabledBy = disabledBy;
    return this;
  }

   /**
   * The username of the user who disabled the connection
   * @return disabledBy
  **/
  @Schema(description = "The username of the user who disabled the connection")
  public String getDisabledBy() {
    return disabledBy;
  }

  public void setDisabledBy(String disabledBy) {
    this.disabledBy = disabledBy;
  }

  public ConnectionStatusOutputV1 hasError(Boolean hasError) {
    this.hasError = hasError;
    return this;
  }

   /**
   * Indicates if the connection has an error
   * @return hasError
  **/
  @Schema(description = "Indicates if the connection has an error")
  public Boolean getHasError() {
    return hasError;
  }

  public void setHasError(Boolean hasError) {
    this.hasError = hasError;
  }

  public ConnectionStatusOutputV1 lastSuccessfulConnectedAt(String lastSuccessfulConnectedAt) {
    this.lastSuccessfulConnectedAt = lastSuccessfulConnectedAt;
    return this;
  }

   /**
   * The ISO 8601 date of the last successful connection to the external datasource (YYYY-MM-DDThh:mm:ss.sssssssss±hh:mm)
   * @return lastSuccessfulConnectedAt
  **/
  @Schema(description = "The ISO 8601 date of the last successful connection to the external datasource (YYYY-MM-DDThh:mm:ss.sssssssss±hh:mm)")
  public String getLastSuccessfulConnectedAt() {
    return lastSuccessfulConnectedAt;
  }

  public void setLastSuccessfulConnectedAt(String lastSuccessfulConnectedAt) {
    this.lastSuccessfulConnectedAt = lastSuccessfulConnectedAt;
  }

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

   /**
   * The status of the current connection between the datasource and the connector. Valid values are CONNECTING, CONNECTED, DISCONNECTED and DISABLED. 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 the connector. Valid values are CONNECTING, CONNECTED, DISCONNECTED and DISABLED. 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 ConnectionStatusOutputV1 syncStatus(SyncStatusEnum 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_ARCHIVING_DELETED_ITEMS, SYNC_COMPLETE, SYNC_SUCCESS, SYNC_FAILED
   * @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_ARCHIVING_DELETED_ITEMS, SYNC_COMPLETE, SYNC_SUCCESS, SYNC_FAILED")
  public SyncStatusEnum getSyncStatus() {
    return syncStatus;
  }

  public void setSyncStatus(SyncStatusEnum 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;
    }
    ConnectionStatusOutputV1 connectionStatusOutputV1 = (ConnectionStatusOutputV1) o;
    return Objects.equals(this.agentName, connectionStatusOutputV1.agentName) &&
        Objects.equals(this.connectionId, connectionStatusOutputV1.connectionId) &&
        Objects.equals(this.connectionMessage, connectionStatusOutputV1.connectionMessage) &&
        Objects.equals(this.connectorDeveloperName, connectionStatusOutputV1.connectorDeveloperName) &&
        Objects.equals(this.connectorDeveloperSupportUrl, connectionStatusOutputV1.connectorDeveloperSupportUrl) &&
        Objects.equals(this.connectorName, connectionStatusOutputV1.connectorName) &&
        Objects.equals(this.createdAt, connectionStatusOutputV1.createdAt) &&
        Objects.equals(this.datasourceManaged, connectionStatusOutputV1.datasourceManaged) &&
        Objects.equals(this.disabledAt, connectionStatusOutputV1.disabledAt) &&
        Objects.equals(this.disabledBy, connectionStatusOutputV1.disabledBy) &&
        Objects.equals(this.hasError, connectionStatusOutputV1.hasError) &&
        Objects.equals(this.lastSuccessfulConnectedAt, connectionStatusOutputV1.lastSuccessfulConnectedAt) &&
        Objects.equals(this.name, connectionStatusOutputV1.name) &&
        Objects.equals(this.status, connectionStatusOutputV1.status) &&
        Objects.equals(this.syncStatus, connectionStatusOutputV1.syncStatus);
  }

  @Override
  public int hashCode() {
    return Objects.hash(agentName, connectionId, connectionMessage, connectorDeveloperName, connectorDeveloperSupportUrl, connectorName, createdAt, datasourceManaged, disabledAt, disabledBy, hasError, lastSuccessfulConnectedAt, name, status, syncStatus);
  }


  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class ConnectionStatusOutputV1 {\n");
    
    sb.append("    agentName: ").append(toIndentedString(agentName)).append("\n");
    sb.append("    connectionId: ").append(toIndentedString(connectionId)).append("\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("    connectorName: ").append(toIndentedString(connectorName)).append("\n");
    sb.append("    createdAt: ").append(toIndentedString(createdAt)).append("\n");
    sb.append("    datasourceManaged: ").append(toIndentedString(datasourceManaged)).append("\n");
    sb.append("    disabledAt: ").append(toIndentedString(disabledAt)).append("\n");
    sb.append("    disabledBy: ").append(toIndentedString(disabledBy)).append("\n");
    sb.append("    hasError: ").append(toIndentedString(hasError)).append("\n");
    sb.append("    lastSuccessfulConnectedAt: ").append(toIndentedString(lastSuccessfulConnectedAt)).append("\n");
    sb.append("    name: ").append(toIndentedString(name)).append("\n");
    sb.append("    status: ").append(toIndentedString(status)).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