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

com.seeq.model.FolderNavigationOutputV1 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.FolderNavigationOutputV1;
import io.swagger.v3.oas.annotations.media.Schema;
import java.util.ArrayList;
import java.util.List;
/**
 * FolderNavigationOutputV1
 */
public class FolderNavigationOutputV1 {
  @JsonProperty("id")
  private String id = null;

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

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

  @JsonProperty("subfolders")
  private List subfolders = new ArrayList();

  public FolderNavigationOutputV1 id(String id) {
    this.id = id;
    return this;
  }

   /**
   * The ID that can be used to interact with the item
   * @return id
  **/
  @Schema(required = true, description = "The ID that can be used to interact with the item")
  public String getId() {
    return id;
  }

  public void setId(String id) {
    this.id = id;
  }

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

   /**
   * The human readable name
   * @return name
  **/
  @Schema(required = true, description = "The human readable name")
  public String getName() {
    return name;
  }

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

  public FolderNavigationOutputV1 parentId(String parentId) {
    this.parentId = parentId;
    return this;
  }

   /**
   * The ID of the hierarchy parent of this item. May be null if it's a root-level item
   * @return parentId
  **/
  @Schema(description = "The ID of the hierarchy parent of this item. May be null if it's a root-level item")
  public String getParentId() {
    return parentId;
  }

  public void setParentId(String parentId) {
    this.parentId = parentId;
  }

  public FolderNavigationOutputV1 subfolders(List subfolders) {
    this.subfolders = subfolders;
    return this;
  }

  public FolderNavigationOutputV1 addSubfoldersItem(FolderNavigationOutputV1 subfoldersItem) {
    if (this.subfolders == null) {
      this.subfolders = new ArrayList();
    }
    this.subfolders.add(subfoldersItem);
    return this;
  }

   /**
   * The list of subfolders
   * @return subfolders
  **/
  @Schema(description = "The list of subfolders")
  public List getSubfolders() {
    return subfolders;
  }

  public void setSubfolders(List subfolders) {
    this.subfolders = subfolders;
  }


  @Override
  public boolean equals(java.lang.Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    FolderNavigationOutputV1 folderNavigationOutputV1 = (FolderNavigationOutputV1) o;
    return Objects.equals(this.id, folderNavigationOutputV1.id) &&
        Objects.equals(this.name, folderNavigationOutputV1.name) &&
        Objects.equals(this.parentId, folderNavigationOutputV1.parentId) &&
        Objects.equals(this.subfolders, folderNavigationOutputV1.subfolders);
  }

  @Override
  public int hashCode() {
    return Objects.hash(id, name, parentId, subfolders);
  }


  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class FolderNavigationOutputV1 {\n");
    
    sb.append("    id: ").append(toIndentedString(id)).append("\n");
    sb.append("    name: ").append(toIndentedString(name)).append("\n");
    sb.append("    parentId: ").append(toIndentedString(parentId)).append("\n");
    sb.append("    subfolders: ").append(toIndentedString(subfolders)).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