com.ziqni.admin.sdk.model.EntityGraphRequest Maven / Gradle / Ivy
/*
* ZIQNI Admin API
* Ziqni Application Services are used to manage and configure spaces.
*
* The version of the OpenAPI document: 3.0.11
* Contact: [email protected]
*
* 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.ziqni.admin.sdk.model;
import java.util.Objects;
import java.util.Arrays;
import java.util.Map;
import java.util.HashMap;
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 com.ziqni.admin.sdk.model.EntityGraphTraversal;
import com.ziqni.admin.sdk.model.EntityType;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.util.ArrayList;
import java.util.List;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
/**
* EntityGraphRequest
*/
@JsonPropertyOrder({
EntityGraphRequest.JSON_PROPERTY_IDS,
EntityGraphRequest.JSON_PROPERTY_CONSTRAINTS,
EntityGraphRequest.JSON_PROPERTY_TRAVERSAL,
EntityGraphRequest.JSON_PROPERTY_LANGUAGE_KEY,
EntityGraphRequest.JSON_PROPERTY_INCLUDES,
EntityGraphRequest.JSON_PROPERTY_ENTITY_TYPE
})
@javax.annotation.processing.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
public class EntityGraphRequest {
public static final String JSON_PROPERTY_IDS = "ids";
private List ids = new ArrayList<>();
public static final String JSON_PROPERTY_CONSTRAINTS = "constraints";
private List constraints = null;
public static final String JSON_PROPERTY_TRAVERSAL = "traversal";
private EntityGraphTraversal traversal;
public static final String JSON_PROPERTY_LANGUAGE_KEY = "languageKey";
private String languageKey;
public static final String JSON_PROPERTY_INCLUDES = "includes";
private List includes = null;
public static final String JSON_PROPERTY_ENTITY_TYPE = "entityType";
private EntityType entityType;
public EntityGraphRequest ids(List ids) {
this.ids = ids;
return this;
}
public EntityGraphRequest addIdsItem(String idsItem) {
this.ids.add(idsItem);
return this;
}
/**
* The identifier of the node to create a connected graph for
* @return ids
**/
@javax.annotation.Nonnull
@ApiModelProperty(required = true, value = "The identifier of the node to create a connected graph for")
@JsonProperty(JSON_PROPERTY_IDS)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public List getIds() {
return ids;
}
@JsonProperty(JSON_PROPERTY_IDS)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public void setIds(List ids) {
this.ids = ids;
}
public EntityGraphRequest constraints(List constraints) {
this.constraints = constraints;
return this;
}
public EntityGraphRequest addConstraintsItem(String constraintsItem) {
if (this.constraints == null) {
this.constraints = new ArrayList<>();
}
this.constraints.add(constraintsItem);
return this;
}
/**
* Specify the constraints that need to be applied to the filter.
* @return constraints
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "Specify the constraints that need to be applied to the filter.")
@JsonProperty(JSON_PROPERTY_CONSTRAINTS)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public List getConstraints() {
return constraints;
}
@JsonProperty(JSON_PROPERTY_CONSTRAINTS)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setConstraints(List constraints) {
this.constraints = constraints;
}
public EntityGraphRequest traversal(EntityGraphTraversal traversal) {
this.traversal = traversal;
return this;
}
/**
* Get traversal
* @return traversal
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_TRAVERSAL)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public EntityGraphTraversal getTraversal() {
return traversal;
}
@JsonProperty(JSON_PROPERTY_TRAVERSAL)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setTraversal(EntityGraphTraversal traversal) {
this.traversal = traversal;
}
public EntityGraphRequest languageKey(String languageKey) {
this.languageKey = languageKey;
return this;
}
/**
* The language codes can be found in the settings/transalations section of the back office
* @return languageKey
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "The language codes can be found in the settings/transalations section of the back office")
@JsonProperty(JSON_PROPERTY_LANGUAGE_KEY)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getLanguageKey() {
return languageKey;
}
@JsonProperty(JSON_PROPERTY_LANGUAGE_KEY)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setLanguageKey(String languageKey) {
this.languageKey = languageKey;
}
public EntityGraphRequest includes(List includes) {
this.includes = includes;
return this;
}
public EntityGraphRequest addIncludesItem(String includesItem) {
if (this.includes == null) {
this.includes = new ArrayList<>();
}
this.includes.add(includesItem);
return this;
}
/**
* What objects to include from the entity in this response. For achievement the following can be included; description, memberTagsFilter, scheduling, and termsAndConditions
* @return includes
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "What objects to include from the entity in this response. For achievement the following can be included; description, memberTagsFilter, scheduling, and termsAndConditions")
@JsonProperty(JSON_PROPERTY_INCLUDES)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public List getIncludes() {
return includes;
}
@JsonProperty(JSON_PROPERTY_INCLUDES)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setIncludes(List includes) {
this.includes = includes;
}
public EntityGraphRequest entityType(EntityType entityType) {
this.entityType = entityType;
return this;
}
/**
* Get entityType
* @return entityType
**/
@javax.annotation.Nonnull
@ApiModelProperty(required = true, value = "")
@JsonProperty(JSON_PROPERTY_ENTITY_TYPE)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public EntityType getEntityType() {
return entityType;
}
@JsonProperty(JSON_PROPERTY_ENTITY_TYPE)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public void setEntityType(EntityType entityType) {
this.entityType = entityType;
}
/**
* Return true if this EntityGraphRequest object is equal to o.
*/
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
EntityGraphRequest entityGraphRequest = (EntityGraphRequest) o;
return Objects.equals(this.ids, entityGraphRequest.ids) &&
Objects.equals(this.constraints, entityGraphRequest.constraints) &&
Objects.equals(this.traversal, entityGraphRequest.traversal) &&
Objects.equals(this.languageKey, entityGraphRequest.languageKey) &&
Objects.equals(this.includes, entityGraphRequest.includes) &&
Objects.equals(this.entityType, entityGraphRequest.entityType);
}
@Override
public int hashCode() {
return Objects.hash(ids, constraints, traversal, languageKey, includes, entityType);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class EntityGraphRequest {\n");
sb.append(" ids: ").append(toIndentedString(ids)).append("\n");
sb.append(" constraints: ").append(toIndentedString(constraints)).append("\n");
sb.append(" traversal: ").append(toIndentedString(traversal)).append("\n");
sb.append(" languageKey: ").append(toIndentedString(languageKey)).append("\n");
sb.append(" includes: ").append(toIndentedString(includes)).append("\n");
sb.append(" entityType: ").append(toIndentedString(entityType)).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 - 2025 Weber Informatics LLC | Privacy Policy