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

com.clinia.model.datacatalog.ListDataPartitions200Response 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;

/** ListDataPartitions200Response */
public class ListDataPartitions200Response {

  @JsonProperty("meta")
  private V1ListResponseMeta meta;

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

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

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

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

  public ListDataPartitions200Response addData(V1DataPartition 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;
    }
    ListDataPartitions200Response listDataPartitions200Response = (ListDataPartitions200Response) o;
    return Objects.equals(this.meta, listDataPartitions200Response.meta) && Objects.equals(this.data, listDataPartitions200Response.data);
  }

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

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