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

com.clinia.model.datacatalog.ListConnections200Response Maven / Gradle / Ivy

// Code generated by OpenAPI Generator (https://openapi-generator.tech), manual changes will be lost
// - read more on https://github.com/clinia/api-clients-generation. DO NOT EDIT.

package com.clinia.model.datacatalog;

import com.clinia.model.common.*;
import com.fasterxml.jackson.annotation.*;
import com.fasterxml.jackson.databind.annotation.*;
import java.util.ArrayList;
import java.util.List;
import java.util.Objects;

/** ListConnections200Response */
public class ListConnections200Response {

  @JsonProperty("meta")
  private V1ListResponseMeta meta;

  @JsonProperty("data")
  private List data = new ArrayList<>();

  public ListConnections200Response setMeta(V1ListResponseMeta meta) {
    this.meta = meta;
    return this;
  }

  /** Get meta */
  @javax.annotation.Nonnull
  public V1ListResponseMeta getMeta() {
    return meta;
  }

  public ListConnections200Response setData(List data) {
    this.data = data;
    return this;
  }

  public ListConnections200Response addData(V1Connection dataItem) {
    this.data.add(dataItem);
    return this;
  }

  /** Get data */
  @javax.annotation.Nonnull
  public List getData() {
    return data;
  }

  @Override
  public boolean equals(Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    ListConnections200Response listConnections200Response = (ListConnections200Response) o;
    return Objects.equals(this.meta, listConnections200Response.meta) && Objects.equals(this.data, listConnections200Response.data);
  }

  @Override
  public int hashCode() {
    return Objects.hash(meta, data);
  }

  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class ListConnections200Response {\n");
    sb.append("    meta: ").append(toIndentedString(meta)).append("\n");
    sb.append("    data: ").append(toIndentedString(data)).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(Object o) {
    if (o == null) {
      return "null";
    }
    return o.toString().replace("\n", "\n    ");
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy