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

com.seeq.model.ConnectionInputV1 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: 64.4.1-v202409112255
 * 
 *
 * 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;
/**
 * ConnectionInputV1
 */
public class ConnectionInputV1 {
  @JsonProperty("backupName")
  private String backupName = null;

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

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

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

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

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

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

  public ConnectionInputV1 backupName(String backupName) {
    this.backupName = backupName;
    return this;
  }

   /**
   * The name of a connection backup to restore, when updating a connection.
   * @return backupName
  **/
  @Schema(description = "The name of a connection backup to restore, when updating a connection.")
  public String getBackupName() {
    return backupName;
  }

  public void setBackupName(String backupName) {
    this.backupName = backupName;
  }

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

   /**
   * The datasource id
   * @return datasourceId
  **/
  @Schema(description = "The datasource id")
  public String getDatasourceId() {
    return datasourceId;
  }

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

  public ConnectionInputV1 enabled(Boolean enabled) {
    this.enabled = enabled;
    return this;
  }

   /**
   * True if the connection is enabled
   * @return enabled
  **/
  @Schema(description = "True if the connection is enabled")
  public Boolean getEnabled() {
    return enabled;
  }

  public void setEnabled(Boolean enabled) {
    this.enabled = enabled;
  }

  public ConnectionInputV1 json(String json) {
    this.json = json;
    return this;
  }

   /**
   * The connection configuration json.
   * @return json
  **/
  @Schema(description = "The connection configuration json.")
  public String getJson() {
    return json;
  }

  public void setJson(String json) {
    this.json = json;
  }

  public ConnectionInputV1 maxConcurrentRequests(Integer maxConcurrentRequests) {
    this.maxConcurrentRequests = maxConcurrentRequests;
    return this;
  }

   /**
   * The maximum number of concurrent requests through this connection
   * @return maxConcurrentRequests
  **/
  @Schema(description = "The maximum number of concurrent requests through this connection")
  public Integer getMaxConcurrentRequests() {
    return maxConcurrentRequests;
  }

  public void setMaxConcurrentRequests(Integer maxConcurrentRequests) {
    this.maxConcurrentRequests = maxConcurrentRequests;
  }

  public ConnectionInputV1 maxResultsPerRequests(Integer maxResultsPerRequests) {
    this.maxResultsPerRequests = maxResultsPerRequests;
    return this;
  }

   /**
   * The maximum number of sample/capsule results that can be returned by a request. When null, no limit is imposed. 
   * @return maxResultsPerRequests
  **/
  @Schema(description = "The maximum number of sample/capsule results that can be returned by a request. When null, no limit is imposed. ")
  public Integer getMaxResultsPerRequests() {
    return maxResultsPerRequests;
  }

  public void setMaxResultsPerRequests(Integer maxResultsPerRequests) {
    this.maxResultsPerRequests = maxResultsPerRequests;
  }

  public ConnectionInputV1 transforms(String transforms) {
    this.transforms = transforms;
    return this;
  }

   /**
   * The transforms to be applied as JSON
   * @return transforms
  **/
  @Schema(description = "The transforms to be applied as JSON")
  public String getTransforms() {
    return transforms;
  }

  public void setTransforms(String transforms) {
    this.transforms = transforms;
  }


  @Override
  public boolean equals(java.lang.Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    ConnectionInputV1 connectionInputV1 = (ConnectionInputV1) o;
    return Objects.equals(this.backupName, connectionInputV1.backupName) &&
        Objects.equals(this.datasourceId, connectionInputV1.datasourceId) &&
        Objects.equals(this.enabled, connectionInputV1.enabled) &&
        Objects.equals(this.json, connectionInputV1.json) &&
        Objects.equals(this.maxConcurrentRequests, connectionInputV1.maxConcurrentRequests) &&
        Objects.equals(this.maxResultsPerRequests, connectionInputV1.maxResultsPerRequests) &&
        Objects.equals(this.transforms, connectionInputV1.transforms);
  }

  @Override
  public int hashCode() {
    return Objects.hash(backupName, datasourceId, enabled, json, maxConcurrentRequests, maxResultsPerRequests, transforms);
  }


  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class ConnectionInputV1 {\n");
    
    sb.append("    backupName: ").append(toIndentedString(backupName)).append("\n");
    sb.append("    datasourceId: ").append(toIndentedString(datasourceId)).append("\n");
    sb.append("    enabled: ").append(toIndentedString(enabled)).append("\n");
    sb.append("    json: ").append(toIndentedString(json)).append("\n");
    sb.append("    maxConcurrentRequests: ").append(toIndentedString(maxConcurrentRequests)).append("\n");
    sb.append("    maxResultsPerRequests: ").append(toIndentedString(maxResultsPerRequests)).append("\n");
    sb.append("    transforms: ").append(toIndentedString(transforms)).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