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

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

  @JsonProperty("agents")
  private List agents = new ArrayList();

  @JsonProperty("connectedConnectionsCount")
  private Integer connectedConnectionsCount = null;

  @JsonProperty("connectedDatasourcesCount")
  private Integer connectedDatasourcesCount = null;

  @JsonProperty("datasources")
  private List datasources = new ArrayList();

  @JsonProperty("totalConnectionsCount")
  private Integer totalConnectionsCount = null;

  @JsonProperty("totalDatasourcesCount")
  private Integer totalDatasourcesCount = null;

  public DatasourcesStatusOutputV1 agentOrchestrators(List agentOrchestrators) {
    this.agentOrchestrators = agentOrchestrators;
    return this;
  }

  public DatasourcesStatusOutputV1 addAgentOrchestratorsItem(AgentOrchestratorOutputV1 agentOrchestratorsItem) {
    if (this.agentOrchestrators == null) {
      this.agentOrchestrators = new ArrayList();
    }
    this.agentOrchestrators.add(agentOrchestratorsItem);
    return this;
  }

   /**
   * The list of all agent orchestrator names for agents accessible by the user.
   * @return agentOrchestrators
  **/
  @Schema(description = "The list of all agent orchestrator names for agents accessible by the user.")
  public List getAgentOrchestrators() {
    return agentOrchestrators;
  }

  public void setAgentOrchestrators(List agentOrchestrators) {
    this.agentOrchestrators = agentOrchestrators;
  }

  public DatasourcesStatusOutputV1 agents(List agents) {
    this.agents = agents;
    return this;
  }

  public DatasourcesStatusOutputV1 addAgentsItem(AgentStatusOutputV1 agentsItem) {
    if (this.agents == null) {
      this.agents = new ArrayList();
    }
    this.agents.add(agentsItem);
    return this;
  }

   /**
   * The status for all agents accessible by the user. Provided only when the required level of detail is 'Complete'
   * @return agents
  **/
  @Schema(description = "The status for all agents accessible by the user. Provided only when the required level of detail is 'Complete'")
  public List getAgents() {
    return agents;
  }

  public void setAgents(List agents) {
    this.agents = agents;
  }

  public DatasourcesStatusOutputV1 connectedConnectionsCount(Integer connectedConnectionsCount) {
    this.connectedConnectionsCount = connectedConnectionsCount;
    return this;
  }

   /**
   * The number of connections in status 'Connected'. Provided regardless of the level of detail requested
   * @return connectedConnectionsCount
  **/
  @Schema(required = true, description = "The number of connections in status 'Connected'. Provided regardless of the level of detail requested")
  public Integer getConnectedConnectionsCount() {
    return connectedConnectionsCount;
  }

  public void setConnectedConnectionsCount(Integer connectedConnectionsCount) {
    this.connectedConnectionsCount = connectedConnectionsCount;
  }

  public DatasourcesStatusOutputV1 connectedDatasourcesCount(Integer connectedDatasourcesCount) {
    this.connectedDatasourcesCount = connectedDatasourcesCount;
    return this;
  }

   /**
   * The number of connected datasources. Provided regardless of the level of detail requested
   * @return connectedDatasourcesCount
  **/
  @Schema(required = true, description = "The number of connected datasources. Provided regardless of the level of detail requested")
  public Integer getConnectedDatasourcesCount() {
    return connectedDatasourcesCount;
  }

  public void setConnectedDatasourcesCount(Integer connectedDatasourcesCount) {
    this.connectedDatasourcesCount = connectedDatasourcesCount;
  }

  public DatasourcesStatusOutputV1 datasources(List datasources) {
    this.datasources = datasources;
    return this;
  }

  public DatasourcesStatusOutputV1 addDatasourcesItem(DatasourceSummaryStatusOutputV1 datasourcesItem) {
    if (this.datasources == null) {
      this.datasources = new ArrayList();
    }
    this.datasources.add(datasourcesItem);
    return this;
  }

   /**
   * The status for all datasources accessible by the user. Available only when the required level of detail is 'Complete' or 'Summary'
   * @return datasources
  **/
  @Schema(description = "The status for all datasources accessible by the user. Available only when the required level of detail is 'Complete' or 'Summary'")
  public List getDatasources() {
    return datasources;
  }

  public void setDatasources(List datasources) {
    this.datasources = datasources;
  }

  public DatasourcesStatusOutputV1 totalConnectionsCount(Integer totalConnectionsCount) {
    this.totalConnectionsCount = totalConnectionsCount;
    return this;
  }

   /**
   * The total number of connections expected to be in the status 'Connected'. Provided regardless of the level of detail requested
   * @return totalConnectionsCount
  **/
  @Schema(required = true, description = "The total number of connections expected to be in the status 'Connected'. Provided regardless of the level of detail requested")
  public Integer getTotalConnectionsCount() {
    return totalConnectionsCount;
  }

  public void setTotalConnectionsCount(Integer totalConnectionsCount) {
    this.totalConnectionsCount = totalConnectionsCount;
  }

  public DatasourcesStatusOutputV1 totalDatasourcesCount(Integer totalDatasourcesCount) {
    this.totalDatasourcesCount = totalDatasourcesCount;
    return this;
  }

   /**
   * The total number of datasources expected to be connected. Provided regardless of the level of detail requested
   * @return totalDatasourcesCount
  **/
  @Schema(required = true, description = "The total number of datasources expected to be connected. Provided regardless of the level of detail requested")
  public Integer getTotalDatasourcesCount() {
    return totalDatasourcesCount;
  }

  public void setTotalDatasourcesCount(Integer totalDatasourcesCount) {
    this.totalDatasourcesCount = totalDatasourcesCount;
  }


  @Override
  public boolean equals(java.lang.Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    DatasourcesStatusOutputV1 datasourcesStatusOutputV1 = (DatasourcesStatusOutputV1) o;
    return Objects.equals(this.agentOrchestrators, datasourcesStatusOutputV1.agentOrchestrators) &&
        Objects.equals(this.agents, datasourcesStatusOutputV1.agents) &&
        Objects.equals(this.connectedConnectionsCount, datasourcesStatusOutputV1.connectedConnectionsCount) &&
        Objects.equals(this.connectedDatasourcesCount, datasourcesStatusOutputV1.connectedDatasourcesCount) &&
        Objects.equals(this.datasources, datasourcesStatusOutputV1.datasources) &&
        Objects.equals(this.totalConnectionsCount, datasourcesStatusOutputV1.totalConnectionsCount) &&
        Objects.equals(this.totalDatasourcesCount, datasourcesStatusOutputV1.totalDatasourcesCount);
  }

  @Override
  public int hashCode() {
    return Objects.hash(agentOrchestrators, agents, connectedConnectionsCount, connectedDatasourcesCount, datasources, totalConnectionsCount, totalDatasourcesCount);
  }


  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class DatasourcesStatusOutputV1 {\n");
    
    sb.append("    agentOrchestrators: ").append(toIndentedString(agentOrchestrators)).append("\n");
    sb.append("    agents: ").append(toIndentedString(agents)).append("\n");
    sb.append("    connectedConnectionsCount: ").append(toIndentedString(connectedConnectionsCount)).append("\n");
    sb.append("    connectedDatasourcesCount: ").append(toIndentedString(connectedDatasourcesCount)).append("\n");
    sb.append("    datasources: ").append(toIndentedString(datasources)).append("\n");
    sb.append("    totalConnectionsCount: ").append(toIndentedString(totalConnectionsCount)).append("\n");
    sb.append("    totalDatasourcesCount: ").append(toIndentedString(totalDatasourcesCount)).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