com.clinia.model.datacatalog.ListDataSources200Response 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;
/** ListDataSources200Response */
public class ListDataSources200Response {
@JsonProperty("meta")
private V1ListResponseMeta meta;
@JsonProperty("data")
private List data = new ArrayList<>();
public ListDataSources200Response setMeta(V1ListResponseMeta meta) {
this.meta = meta;
return this;
}
/** Get meta */
@javax.annotation.Nonnull
public V1ListResponseMeta getMeta() {
return meta;
}
public ListDataSources200Response setData(List data) {
this.data = data;
return this;
}
public ListDataSources200Response addData(V1DataSource 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;
}
ListDataSources200Response listDataSources200Response = (ListDataSources200Response) o;
return Objects.equals(this.meta, listDataSources200Response.meta) && Objects.equals(this.data, listDataSources200Response.data);
}
@Override
public int hashCode() {
return Objects.hash(meta, data);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class ListDataSources200Response {\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 ");
}
}