org.opendatadiscovery.client.model.DataEntityList Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of ingestion-contract-client Show documentation
Show all versions of ingestion-contract-client Show documentation
Ingestion Contract WebFlux Client defines OpenDataDiscovery APIs and models for Spring WebClient
/*
* OpenDataDiscovery API Contract
* OpenDataDiscovery API Contract
*
* The version of the OpenAPI document: 0.0.1
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
package org.opendatadiscovery.client.model;
import java.util.Objects;
import java.util.Arrays;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonTypeName;
import com.fasterxml.jackson.annotation.JsonValue;
import java.util.ArrayList;
import java.util.List;
import org.opendatadiscovery.client.model.DataEntity;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
import com.fasterxml.jackson.annotation.JsonTypeName;
/**
* DataEntityList
*/
@JsonPropertyOrder({
DataEntityList.JSON_PROPERTY_DATA_SOURCE_ODDRN,
DataEntityList.JSON_PROPERTY_ITEMS
})
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-04-17T12:42:16.563637609Z[Etc/UTC]")
public class DataEntityList {
public static final String JSON_PROPERTY_DATA_SOURCE_ODDRN = "data_source_oddrn";
private String dataSourceOddrn;
public static final String JSON_PROPERTY_ITEMS = "items";
private List items;
public DataEntityList() {
}
public DataEntityList dataSourceOddrn(String dataSourceOddrn) {
this.dataSourceOddrn = dataSourceOddrn;
return this;
}
/**
* Get dataSourceOddrn
* @return dataSourceOddrn
**/
@javax.annotation.Nonnull
@JsonProperty(JSON_PROPERTY_DATA_SOURCE_ODDRN)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public String getDataSourceOddrn() {
return dataSourceOddrn;
}
@JsonProperty(JSON_PROPERTY_DATA_SOURCE_ODDRN)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public void setDataSourceOddrn(String dataSourceOddrn) {
this.dataSourceOddrn = dataSourceOddrn;
}
public DataEntityList items(List items) {
this.items = items;
return this;
}
public DataEntityList addItemsItem(DataEntity itemsItem) {
if (this.items == null) {
this.items = new ArrayList<>();
}
this.items.add(itemsItem);
return this;
}
/**
* Get items
* @return items
**/
@javax.annotation.Nullable
@JsonProperty(JSON_PROPERTY_ITEMS)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public List getItems() {
return items;
}
@JsonProperty(JSON_PROPERTY_ITEMS)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setItems(List items) {
this.items = items;
}
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
DataEntityList dataEntityList = (DataEntityList) o;
return Objects.equals(this.dataSourceOddrn, dataEntityList.dataSourceOddrn) &&
Objects.equals(this.items, dataEntityList.items);
}
@Override
public int hashCode() {
return Objects.hash(dataSourceOddrn, items);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class DataEntityList {\n");
sb.append(" dataSourceOddrn: ").append(toIndentedString(dataSourceOddrn)).append("\n");
sb.append(" items: ").append(toIndentedString(items)).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