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

com.seeq.model.SwapAcrossAssetsSearchV1 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 io.swagger.v3.oas.annotations.media.Schema;
/**
 * The list of searches for swapping across assets to find items
 */
@Schema(description = "The list of searches for swapping across assets to find items")
public class SwapAcrossAssetsSearchV1 {
  @JsonProperty("isInclude")
  private Boolean isInclude = null;

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

  /**
   * The type of finder
   */
  public enum SearchTypeEnum {
    SWAP_ACROSS_ASSETS("SWAP_ACROSS_ASSETS"),
    FIXED_LIST("FIXED_LIST"),
    PROPERTY("PROPERTY");

    private String value;

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

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

  }  @JsonProperty("searchType")
  private SearchTypeEnum searchType = null;

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

  public SwapAcrossAssetsSearchV1 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 SwapAcrossAssetsSearchV1 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 SwapAcrossAssetsSearchV1 searchType(SearchTypeEnum searchType) {
    this.searchType = searchType;
    return this;
  }

   /**
   * The type of finder
   * @return searchType
  **/
  @Schema(required = true, description = "The type of finder")
  public SearchTypeEnum getSearchType() {
    return searchType;
  }

  public void setSearchType(SearchTypeEnum searchType) {
    this.searchType = searchType;
  }

  public SwapAcrossAssetsSearchV1 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;
    }
    SwapAcrossAssetsSearchV1 swapAcrossAssetsSearchV1 = (SwapAcrossAssetsSearchV1) o;
    return Objects.equals(this.isInclude, swapAcrossAssetsSearchV1.isInclude) &&
        Objects.equals(this.rootAssetId, swapAcrossAssetsSearchV1.rootAssetId) &&
        Objects.equals(this.searchType, swapAcrossAssetsSearchV1.searchType) &&
        Objects.equals(this.swapItemId, swapAcrossAssetsSearchV1.swapItemId);
  }

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


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