com.seeq.model.ItemWithSwapPairsV1 Maven / Gradle / Ivy
/*
* Seeq REST API
* No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
*
* OpenAPI spec version: 60.1.3-v202304250417
*
*
* 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.ItemPreviewWithAssetsV1;
import com.seeq.model.SwapInputV1;
import io.swagger.v3.oas.annotations.media.Schema;
import java.util.ArrayList;
import java.util.List;
/**
* The list of items from the query parameters that can be swapped, augmented with the swap pairs needed to perform the swap
*/
@Schema(description = "The list of items from the query parameters that can be swapped, augmented with the swap pairs needed to perform the swap")
public class ItemWithSwapPairsV1 {
@JsonProperty("item")
private ItemPreviewWithAssetsV1 item = null;
@JsonProperty("parameterMatch")
private Double parameterMatch = null;
@JsonProperty("swapPairs")
private List swapPairs = new ArrayList();
public ItemWithSwapPairsV1 item(ItemPreviewWithAssetsV1 item) {
this.item = item;
return this;
}
/**
* Get item
* @return item
**/
@Schema(required = true, description = "")
public ItemPreviewWithAssetsV1 getItem() {
return item;
}
public void setItem(ItemPreviewWithAssetsV1 item) {
this.item = item;
}
public ItemWithSwapPairsV1 parameterMatch(Double parameterMatch) {
this.parameterMatch = parameterMatch;
return this;
}
/**
* The ratio of matched to total parameters
* @return parameterMatch
**/
@Schema(required = true, description = "The ratio of matched to total parameters")
public Double getParameterMatch() {
return parameterMatch;
}
public void setParameterMatch(Double parameterMatch) {
this.parameterMatch = parameterMatch;
}
public ItemWithSwapPairsV1 swapPairs(List swapPairs) {
this.swapPairs = swapPairs;
return this;
}
public ItemWithSwapPairsV1 addSwapPairsItem(SwapInputV1 swapPairsItem) {
this.swapPairs.add(swapPairsItem);
return this;
}
/**
* The list of swap pairs needed to perform the swap.
* @return swapPairs
**/
@Schema(required = true, description = "The list of swap pairs needed to perform the swap.")
public List getSwapPairs() {
return swapPairs;
}
public void setSwapPairs(List swapPairs) {
this.swapPairs = swapPairs;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
ItemWithSwapPairsV1 itemWithSwapPairsV1 = (ItemWithSwapPairsV1) o;
return Objects.equals(this.item, itemWithSwapPairsV1.item) &&
Objects.equals(this.parameterMatch, itemWithSwapPairsV1.parameterMatch) &&
Objects.equals(this.swapPairs, itemWithSwapPairsV1.swapPairs);
}
@Override
public int hashCode() {
return Objects.hash(item, parameterMatch, swapPairs);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class ItemWithSwapPairsV1 {\n");
sb.append(" item: ").append(toIndentedString(item)).append("\n");
sb.append(" parameterMatch: ").append(toIndentedString(parameterMatch)).append("\n");
sb.append(" swapPairs: ").append(toIndentedString(swapPairs)).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 ");
}
}