com.dominodatalab.api.model.DominoFeaturestoreApiFeatureViewDto 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.DominoFeaturestoreApiEntityDto;
import com.dominodatalab.api.model.DominoFeaturestoreApiFeatureDto;
import com.dominodatalab.api.model.DominoFeaturestoreApiFeatureViewProjectInfoDto;
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;
/**
* DominoFeaturestoreApiFeatureViewDto
*/
@JsonPropertyOrder({
DominoFeaturestoreApiFeatureViewDto.JSON_PROPERTY_ID,
DominoFeaturestoreApiFeatureViewDto.JSON_PROPERTY_NAME,
DominoFeaturestoreApiFeatureViewDto.JSON_PROPERTY_FEATURE_STORE_ID,
DominoFeaturestoreApiFeatureViewDto.JSON_PROPERTY_ADDED_BY,
DominoFeaturestoreApiFeatureViewDto.JSON_PROPERTY_CREATED_AT_MILLIS,
DominoFeaturestoreApiFeatureViewDto.JSON_PROPERTY_LAST_UPDATED_MILLIS,
DominoFeaturestoreApiFeatureViewDto.JSON_PROPERTY_STATUS,
DominoFeaturestoreApiFeatureViewDto.JSON_PROPERTY_ENTITIES,
DominoFeaturestoreApiFeatureViewDto.JSON_PROPERTY_FEATURES,
DominoFeaturestoreApiFeatureViewDto.JSON_PROPERTY_TTL,
DominoFeaturestoreApiFeatureViewDto.JSON_PROPERTY_TAGS,
DominoFeaturestoreApiFeatureViewDto.JSON_PROPERTY_PROJECTS_INFO,
DominoFeaturestoreApiFeatureViewDto.JSON_PROPERTY_DESCRIPTION,
DominoFeaturestoreApiFeatureViewDto.JSON_PROPERTY_AUTHOR
})
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-10-17T15:20:46.682098100-04:00[America/New_York]")
public class DominoFeaturestoreApiFeatureViewDto {
public static final String JSON_PROPERTY_ID = "id";
private String id;
public static final String JSON_PROPERTY_NAME = "name";
private String name;
public static final String JSON_PROPERTY_FEATURE_STORE_ID = "featureStoreId";
private String featureStoreId;
public static final String JSON_PROPERTY_ADDED_BY = "addedBy";
private Map addedBy = new HashMap<>();
public static final String JSON_PROPERTY_CREATED_AT_MILLIS = "createdAtMillis";
private Long createdAtMillis;
public static final String JSON_PROPERTY_LAST_UPDATED_MILLIS = "lastUpdatedMillis";
private Long lastUpdatedMillis;
/**
* Gets or Sets status
*/
public enum StatusEnum {
ACTIVE("Active"),
DELETED("Deleted");
private String value;
StatusEnum(String value) {
this.value = value;
}
@JsonValue
public String getValue() {
return value;
}
@Override
public String toString() {
return String.valueOf(value);
}
@JsonCreator
public static StatusEnum fromValue(String value) {
for (StatusEnum b : StatusEnum.values()) {
if (b.value.equals(value)) {
return b;
}
}
throw new IllegalArgumentException("Unexpected value '" + value + "'");
}
}
public static final String JSON_PROPERTY_STATUS = "status";
private StatusEnum status;
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_TTL = "ttl";
private Long ttl;
public static final String JSON_PROPERTY_TAGS = "tags";
private Map tags = new HashMap<>();
public static final String JSON_PROPERTY_PROJECTS_INFO = "projectsInfo";
private List projectsInfo = new ArrayList<>();
public static final String JSON_PROPERTY_DESCRIPTION = "description";
private String description;
public static final String JSON_PROPERTY_AUTHOR = "author";
private String author;
public DominoFeaturestoreApiFeatureViewDto() {
}
public DominoFeaturestoreApiFeatureViewDto id(String id) {
this.id = id;
return this;
}
/**
* Get id
* @return id
**/
@javax.annotation.Nonnull
@JsonProperty(JSON_PROPERTY_ID)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public String getId() {
return id;
}
@JsonProperty(JSON_PROPERTY_ID)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public void setId(String id) {
this.id = id;
}
public DominoFeaturestoreApiFeatureViewDto name(String name) {
this.name = name;
return this;
}
/**
* Get name
* @return name
**/
@javax.annotation.Nonnull
@JsonProperty(JSON_PROPERTY_NAME)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public String getName() {
return name;
}
@JsonProperty(JSON_PROPERTY_NAME)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public void setName(String name) {
this.name = name;
}
public DominoFeaturestoreApiFeatureViewDto featureStoreId(String featureStoreId) {
this.featureStoreId = featureStoreId;
return this;
}
/**
* Get featureStoreId
* @return featureStoreId
**/
@javax.annotation.Nonnull
@JsonProperty(JSON_PROPERTY_FEATURE_STORE_ID)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public String getFeatureStoreId() {
return featureStoreId;
}
@JsonProperty(JSON_PROPERTY_FEATURE_STORE_ID)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public void setFeatureStoreId(String featureStoreId) {
this.featureStoreId = featureStoreId;
}
public DominoFeaturestoreApiFeatureViewDto addedBy(Map addedBy) {
this.addedBy = addedBy;
return this;
}
public DominoFeaturestoreApiFeatureViewDto putAddedByItem(String key, Object addedByItem) {
if (this.addedBy == null) {
this.addedBy = new HashMap<>();
}
this.addedBy.put(key, addedByItem);
return this;
}
/**
* Get addedBy
* @return addedBy
**/
@javax.annotation.Nonnull
@JsonProperty(JSON_PROPERTY_ADDED_BY)
@JsonInclude(content = JsonInclude.Include.ALWAYS, value = JsonInclude.Include.ALWAYS)
public Map getAddedBy() {
return addedBy;
}
@JsonProperty(JSON_PROPERTY_ADDED_BY)
@JsonInclude(content = JsonInclude.Include.ALWAYS, value = JsonInclude.Include.ALWAYS)
public void setAddedBy(Map addedBy) {
this.addedBy = addedBy;
}
public DominoFeaturestoreApiFeatureViewDto createdAtMillis(Long createdAtMillis) {
this.createdAtMillis = createdAtMillis;
return this;
}
/**
* Get createdAtMillis
* @return createdAtMillis
**/
@javax.annotation.Nonnull
@JsonProperty(JSON_PROPERTY_CREATED_AT_MILLIS)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public Long getCreatedAtMillis() {
return createdAtMillis;
}
@JsonProperty(JSON_PROPERTY_CREATED_AT_MILLIS)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public void setCreatedAtMillis(Long createdAtMillis) {
this.createdAtMillis = createdAtMillis;
}
public DominoFeaturestoreApiFeatureViewDto lastUpdatedMillis(Long lastUpdatedMillis) {
this.lastUpdatedMillis = lastUpdatedMillis;
return this;
}
/**
* Get lastUpdatedMillis
* @return lastUpdatedMillis
**/
@javax.annotation.Nonnull
@JsonProperty(JSON_PROPERTY_LAST_UPDATED_MILLIS)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public Long getLastUpdatedMillis() {
return lastUpdatedMillis;
}
@JsonProperty(JSON_PROPERTY_LAST_UPDATED_MILLIS)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public void setLastUpdatedMillis(Long lastUpdatedMillis) {
this.lastUpdatedMillis = lastUpdatedMillis;
}
public DominoFeaturestoreApiFeatureViewDto status(StatusEnum status) {
this.status = status;
return this;
}
/**
* Get status
* @return status
**/
@javax.annotation.Nonnull
@JsonProperty(JSON_PROPERTY_STATUS)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public StatusEnum getStatus() {
return status;
}
@JsonProperty(JSON_PROPERTY_STATUS)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public void setStatus(StatusEnum status) {
this.status = status;
}
public DominoFeaturestoreApiFeatureViewDto entities(List entities) {
this.entities = entities;
return this;
}
public DominoFeaturestoreApiFeatureViewDto addEntitiesItem(DominoFeaturestoreApiEntityDto 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 DominoFeaturestoreApiFeatureViewDto features(List features) {
this.features = features;
return this;
}
public DominoFeaturestoreApiFeatureViewDto addFeaturesItem(DominoFeaturestoreApiFeatureDto 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 DominoFeaturestoreApiFeatureViewDto ttl(Long ttl) {
this.ttl = ttl;
return this;
}
/**
* Get ttl
* @return ttl
**/
@javax.annotation.Nullable
@JsonProperty(JSON_PROPERTY_TTL)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public Long getTtl() {
return ttl;
}
@JsonProperty(JSON_PROPERTY_TTL)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setTtl(Long ttl) {
this.ttl = ttl;
}
public DominoFeaturestoreApiFeatureViewDto tags(Map tags) {
this.tags = tags;
return this;
}
public DominoFeaturestoreApiFeatureViewDto 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 DominoFeaturestoreApiFeatureViewDto projectsInfo(List projectsInfo) {
this.projectsInfo = projectsInfo;
return this;
}
public DominoFeaturestoreApiFeatureViewDto addProjectsInfoItem(DominoFeaturestoreApiFeatureViewProjectInfoDto projectsInfoItem) {
if (this.projectsInfo == null) {
this.projectsInfo = new ArrayList<>();
}
this.projectsInfo.add(projectsInfoItem);
return this;
}
/**
* Get projectsInfo
* @return projectsInfo
**/
@javax.annotation.Nonnull
@JsonProperty(JSON_PROPERTY_PROJECTS_INFO)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public List getProjectsInfo() {
return projectsInfo;
}
@JsonProperty(JSON_PROPERTY_PROJECTS_INFO)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public void setProjectsInfo(List projectsInfo) {
this.projectsInfo = projectsInfo;
}
public DominoFeaturestoreApiFeatureViewDto 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 DominoFeaturestoreApiFeatureViewDto author(String author) {
this.author = author;
return this;
}
/**
* Get author
* @return author
**/
@javax.annotation.Nullable
@JsonProperty(JSON_PROPERTY_AUTHOR)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getAuthor() {
return author;
}
@JsonProperty(JSON_PROPERTY_AUTHOR)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setAuthor(String author) {
this.author = author;
}
/**
* Return true if this domino.featurestore.api.FeatureViewDto object is equal to o.
*/
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
DominoFeaturestoreApiFeatureViewDto dominoFeaturestoreApiFeatureViewDto = (DominoFeaturestoreApiFeatureViewDto) o;
return Objects.equals(this.id, dominoFeaturestoreApiFeatureViewDto.id) &&
Objects.equals(this.name, dominoFeaturestoreApiFeatureViewDto.name) &&
Objects.equals(this.featureStoreId, dominoFeaturestoreApiFeatureViewDto.featureStoreId) &&
Objects.equals(this.addedBy, dominoFeaturestoreApiFeatureViewDto.addedBy) &&
Objects.equals(this.createdAtMillis, dominoFeaturestoreApiFeatureViewDto.createdAtMillis) &&
Objects.equals(this.lastUpdatedMillis, dominoFeaturestoreApiFeatureViewDto.lastUpdatedMillis) &&
Objects.equals(this.status, dominoFeaturestoreApiFeatureViewDto.status) &&
Objects.equals(this.entities, dominoFeaturestoreApiFeatureViewDto.entities) &&
Objects.equals(this.features, dominoFeaturestoreApiFeatureViewDto.features) &&
Objects.equals(this.ttl, dominoFeaturestoreApiFeatureViewDto.ttl) &&
Objects.equals(this.tags, dominoFeaturestoreApiFeatureViewDto.tags) &&
Objects.equals(this.projectsInfo, dominoFeaturestoreApiFeatureViewDto.projectsInfo) &&
Objects.equals(this.description, dominoFeaturestoreApiFeatureViewDto.description) &&
Objects.equals(this.author, dominoFeaturestoreApiFeatureViewDto.author);
}
@Override
public int hashCode() {
return Objects.hash(id, name, featureStoreId, addedBy, createdAtMillis, lastUpdatedMillis, status, entities, features, ttl, tags, projectsInfo, description, author);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class DominoFeaturestoreApiFeatureViewDto {\n");
sb.append(" id: ").append(toIndentedString(id)).append("\n");
sb.append(" name: ").append(toIndentedString(name)).append("\n");
sb.append(" featureStoreId: ").append(toIndentedString(featureStoreId)).append("\n");
sb.append(" addedBy: ").append(toIndentedString(addedBy)).append("\n");
sb.append(" createdAtMillis: ").append(toIndentedString(createdAtMillis)).append("\n");
sb.append(" lastUpdatedMillis: ").append(toIndentedString(lastUpdatedMillis)).append("\n");
sb.append(" status: ").append(toIndentedString(status)).append("\n");
sb.append(" entities: ").append(toIndentedString(entities)).append("\n");
sb.append(" features: ").append(toIndentedString(features)).append("\n");
sb.append(" ttl: ").append(toIndentedString(ttl)).append("\n");
sb.append(" tags: ").append(toIndentedString(tags)).append("\n");
sb.append(" projectsInfo: ").append(toIndentedString(projectsInfo)).append("\n");
sb.append(" description: ").append(toIndentedString(description)).append("\n");
sb.append(" author: ").append(toIndentedString(author)).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 `id` to the URL query string
if (getId() != null) {
joiner.add(String.format("%sid%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getId()), StandardCharsets.UTF_8).replaceAll("\\+", "%20")));
}
// add `name` to the URL query string
if (getName() != null) {
joiner.add(String.format("%sname%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getName()), StandardCharsets.UTF_8).replaceAll("\\+", "%20")));
}
// add `featureStoreId` to the URL query string
if (getFeatureStoreId() != null) {
joiner.add(String.format("%sfeatureStoreId%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getFeatureStoreId()), StandardCharsets.UTF_8).replaceAll("\\+", "%20")));
}
// add `addedBy` to the URL query string
if (getAddedBy() != null) {
for (String _key : getAddedBy().keySet()) {
joiner.add(String.format("%saddedBy%s%s=%s", prefix, suffix,
"".equals(suffix) ? "" : String.format("%s%d%s", containerPrefix, _key, containerSuffix),
getAddedBy().get(_key), URLEncoder.encode(String.valueOf(getAddedBy().get(_key)), StandardCharsets.UTF_8).replaceAll("\\+", "%20")));
}
}
// add `createdAtMillis` to the URL query string
if (getCreatedAtMillis() != null) {
joiner.add(String.format("%screatedAtMillis%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getCreatedAtMillis()), StandardCharsets.UTF_8).replaceAll("\\+", "%20")));
}
// add `lastUpdatedMillis` to the URL query string
if (getLastUpdatedMillis() != null) {
joiner.add(String.format("%slastUpdatedMillis%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getLastUpdatedMillis()), StandardCharsets.UTF_8).replaceAll("\\+", "%20")));
}
// add `status` to the URL query string
if (getStatus() != null) {
joiner.add(String.format("%sstatus%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getStatus()), StandardCharsets.UTF_8).replaceAll("\\+", "%20")));
}
// add `entities` to the URL query string
if (getEntities() != null) {
for (int i = 0; i < getEntities().size(); i++) {
if (getEntities().get(i) != null) {
joiner.add(getEntities().get(i).toUrlQueryString(String.format("%sentities%s%s", prefix, suffix,
"".equals(suffix) ? "" : String.format("%s%d%s", containerPrefix, i, containerSuffix))));
}
}
}
// add `features` to the URL query string
if (getFeatures() != null) {
for (int i = 0; i < getFeatures().size(); i++) {
if (getFeatures().get(i) != null) {
joiner.add(getFeatures().get(i).toUrlQueryString(String.format("%sfeatures%s%s", prefix, suffix,
"".equals(suffix) ? "" : String.format("%s%d%s", containerPrefix, i, containerSuffix))));
}
}
}
// add `ttl` to the URL query string
if (getTtl() != null) {
joiner.add(String.format("%sttl%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getTtl()), 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 `projectsInfo` to the URL query string
if (getProjectsInfo() != null) {
for (int i = 0; i < getProjectsInfo().size(); i++) {
if (getProjectsInfo().get(i) != null) {
joiner.add(getProjectsInfo().get(i).toUrlQueryString(String.format("%sprojectsInfo%s%s", prefix, suffix,
"".equals(suffix) ? "" : String.format("%s%d%s", containerPrefix, i, containerSuffix))));
}
}
}
// 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 `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")));
}
return joiner.toString();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy