com.ziqni.admin.sdk.model.EntityGraphNode Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of ziqni-admin-sdk Show documentation
Show all versions of ziqni-admin-sdk Show documentation
ZIQNI Admin SDK Java Client
/*
* 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.OptinStatus;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
/**
* Mission is a specialised view of connected achievements. The first achievement is the container, every dependant achievement is a chained dependency
*/
@ApiModel(description = "Mission is a specialised view of connected achievements. The first achievement is the container, every dependant achievement is a chained dependency")
@JsonPropertyOrder({
EntityGraphNode.JSON_PROPERTY_NAME,
EntityGraphNode.JSON_PROPERTY_OPT_IN_STATUS,
EntityGraphNode.JSON_PROPERTY_CONSTRAINTS,
EntityGraphNode.JSON_PROPERTY_ENTITY_TYPE,
EntityGraphNode.JSON_PROPERTY_ENTITY_ID,
EntityGraphNode.JSON_PROPERTY_ENTITY_STATUS_CODE,
EntityGraphNode.JSON_PROPERTY_ENTITY_STATUS,
EntityGraphNode.JSON_PROPERTY_INCLUDES
})
@javax.annotation.processing.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
public class EntityGraphNode {
public static final String JSON_PROPERTY_NAME = "name";
private String name;
public static final String JSON_PROPERTY_OPT_IN_STATUS = "optInStatus";
private OptinStatus optInStatus;
public static final String JSON_PROPERTY_CONSTRAINTS = "constraints";
private List constraints = null;
public static final String JSON_PROPERTY_ENTITY_TYPE = "entityType";
private String entityType;
public static final String JSON_PROPERTY_ENTITY_ID = "entityId";
private String entityId;
public static final String JSON_PROPERTY_ENTITY_STATUS_CODE = "entityStatusCode";
private Integer entityStatusCode;
public static final String JSON_PROPERTY_ENTITY_STATUS = "entityStatus";
private String entityStatus;
public static final String JSON_PROPERTY_INCLUDES = "includes";
private Map includes = null;
public EntityGraphNode name(String name) {
this.name = name;
return this;
}
/**
* Get name
* @return name
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_NAME)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getName() {
return name;
}
@JsonProperty(JSON_PROPERTY_NAME)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setName(String name) {
this.name = name;
}
public EntityGraphNode optInStatus(OptinStatus optInStatus) {
this.optInStatus = optInStatus;
return this;
}
/**
* Get optInStatus
* @return optInStatus
**/
@javax.annotation.Nonnull
@ApiModelProperty(required = true, value = "")
@JsonProperty(JSON_PROPERTY_OPT_IN_STATUS)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public OptinStatus getOptInStatus() {
return optInStatus;
}
@JsonProperty(JSON_PROPERTY_OPT_IN_STATUS)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public void setOptInStatus(OptinStatus optInStatus) {
this.optInStatus = optInStatus;
}
public EntityGraphNode constraints(List constraints) {
this.constraints = constraints;
return this;
}
public EntityGraphNode addConstraintsItem(String constraintsItem) {
if (this.constraints == null) {
this.constraints = new ArrayList<>();
}
this.constraints.add(constraintsItem);
return this;
}
/**
* isCompleted, etc
* @return constraints
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "isCompleted, etc")
@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 EntityGraphNode entityType(String entityType) {
this.entityType = entityType;
return this;
}
/**
* Get entityType
* @return entityType
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_ENTITY_TYPE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getEntityType() {
return entityType;
}
@JsonProperty(JSON_PROPERTY_ENTITY_TYPE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setEntityType(String entityType) {
this.entityType = entityType;
}
public EntityGraphNode entityId(String entityId) {
this.entityId = entityId;
return this;
}
/**
* Get entityId
* @return entityId
**/
@javax.annotation.Nonnull
@ApiModelProperty(required = true, value = "")
@JsonProperty(JSON_PROPERTY_ENTITY_ID)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public String getEntityId() {
return entityId;
}
@JsonProperty(JSON_PROPERTY_ENTITY_ID)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public void setEntityId(String entityId) {
this.entityId = entityId;
}
public EntityGraphNode entityStatusCode(Integer entityStatusCode) {
this.entityStatusCode = entityStatusCode;
return this;
}
/**
* Get entityStatusCode
* @return entityStatusCode
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_ENTITY_STATUS_CODE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public Integer getEntityStatusCode() {
return entityStatusCode;
}
@JsonProperty(JSON_PROPERTY_ENTITY_STATUS_CODE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setEntityStatusCode(Integer entityStatusCode) {
this.entityStatusCode = entityStatusCode;
}
public EntityGraphNode entityStatus(String entityStatus) {
this.entityStatus = entityStatus;
return this;
}
/**
* Get entityStatus
* @return entityStatus
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_ENTITY_STATUS)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getEntityStatus() {
return entityStatus;
}
@JsonProperty(JSON_PROPERTY_ENTITY_STATUS)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setEntityStatus(String entityStatus) {
this.entityStatus = entityStatus;
}
public EntityGraphNode includes(Map includes) {
this.includes = includes;
return this;
}
public EntityGraphNode putIncludesItem(String key, Object includesItem) {
if (this.includes == null) {
this.includes = new HashMap<>();
}
this.includes.put(key, includesItem);
return this;
}
/**
* Get includes
* @return includes
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_INCLUDES)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public Map getIncludes() {
return includes;
}
@JsonProperty(JSON_PROPERTY_INCLUDES)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setIncludes(Map includes) {
this.includes = includes;
}
/**
* Return true if this EntityGraphNode object is equal to o.
*/
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
EntityGraphNode entityGraphNode = (EntityGraphNode) o;
return Objects.equals(this.name, entityGraphNode.name) &&
Objects.equals(this.optInStatus, entityGraphNode.optInStatus) &&
Objects.equals(this.constraints, entityGraphNode.constraints) &&
Objects.equals(this.entityType, entityGraphNode.entityType) &&
Objects.equals(this.entityId, entityGraphNode.entityId) &&
Objects.equals(this.entityStatusCode, entityGraphNode.entityStatusCode) &&
Objects.equals(this.entityStatus, entityGraphNode.entityStatus) &&
Objects.equals(this.includes, entityGraphNode.includes);
}
@Override
public int hashCode() {
return Objects.hash(name, optInStatus, constraints, entityType, entityId, entityStatusCode, entityStatus, includes);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class EntityGraphNode {\n");
sb.append(" name: ").append(toIndentedString(name)).append("\n");
sb.append(" optInStatus: ").append(toIndentedString(optInStatus)).append("\n");
sb.append(" constraints: ").append(toIndentedString(constraints)).append("\n");
sb.append(" entityType: ").append(toIndentedString(entityType)).append("\n");
sb.append(" entityId: ").append(toIndentedString(entityId)).append("\n");
sb.append(" entityStatusCode: ").append(toIndentedString(entityStatusCode)).append("\n");
sb.append(" entityStatus: ").append(toIndentedString(entityStatus)).append("\n");
sb.append(" includes: ").append(toIndentedString(includes)).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