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-v202407310200
Show newest version
/*
 * 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.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("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 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.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(agents, connectedConnectionsCount, connectedDatasourcesCount, datasources, totalConnectionsCount, totalDatasourcesCount);
  }


  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class DatasourcesStatusOutputV1 {\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