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

com.seeq.model.FoldedStackNodeV1 Maven / Gradle / Ivy

There is a newer version: 66.0.0-v202410141803
Show newest version
/*
 * Seeq REST API
 * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
 *
 * OpenAPI spec version: 65.1.3-v202408082312
 * 
 *
 * NOTE: This class is auto generated by the swagger code generator program.
 * https://github.com/swagger-api/swagger-codegen.git
 * Do not edit the class manually.
 */

package com.seeq.model;

import java.util.Objects;
import java.util.Arrays;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue;
import com.seeq.model.FoldedStackNodeV1;
import io.swagger.v3.oas.annotations.media.Schema;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
/**
 * FoldedStackNodeV1
 */
public class FoldedStackNodeV1 {
  @JsonProperty("children")
  private List children = new ArrayList();

  @JsonProperty("intervalEnd")
  private Long intervalEnd = null;

  @JsonProperty("intervalStart")
  private Long intervalStart = null;

  @JsonProperty("name")
  private String name = null;

  @JsonProperty("properties")
  private Map properties = new HashMap();

  @JsonProperty("value")
  private Integer value = null;

  public FoldedStackNodeV1 children(List children) {
    this.children = children;
    return this;
  }

  public FoldedStackNodeV1 addChildrenItem(FoldedStackNodeV1 childrenItem) {
    if (this.children == null) {
      this.children = new ArrayList();
    }
    this.children.add(childrenItem);
    return this;
  }

   /**
   * Get children
   * @return children
  **/
  @Schema(description = "")
  public List getChildren() {
    return children;
  }

  public void setChildren(List children) {
    this.children = children;
  }

  public FoldedStackNodeV1 intervalEnd(Long intervalEnd) {
    this.intervalEnd = intervalEnd;
    return this;
  }

   /**
   * Get intervalEnd
   * @return intervalEnd
  **/
  @Schema(description = "")
  public Long getIntervalEnd() {
    return intervalEnd;
  }

  public void setIntervalEnd(Long intervalEnd) {
    this.intervalEnd = intervalEnd;
  }

  public FoldedStackNodeV1 intervalStart(Long intervalStart) {
    this.intervalStart = intervalStart;
    return this;
  }

   /**
   * Get intervalStart
   * @return intervalStart
  **/
  @Schema(description = "")
  public Long getIntervalStart() {
    return intervalStart;
  }

  public void setIntervalStart(Long intervalStart) {
    this.intervalStart = intervalStart;
  }

  public FoldedStackNodeV1 name(String name) {
    this.name = name;
    return this;
  }

   /**
   * Get name
   * @return name
  **/
  @Schema(description = "")
  public String getName() {
    return name;
  }

  public void setName(String name) {
    this.name = name;
  }

  public FoldedStackNodeV1 properties(Map properties) {
    this.properties = properties;
    return this;
  }

  public FoldedStackNodeV1 putPropertiesItem(String key, String propertiesItem) {
    if (this.properties == null) {
      this.properties = new HashMap();
    }
    this.properties.put(key, propertiesItem);
    return this;
  }

   /**
   * Get properties
   * @return properties
  **/
  @Schema(description = "")
  public Map getProperties() {
    return properties;
  }

  public void setProperties(Map properties) {
    this.properties = properties;
  }

  public FoldedStackNodeV1 value(Integer value) {
    this.value = value;
    return this;
  }

   /**
   * Get value
   * @return value
  **/
  @Schema(description = "")
  public Integer getValue() {
    return value;
  }

  public void setValue(Integer value) {
    this.value = value;
  }


  @Override
  public boolean equals(java.lang.Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    FoldedStackNodeV1 foldedStackNodeV1 = (FoldedStackNodeV1) o;
    return Objects.equals(this.children, foldedStackNodeV1.children) &&
        Objects.equals(this.intervalEnd, foldedStackNodeV1.intervalEnd) &&
        Objects.equals(this.intervalStart, foldedStackNodeV1.intervalStart) &&
        Objects.equals(this.name, foldedStackNodeV1.name) &&
        Objects.equals(this.properties, foldedStackNodeV1.properties) &&
        Objects.equals(this.value, foldedStackNodeV1.value);
  }

  @Override
  public int hashCode() {
    return Objects.hash(children, intervalEnd, intervalStart, name, properties, value);
  }


  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class FoldedStackNodeV1 {\n");
    
    sb.append("    children: ").append(toIndentedString(children)).append("\n");
    sb.append("    intervalEnd: ").append(toIndentedString(intervalEnd)).append("\n");
    sb.append("    intervalStart: ").append(toIndentedString(intervalStart)).append("\n");
    sb.append("    name: ").append(toIndentedString(name)).append("\n");
    sb.append("    properties: ").append(toIndentedString(properties)).append("\n");
    sb.append("    value: ").append(toIndentedString(value)).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(java.lang.Object o) {
    if (o == null) {
      return "null";
    }
    return o.toString().replace("\n", "\n    ");
  }
  
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy