org.opendatadiscovery.client.model.DataEntityGroup 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 com.fasterxml.jackson.annotation.JsonPropertyOrder;
import com.fasterxml.jackson.annotation.JsonTypeName;
/**
* DataEntityGroup
*/
@JsonPropertyOrder({
DataEntityGroup.JSON_PROPERTY_ENTITIES_LIST,
DataEntityGroup.JSON_PROPERTY_GROUP_ODDRN
})
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-11-28T15:25:41.339468380Z[Etc/UTC]")
public class DataEntityGroup {
public static final String JSON_PROPERTY_ENTITIES_LIST = "entities_list";
private List entitiesList = new ArrayList<>();
public static final String JSON_PROPERTY_GROUP_ODDRN = "group_oddrn";
private String groupOddrn;
public DataEntityGroup() {
}
public DataEntityGroup entitiesList(List entitiesList) {
this.entitiesList = entitiesList;
return this;
}
public DataEntityGroup addEntitiesListItem(String entitiesListItem) {
if (this.entitiesList == null) {
this.entitiesList = new ArrayList<>();
}
this.entitiesList.add(entitiesListItem);
return this;
}
/**
* Get entitiesList
* @return entitiesList
**/
@javax.annotation.Nonnull
@JsonProperty(JSON_PROPERTY_ENTITIES_LIST)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public List getEntitiesList() {
return entitiesList;
}
@JsonProperty(JSON_PROPERTY_ENTITIES_LIST)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public void setEntitiesList(List entitiesList) {
this.entitiesList = entitiesList;
}
public DataEntityGroup groupOddrn(String groupOddrn) {
this.groupOddrn = groupOddrn;
return this;
}
/**
* Get groupOddrn
* @return groupOddrn
**/
@javax.annotation.Nullable
@JsonProperty(JSON_PROPERTY_GROUP_ODDRN)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getGroupOddrn() {
return groupOddrn;
}
@JsonProperty(JSON_PROPERTY_GROUP_ODDRN)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setGroupOddrn(String groupOddrn) {
this.groupOddrn = groupOddrn;
}
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
DataEntityGroup dataEntityGroup = (DataEntityGroup) o;
return Objects.equals(this.entitiesList, dataEntityGroup.entitiesList) &&
Objects.equals(this.groupOddrn, dataEntityGroup.groupOddrn);
}
@Override
public int hashCode() {
return Objects.hash(entitiesList, groupOddrn);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class DataEntityGroup {\n");
sb.append(" entitiesList: ").append(toIndentedString(entitiesList)).append("\n");
sb.append(" groupOddrn: ").append(toIndentedString(groupOddrn)).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