All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.ziqni.admin.sdk.model.EntityGraphEdge Maven / Gradle / Ivy

There is a newer version: 1.0.24
Show newest version
/*
 * ZIQNI Admin API
 * Ziqni Application Services are used to manage and configure spaces.  Change log:  2024-02-27 Added rewards reduced to the LeaderboardEntry response
 *
 * The version of the OpenAPI document: 3.0.17
 * 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.EntityGraphEdgeType;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.util.ArrayList;
import java.util.List;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;


/**
 * EntityGraphEdge
 */
@JsonPropertyOrder({
  EntityGraphEdge.JSON_PROPERTY_ORDERING,
  EntityGraphEdge.JSON_PROPERTY_CONSTRAINTS,
  EntityGraphEdge.JSON_PROPERTY_TAIL_ENTITY_ID,
  EntityGraphEdge.JSON_PROPERTY_HEAD_ENTITY_ID,
  EntityGraphEdge.JSON_PROPERTY_GRAPH_EDGE_TYPE
})
@javax.annotation.processing.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
public class EntityGraphEdge {
  public static final String JSON_PROPERTY_ORDERING = "ordering";
  private Integer ordering;

  public static final String JSON_PROPERTY_CONSTRAINTS = "constraints";
  private List constraints = null;

  public static final String JSON_PROPERTY_TAIL_ENTITY_ID = "tailEntityId";
  private String tailEntityId;

  public static final String JSON_PROPERTY_HEAD_ENTITY_ID = "headEntityId";
  private String headEntityId;

  public static final String JSON_PROPERTY_GRAPH_EDGE_TYPE = "graphEdgeType";
  private EntityGraphEdgeType graphEdgeType;


  public EntityGraphEdge ordering(Integer ordering) {
    this.ordering = ordering;
    return this;
  }

   /**
   * Get ordering
   * @return ordering
  **/
  @javax.annotation.Nonnull
  @ApiModelProperty(required = true, value = "")
  @JsonProperty(JSON_PROPERTY_ORDERING)
  @JsonInclude(value = JsonInclude.Include.ALWAYS)

  public Integer getOrdering() {
    return ordering;
  }


  @JsonProperty(JSON_PROPERTY_ORDERING)
  @JsonInclude(value = JsonInclude.Include.ALWAYS)
  public void setOrdering(Integer ordering) {
    this.ordering = ordering;
  }


  public EntityGraphEdge constraints(List constraints) {
    this.constraints = constraints;
    return this;
  }

  public EntityGraphEdge addConstraintsItem(String constraintsItem) {
    if (this.constraints == null) {
      this.constraints = new ArrayList<>();
    }
    this.constraints.add(constraintsItem);
    return this;
  }

   /**
   * Get constraints
   * @return constraints
  **/
  @javax.annotation.Nullable
  @ApiModelProperty(value = "")
  @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 EntityGraphEdge tailEntityId(String tailEntityId) {
    this.tailEntityId = tailEntityId;
    return this;
  }

   /**
   * X the tail of the edge 
   * @return tailEntityId
  **/
  @javax.annotation.Nullable
  @ApiModelProperty(value = "X the tail of the edge ")
  @JsonProperty(JSON_PROPERTY_TAIL_ENTITY_ID)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)

  public String getTailEntityId() {
    return tailEntityId;
  }


  @JsonProperty(JSON_PROPERTY_TAIL_ENTITY_ID)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
  public void setTailEntityId(String tailEntityId) {
    this.tailEntityId = tailEntityId;
  }


  public EntityGraphEdge headEntityId(String headEntityId) {
    this.headEntityId = headEntityId;
    return this;
  }

   /**
   * Y the head of the edge.
   * @return headEntityId
  **/
  @javax.annotation.Nullable
  @ApiModelProperty(value = "Y the head of the edge.")
  @JsonProperty(JSON_PROPERTY_HEAD_ENTITY_ID)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)

  public String getHeadEntityId() {
    return headEntityId;
  }


  @JsonProperty(JSON_PROPERTY_HEAD_ENTITY_ID)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
  public void setHeadEntityId(String headEntityId) {
    this.headEntityId = headEntityId;
  }


  public EntityGraphEdge graphEdgeType(EntityGraphEdgeType graphEdgeType) {
    this.graphEdgeType = graphEdgeType;
    return this;
  }

   /**
   * Get graphEdgeType
   * @return graphEdgeType
  **/
  @javax.annotation.Nullable
  @ApiModelProperty(value = "")
  @JsonProperty(JSON_PROPERTY_GRAPH_EDGE_TYPE)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)

  public EntityGraphEdgeType getGraphEdgeType() {
    return graphEdgeType;
  }


  @JsonProperty(JSON_PROPERTY_GRAPH_EDGE_TYPE)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
  public void setGraphEdgeType(EntityGraphEdgeType graphEdgeType) {
    this.graphEdgeType = graphEdgeType;
  }


  /**
   * Return true if this EntityGraphEdge object is equal to o.
   */
  @Override
  public boolean equals(Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    EntityGraphEdge entityGraphEdge = (EntityGraphEdge) o;
    return Objects.equals(this.ordering, entityGraphEdge.ordering) &&
        Objects.equals(this.constraints, entityGraphEdge.constraints) &&
        Objects.equals(this.tailEntityId, entityGraphEdge.tailEntityId) &&
        Objects.equals(this.headEntityId, entityGraphEdge.headEntityId) &&
        Objects.equals(this.graphEdgeType, entityGraphEdge.graphEdgeType);
  }

  @Override
  public int hashCode() {
    return Objects.hash(ordering, constraints, tailEntityId, headEntityId, graphEdgeType);
  }

  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class EntityGraphEdge {\n");
    sb.append("    ordering: ").append(toIndentedString(ordering)).append("\n");
    sb.append("    constraints: ").append(toIndentedString(constraints)).append("\n");
    sb.append("    tailEntityId: ").append(toIndentedString(tailEntityId)).append("\n");
    sb.append("    headEntityId: ").append(toIndentedString(headEntityId)).append("\n");
    sb.append("    graphEdgeType: ").append(toIndentedString(graphEdgeType)).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