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