com.dominodatalab.api.model.DominoCommonGatewaySearchFeatureViewSearchResultDTO Maven / Gradle / Ivy
/*
* Domino Data Lab API v4
* This API is going to provide access to all the Domino functions available in the user interface. To authenticate your requests, include your API Key (which you can find on your account page) with the header X-Domino-Api-Key.
*
* The version of the OpenAPI document: 4.0.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
package com.dominodatalab.api.model;
import java.net.URLEncoder;
import java.nio.charset.StandardCharsets;
import java.util.StringJoiner;
import java.util.Objects;
import java.util.Map;
import java.util.HashMap;
import com.dominodatalab.api.model.DominoCommonGatewaySearchFuzzyHighlightInfo;
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.Arrays;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
/**
* DominoCommonGatewaySearchFeatureViewSearchResultDTO
*/
@JsonPropertyOrder({
DominoCommonGatewaySearchFeatureViewSearchResultDTO.JSON_PROPERTY_FEATURE_VIEW_ID,
DominoCommonGatewaySearchFeatureViewSearchResultDTO.JSON_PROPERTY_HIGHLIGHT_INFO,
DominoCommonGatewaySearchFeatureViewSearchResultDTO.JSON_PROPERTY_FEATURE_VIEW_NAME,
DominoCommonGatewaySearchFeatureViewSearchResultDTO.JSON_PROPERTY_DESCRIPTION,
DominoCommonGatewaySearchFeatureViewSearchResultDTO.JSON_PROPERTY_ENTITIES,
DominoCommonGatewaySearchFeatureViewSearchResultDTO.JSON_PROPERTY_FEATURES,
DominoCommonGatewaySearchFeatureViewSearchResultDTO.JSON_PROPERTY_TAGS,
DominoCommonGatewaySearchFeatureViewSearchResultDTO.JSON_PROPERTY_AUTHOR,
DominoCommonGatewaySearchFeatureViewSearchResultDTO.JSON_PROPERTY_LAST_UPDATED,
DominoCommonGatewaySearchFeatureViewSearchResultDTO.JSON_PROPERTY_CREATED,
DominoCommonGatewaySearchFeatureViewSearchResultDTO.JSON_PROPERTY_PROJECT_IDS
})
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-10-17T15:20:46.682098100-04:00[America/New_York]")
public class DominoCommonGatewaySearchFeatureViewSearchResultDTO {
public static final String JSON_PROPERTY_FEATURE_VIEW_ID = "featureViewId";
private String featureViewId;
public static final String JSON_PROPERTY_HIGHLIGHT_INFO = "highlightInfo";
private DominoCommonGatewaySearchFuzzyHighlightInfo highlightInfo;
public static final String JSON_PROPERTY_FEATURE_VIEW_NAME = "featureViewName";
private String featureViewName;
public static final String JSON_PROPERTY_DESCRIPTION = "description";
private String description;
public static final String JSON_PROPERTY_ENTITIES = "entities";
private List entities = new ArrayList<>();
public static final String JSON_PROPERTY_FEATURES = "features";
private List features = new ArrayList<>();
public static final String JSON_PROPERTY_TAGS = "tags";
private Map tags = new HashMap<>();
public static final String JSON_PROPERTY_AUTHOR = "author";
private String author;
public static final String JSON_PROPERTY_LAST_UPDATED = "lastUpdated";
private Long lastUpdated;
public static final String JSON_PROPERTY_CREATED = "created";
private Long created;
public static final String JSON_PROPERTY_PROJECT_IDS = "projectIds";
private List projectIds = new ArrayList<>();
public DominoCommonGatewaySearchFeatureViewSearchResultDTO() {
}
public DominoCommonGatewaySearchFeatureViewSearchResultDTO featureViewId(String featureViewId) {
this.featureViewId = featureViewId;
return this;
}
/**
* Get featureViewId
* @return featureViewId
**/
@javax.annotation.Nonnull
@JsonProperty(JSON_PROPERTY_FEATURE_VIEW_ID)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public String getFeatureViewId() {
return featureViewId;
}
@JsonProperty(JSON_PROPERTY_FEATURE_VIEW_ID)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public void setFeatureViewId(String featureViewId) {
this.featureViewId = featureViewId;
}
public DominoCommonGatewaySearchFeatureViewSearchResultDTO highlightInfo(DominoCommonGatewaySearchFuzzyHighlightInfo highlightInfo) {
this.highlightInfo = highlightInfo;
return this;
}
/**
* Get highlightInfo
* @return highlightInfo
**/
@javax.annotation.Nonnull
@JsonProperty(JSON_PROPERTY_HIGHLIGHT_INFO)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public DominoCommonGatewaySearchFuzzyHighlightInfo getHighlightInfo() {
return highlightInfo;
}
@JsonProperty(JSON_PROPERTY_HIGHLIGHT_INFO)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public void setHighlightInfo(DominoCommonGatewaySearchFuzzyHighlightInfo highlightInfo) {
this.highlightInfo = highlightInfo;
}
public DominoCommonGatewaySearchFeatureViewSearchResultDTO featureViewName(String featureViewName) {
this.featureViewName = featureViewName;
return this;
}
/**
* Get featureViewName
* @return featureViewName
**/
@javax.annotation.Nonnull
@JsonProperty(JSON_PROPERTY_FEATURE_VIEW_NAME)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public String getFeatureViewName() {
return featureViewName;
}
@JsonProperty(JSON_PROPERTY_FEATURE_VIEW_NAME)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public void setFeatureViewName(String featureViewName) {
this.featureViewName = featureViewName;
}
public DominoCommonGatewaySearchFeatureViewSearchResultDTO description(String description) {
this.description = description;
return this;
}
/**
* Get description
* @return description
**/
@javax.annotation.Nonnull
@JsonProperty(JSON_PROPERTY_DESCRIPTION)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public String getDescription() {
return description;
}
@JsonProperty(JSON_PROPERTY_DESCRIPTION)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public void setDescription(String description) {
this.description = description;
}
public DominoCommonGatewaySearchFeatureViewSearchResultDTO entities(List entities) {
this.entities = entities;
return this;
}
public DominoCommonGatewaySearchFeatureViewSearchResultDTO addEntitiesItem(String entitiesItem) {
if (this.entities == null) {
this.entities = new ArrayList<>();
}
this.entities.add(entitiesItem);
return this;
}
/**
* Get entities
* @return entities
**/
@javax.annotation.Nonnull
@JsonProperty(JSON_PROPERTY_ENTITIES)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public List getEntities() {
return entities;
}
@JsonProperty(JSON_PROPERTY_ENTITIES)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public void setEntities(List entities) {
this.entities = entities;
}
public DominoCommonGatewaySearchFeatureViewSearchResultDTO features(List features) {
this.features = features;
return this;
}
public DominoCommonGatewaySearchFeatureViewSearchResultDTO addFeaturesItem(String featuresItem) {
if (this.features == null) {
this.features = new ArrayList<>();
}
this.features.add(featuresItem);
return this;
}
/**
* Get features
* @return features
**/
@javax.annotation.Nonnull
@JsonProperty(JSON_PROPERTY_FEATURES)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public List getFeatures() {
return features;
}
@JsonProperty(JSON_PROPERTY_FEATURES)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public void setFeatures(List features) {
this.features = features;
}
public DominoCommonGatewaySearchFeatureViewSearchResultDTO tags(Map tags) {
this.tags = tags;
return this;
}
public DominoCommonGatewaySearchFeatureViewSearchResultDTO putTagsItem(String key, String tagsItem) {
if (this.tags == null) {
this.tags = new HashMap<>();
}
this.tags.put(key, tagsItem);
return this;
}
/**
* Get tags
* @return tags
**/
@javax.annotation.Nonnull
@JsonProperty(JSON_PROPERTY_TAGS)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public Map getTags() {
return tags;
}
@JsonProperty(JSON_PROPERTY_TAGS)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public void setTags(Map tags) {
this.tags = tags;
}
public DominoCommonGatewaySearchFeatureViewSearchResultDTO author(String author) {
this.author = author;
return this;
}
/**
* Get author
* @return author
**/
@javax.annotation.Nonnull
@JsonProperty(JSON_PROPERTY_AUTHOR)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public String getAuthor() {
return author;
}
@JsonProperty(JSON_PROPERTY_AUTHOR)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public void setAuthor(String author) {
this.author = author;
}
public DominoCommonGatewaySearchFeatureViewSearchResultDTO lastUpdated(Long lastUpdated) {
this.lastUpdated = lastUpdated;
return this;
}
/**
* Get lastUpdated
* @return lastUpdated
**/
@javax.annotation.Nonnull
@JsonProperty(JSON_PROPERTY_LAST_UPDATED)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public Long getLastUpdated() {
return lastUpdated;
}
@JsonProperty(JSON_PROPERTY_LAST_UPDATED)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public void setLastUpdated(Long lastUpdated) {
this.lastUpdated = lastUpdated;
}
public DominoCommonGatewaySearchFeatureViewSearchResultDTO created(Long created) {
this.created = created;
return this;
}
/**
* Get created
* @return created
**/
@javax.annotation.Nonnull
@JsonProperty(JSON_PROPERTY_CREATED)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public Long getCreated() {
return created;
}
@JsonProperty(JSON_PROPERTY_CREATED)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public void setCreated(Long created) {
this.created = created;
}
public DominoCommonGatewaySearchFeatureViewSearchResultDTO projectIds(List projectIds) {
this.projectIds = projectIds;
return this;
}
public DominoCommonGatewaySearchFeatureViewSearchResultDTO addProjectIdsItem(String projectIdsItem) {
if (this.projectIds == null) {
this.projectIds = new ArrayList<>();
}
this.projectIds.add(projectIdsItem);
return this;
}
/**
* Get projectIds
* @return projectIds
**/
@javax.annotation.Nonnull
@JsonProperty(JSON_PROPERTY_PROJECT_IDS)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public List getProjectIds() {
return projectIds;
}
@JsonProperty(JSON_PROPERTY_PROJECT_IDS)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public void setProjectIds(List projectIds) {
this.projectIds = projectIds;
}
/**
* Return true if this domino.common.gateway.search.FeatureViewSearchResultDTO object is equal to o.
*/
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
DominoCommonGatewaySearchFeatureViewSearchResultDTO dominoCommonGatewaySearchFeatureViewSearchResultDTO = (DominoCommonGatewaySearchFeatureViewSearchResultDTO) o;
return Objects.equals(this.featureViewId, dominoCommonGatewaySearchFeatureViewSearchResultDTO.featureViewId) &&
Objects.equals(this.highlightInfo, dominoCommonGatewaySearchFeatureViewSearchResultDTO.highlightInfo) &&
Objects.equals(this.featureViewName, dominoCommonGatewaySearchFeatureViewSearchResultDTO.featureViewName) &&
Objects.equals(this.description, dominoCommonGatewaySearchFeatureViewSearchResultDTO.description) &&
Objects.equals(this.entities, dominoCommonGatewaySearchFeatureViewSearchResultDTO.entities) &&
Objects.equals(this.features, dominoCommonGatewaySearchFeatureViewSearchResultDTO.features) &&
Objects.equals(this.tags, dominoCommonGatewaySearchFeatureViewSearchResultDTO.tags) &&
Objects.equals(this.author, dominoCommonGatewaySearchFeatureViewSearchResultDTO.author) &&
Objects.equals(this.lastUpdated, dominoCommonGatewaySearchFeatureViewSearchResultDTO.lastUpdated) &&
Objects.equals(this.created, dominoCommonGatewaySearchFeatureViewSearchResultDTO.created) &&
Objects.equals(this.projectIds, dominoCommonGatewaySearchFeatureViewSearchResultDTO.projectIds);
}
@Override
public int hashCode() {
return Objects.hash(featureViewId, highlightInfo, featureViewName, description, entities, features, tags, author, lastUpdated, created, projectIds);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class DominoCommonGatewaySearchFeatureViewSearchResultDTO {\n");
sb.append(" featureViewId: ").append(toIndentedString(featureViewId)).append("\n");
sb.append(" highlightInfo: ").append(toIndentedString(highlightInfo)).append("\n");
sb.append(" featureViewName: ").append(toIndentedString(featureViewName)).append("\n");
sb.append(" description: ").append(toIndentedString(description)).append("\n");
sb.append(" entities: ").append(toIndentedString(entities)).append("\n");
sb.append(" features: ").append(toIndentedString(features)).append("\n");
sb.append(" tags: ").append(toIndentedString(tags)).append("\n");
sb.append(" author: ").append(toIndentedString(author)).append("\n");
sb.append(" lastUpdated: ").append(toIndentedString(lastUpdated)).append("\n");
sb.append(" created: ").append(toIndentedString(created)).append("\n");
sb.append(" projectIds: ").append(toIndentedString(projectIds)).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 ");
}
/**
* Convert the instance into URL query string.
*
* @return URL query string
*/
public String toUrlQueryString() {
return toUrlQueryString(null);
}
/**
* Convert the instance into URL query string.
*
* @param prefix prefix of the query string
* @return URL query string
*/
public String toUrlQueryString(String prefix) {
String suffix = "";
String containerSuffix = "";
String containerPrefix = "";
if (prefix == null) {
// style=form, explode=true, e.g. /pet?name=cat&type=manx
prefix = "";
} else {
// deepObject style e.g. /pet?id[name]=cat&id[type]=manx
prefix = prefix + "[";
suffix = "]";
containerSuffix = "]";
containerPrefix = "[";
}
StringJoiner joiner = new StringJoiner("&");
// add `featureViewId` to the URL query string
if (getFeatureViewId() != null) {
joiner.add(String.format("%sfeatureViewId%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getFeatureViewId()), StandardCharsets.UTF_8).replaceAll("\\+", "%20")));
}
// add `highlightInfo` to the URL query string
if (getHighlightInfo() != null) {
joiner.add(getHighlightInfo().toUrlQueryString(prefix + "highlightInfo" + suffix));
}
// add `featureViewName` to the URL query string
if (getFeatureViewName() != null) {
joiner.add(String.format("%sfeatureViewName%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getFeatureViewName()), StandardCharsets.UTF_8).replaceAll("\\+", "%20")));
}
// add `description` to the URL query string
if (getDescription() != null) {
joiner.add(String.format("%sdescription%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getDescription()), StandardCharsets.UTF_8).replaceAll("\\+", "%20")));
}
// add `entities` to the URL query string
if (getEntities() != null) {
for (int i = 0; i < getEntities().size(); i++) {
joiner.add(String.format("%sentities%s%s=%s", prefix, suffix,
"".equals(suffix) ? "" : String.format("%s%d%s", containerPrefix, i, containerSuffix),
URLEncoder.encode(String.valueOf(getEntities().get(i)), StandardCharsets.UTF_8).replaceAll("\\+", "%20")));
}
}
// add `features` to the URL query string
if (getFeatures() != null) {
for (int i = 0; i < getFeatures().size(); i++) {
joiner.add(String.format("%sfeatures%s%s=%s", prefix, suffix,
"".equals(suffix) ? "" : String.format("%s%d%s", containerPrefix, i, containerSuffix),
URLEncoder.encode(String.valueOf(getFeatures().get(i)), StandardCharsets.UTF_8).replaceAll("\\+", "%20")));
}
}
// add `tags` to the URL query string
if (getTags() != null) {
for (String _key : getTags().keySet()) {
joiner.add(String.format("%stags%s%s=%s", prefix, suffix,
"".equals(suffix) ? "" : String.format("%s%d%s", containerPrefix, _key, containerSuffix),
getTags().get(_key), URLEncoder.encode(String.valueOf(getTags().get(_key)), StandardCharsets.UTF_8).replaceAll("\\+", "%20")));
}
}
// add `author` to the URL query string
if (getAuthor() != null) {
joiner.add(String.format("%sauthor%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getAuthor()), StandardCharsets.UTF_8).replaceAll("\\+", "%20")));
}
// add `lastUpdated` to the URL query string
if (getLastUpdated() != null) {
joiner.add(String.format("%slastUpdated%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getLastUpdated()), StandardCharsets.UTF_8).replaceAll("\\+", "%20")));
}
// add `created` to the URL query string
if (getCreated() != null) {
joiner.add(String.format("%screated%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getCreated()), StandardCharsets.UTF_8).replaceAll("\\+", "%20")));
}
// add `projectIds` to the URL query string
if (getProjectIds() != null) {
for (int i = 0; i < getProjectIds().size(); i++) {
joiner.add(String.format("%sprojectIds%s%s=%s", prefix, suffix,
"".equals(suffix) ? "" : String.format("%s%d%s", containerPrefix, i, containerSuffix),
URLEncoder.encode(String.valueOf(getProjectIds().get(i)), StandardCharsets.UTF_8).replaceAll("\\+", "%20")));
}
}
return joiner.toString();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy