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

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

There is a newer version: 66.0.0-v202407310200
Show newest version
/*
 * Seeq REST API
 * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
 *
 * OpenAPI spec version: 64.3.0-v202405012032
 * 
 *
 * 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 io.swagger.v3.oas.annotations.media.Schema;
/**
 * The list of configurations for finding items
 */
@Schema(description = "The list of configurations for finding items")
public class ItemFinderConfigurationV1 {
  /**
   * The type of finder
   */
  public enum FinderTypeEnum {
    SWAP_ACROSS_ASSETS("SWAP_ACROSS_ASSETS");

    private String value;

    FinderTypeEnum(String value) {
      this.value = value;
    }
    @JsonValue
    public String getValue() {
      return value;
    }

    @Override
    public String toString() {
      return String.valueOf(value);
    }
    @JsonCreator
    public static FinderTypeEnum fromValue(String input) {
      for (FinderTypeEnum b : FinderTypeEnum.values()) {
        if (b.value.equals(input)) {
          return b;
        }
      }
      return null;
    }

  }  @JsonProperty("finderType")
  private FinderTypeEnum finderType = null;

  @JsonProperty("isInclude")
  private Boolean isInclude = null;

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

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

  public ItemFinderConfigurationV1 finderType(FinderTypeEnum finderType) {
    this.finderType = finderType;
    return this;
  }

   /**
   * The type of finder
   * @return finderType
  **/
  @Schema(required = true, description = "The type of finder")
  public FinderTypeEnum getFinderType() {
    return finderType;
  }

  public void setFinderType(FinderTypeEnum finderType) {
    this.finderType = finderType;
  }

  public ItemFinderConfigurationV1 isInclude(Boolean isInclude) {
    this.isInclude = isInclude;
    return this;
  }

   /**
   * If true the items found by this configuration will be included in the output, if false then the results will be excluded from the output (even if found by another finder configuration)
   * @return isInclude
  **/
  @Schema(required = true, description = "If true the items found by this configuration will be included in the output, if false then the results will be excluded from the output (even if found by another finder configuration)")
  public Boolean getIsInclude() {
    return isInclude;
  }

  public void setIsInclude(Boolean isInclude) {
    this.isInclude = isInclude;
  }

  public ItemFinderConfigurationV1 rootAssetId(String rootAssetId) {
    this.rootAssetId = rootAssetId;
    return this;
  }

   /**
   * Used if finder type is SwapAcrossAssets, this specifies the ID of the root asset whose immediate children will be iterated.
   * @return rootAssetId
  **/
  @Schema(description = "Used if finder type is SwapAcrossAssets, this specifies the ID of the root asset whose immediate children will be iterated.")
  public String getRootAssetId() {
    return rootAssetId;
  }

  public void setRootAssetId(String rootAssetId) {
    this.rootAssetId = rootAssetId;
  }

  public ItemFinderConfigurationV1 swapItemId(String swapItemId) {
    this.swapItemId = swapItemId;
    return this;
  }

   /**
   * Used if finder type is SwapAcrossAssets, this specifies the ID of the formula item that will be swapped with each asset beneath the root. Each successful swap will be added to the list of found items
   * @return swapItemId
  **/
  @Schema(description = "Used if finder type is SwapAcrossAssets, this specifies the ID of the formula item that will be swapped with each asset beneath the root. Each successful swap will be added to the list of found items")
  public String getSwapItemId() {
    return swapItemId;
  }

  public void setSwapItemId(String swapItemId) {
    this.swapItemId = swapItemId;
  }


  @Override
  public boolean equals(java.lang.Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    ItemFinderConfigurationV1 itemFinderConfigurationV1 = (ItemFinderConfigurationV1) o;
    return Objects.equals(this.finderType, itemFinderConfigurationV1.finderType) &&
        Objects.equals(this.isInclude, itemFinderConfigurationV1.isInclude) &&
        Objects.equals(this.rootAssetId, itemFinderConfigurationV1.rootAssetId) &&
        Objects.equals(this.swapItemId, itemFinderConfigurationV1.swapItemId);
  }

  @Override
  public int hashCode() {
    return Objects.hash(finderType, isInclude, rootAssetId, swapItemId);
  }


  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class ItemFinderConfigurationV1 {\n");
    
    sb.append("    finderType: ").append(toIndentedString(finderType)).append("\n");
    sb.append("    isInclude: ").append(toIndentedString(isInclude)).append("\n");
    sb.append("    rootAssetId: ").append(toIndentedString(rootAssetId)).append("\n");
    sb.append("    swapItemId: ").append(toIndentedString(swapItemId)).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