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

com.ziqni.admin.sdk.model.EntityGraph 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.
 *
 * 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.EntityGraphEdge;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.util.ArrayList;
import java.util.List;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;


/**
 * EntityGraph
 */
@JsonPropertyOrder({
  EntityGraph.JSON_PROPERTY_EDGES,
  EntityGraph.JSON_PROPERTY_NODES_IN_COMPLETED_STATE
})
@javax.annotation.processing.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
public class EntityGraph {
  public static final String JSON_PROPERTY_EDGES = "edges";
  private List edges = null;

  public static final String JSON_PROPERTY_NODES_IN_COMPLETED_STATE = "nodesInCompletedState";
  private Integer nodesInCompletedState;


  public EntityGraph edges(List edges) {
    this.edges = edges;
    return this;
  }

  public EntityGraph addEdgesItem(EntityGraphEdge edgesItem) {
    if (this.edges == null) {
      this.edges = new ArrayList<>();
    }
    this.edges.add(edgesItem);
    return this;
  }

   /**
   * Pairs of nodes that specify a line joining these two nodes are said to form an edge
   * @return edges
  **/
  @javax.annotation.Nullable
  @ApiModelProperty(value = "Pairs of nodes that specify a line joining these two nodes are said to form an edge")
  @JsonProperty(JSON_PROPERTY_EDGES)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)

  public List getEdges() {
    return edges;
  }


  @JsonProperty(JSON_PROPERTY_EDGES)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
  public void setEdges(List edges) {
    this.edges = edges;
  }


  public EntityGraph nodesInCompletedState(Integer nodesInCompletedState) {
    this.nodesInCompletedState = nodesInCompletedState;
    return this;
  }

   /**
   * Nodes in this graph that are in state greater than 35
   * @return nodesInCompletedState
  **/
  @javax.annotation.Nullable
  @ApiModelProperty(value = "Nodes in this graph that are in state greater than 35")
  @JsonProperty(JSON_PROPERTY_NODES_IN_COMPLETED_STATE)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)

  public Integer getNodesInCompletedState() {
    return nodesInCompletedState;
  }


  @JsonProperty(JSON_PROPERTY_NODES_IN_COMPLETED_STATE)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
  public void setNodesInCompletedState(Integer nodesInCompletedState) {
    this.nodesInCompletedState = nodesInCompletedState;
  }


  /**
   * Return true if this EntityGraph object is equal to o.
   */
  @Override
  public boolean equals(Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    EntityGraph entityGraph = (EntityGraph) o;
    return Objects.equals(this.edges, entityGraph.edges) &&
        Objects.equals(this.nodesInCompletedState, entityGraph.nodesInCompletedState);
  }

  @Override
  public int hashCode() {
    return Objects.hash(edges, nodesInCompletedState);
  }

  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class EntityGraph {\n");
    sb.append("    edges: ").append(toIndentedString(edges)).append("\n");
    sb.append("    nodesInCompletedState: ").append(toIndentedString(nodesInCompletedState)).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