com.seeq.model.FixedListSearchV1 Maven / Gradle / Ivy
/*
* 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;
import java.util.ArrayList;
import java.util.List;
import java.util.UUID;
/**
* The list of searches containing a list of item IDs to always include or exclude in the output
*/
@Schema(description = "The list of searches containing a list of item IDs to always include or exclude in the output")
public class FixedListSearchV1 {
@JsonProperty("isInclude")
private Boolean isInclude = null;
@JsonProperty("itemIds")
private List itemIds = new ArrayList();
/**
* 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;
public FixedListSearchV1 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 FixedListSearchV1 itemIds(List itemIds) {
this.itemIds = itemIds;
return this;
}
public FixedListSearchV1 addItemIdsItem(UUID itemIdsItem) {
this.itemIds.add(itemIdsItem);
return this;
}
/**
* A list of item IDs to always include or exclude in the output. Useful for including or excluding outliers that are not easily found via one of the other finder configurations
* @return itemIds
**/
@Schema(required = true, description = "A list of item IDs to always include or exclude in the output. Useful for including or excluding outliers that are not easily found via one of the other finder configurations")
public List getItemIds() {
return itemIds;
}
public void setItemIds(List itemIds) {
this.itemIds = itemIds;
}
/**
* The type of finder
* @return searchType
**/
@Schema(required = true, description = "The type of finder")
public SearchTypeEnum getSearchType() {
return searchType;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
FixedListSearchV1 fixedListSearchV1 = (FixedListSearchV1) o;
return Objects.equals(this.isInclude, fixedListSearchV1.isInclude) &&
Objects.equals(this.itemIds, fixedListSearchV1.itemIds) &&
Objects.equals(this.searchType, fixedListSearchV1.searchType);
}
@Override
public int hashCode() {
return Objects.hash(isInclude, itemIds, searchType);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class FixedListSearchV1 {\n");
sb.append(" isInclude: ").append(toIndentedString(isInclude)).append("\n");
sb.append(" itemIds: ").append(toIndentedString(itemIds)).append("\n");
sb.append(" searchType: ").append(toIndentedString(searchType)).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 ");
}
}