com.factset.sdk.OpenRisk.models.InputToResultSecurityIndexMapping Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of openrisk Show documentation
Show all versions of openrisk Show documentation
FactSet SDK for Java - openrisk
/*
* Open:Risk API
* Service to calculate parametric linear risk statistics and generate risk model asset identifier mappings.
*
* The version of the OpenAPI document: 1.24.0
* Contact: [email protected]
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
package com.factset.sdk.OpenRisk.models;
import java.util.Objects;
import java.util.Arrays;
import java.util.Map;
import java.util.HashMap;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonTypeName;
import com.fasterxml.jackson.annotation.JsonValue;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.Serializable;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
import com.factset.sdk.OpenRisk.JSON;
/**
* For each input holding from the request, a list of indices aligned to the input holding's IDs. These 0-based index values key into the security dimension of the results arrays and the `labels.security.ids` array.
*/
@ApiModel(description = "For each input holding from the request, a list of indices aligned to the input holding's IDs. These 0-based index values key into the security dimension of the results arrays and the `labels.security.ids` array.")
@JsonPropertyOrder({
InputToResultSecurityIndexMapping.JSON_PROPERTY_PORTFOLIO,
InputToResultSecurityIndexMapping.JSON_PROPERTY_BENCHMARK,
InputToResultSecurityIndexMapping.JSON_PROPERTY_MARKET
})
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
public class InputToResultSecurityIndexMapping implements Serializable {
private static final long serialVersionUID = 1L;
public static final String JSON_PROPERTY_PORTFOLIO = "portfolio";
private java.util.List portfolio = new java.util.ArrayList<>();
public static final String JSON_PROPERTY_BENCHMARK = "benchmark";
private java.util.List benchmark = null;
public static final String JSON_PROPERTY_MARKET = "market";
private java.util.List market = null;
public InputToResultSecurityIndexMapping() {
}
@JsonCreator
public InputToResultSecurityIndexMapping(
@JsonProperty(value=JSON_PROPERTY_PORTFOLIO, required=true) java.util.List portfolio
) {
this();
this.portfolio = portfolio;
}
public InputToResultSecurityIndexMapping portfolio(java.util.List portfolio) {
this.portfolio = portfolio;
return this;
}
public InputToResultSecurityIndexMapping addPortfolioItem(Integer portfolioItem) {
this.portfolio.add(portfolioItem);
return this;
}
/**
* Get portfolio
* @return portfolio
**/
@javax.annotation.Nonnull
@ApiModelProperty(required = true, value = "")
@JsonProperty(JSON_PROPERTY_PORTFOLIO)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public java.util.List getPortfolio() {
return portfolio;
}
@JsonProperty(JSON_PROPERTY_PORTFOLIO)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public void setPortfolio(java.util.List portfolio) {
this.portfolio = portfolio;
}
public InputToResultSecurityIndexMapping benchmark(java.util.List benchmark) {
this.benchmark = benchmark;
return this;
}
public InputToResultSecurityIndexMapping addBenchmarkItem(Integer benchmarkItem) {
if (this.benchmark == null) {
this.benchmark = new java.util.ArrayList<>();
}
this.benchmark.add(benchmarkItem);
return this;
}
/**
* Get benchmark
* @return benchmark
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_BENCHMARK)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public java.util.List getBenchmark() {
return benchmark;
}
@JsonProperty(JSON_PROPERTY_BENCHMARK)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setBenchmark(java.util.List benchmark) {
this.benchmark = benchmark;
}
public InputToResultSecurityIndexMapping market(java.util.List market) {
this.market = market;
return this;
}
public InputToResultSecurityIndexMapping addMarketItem(Integer marketItem) {
if (this.market == null) {
this.market = new java.util.ArrayList<>();
}
this.market.add(marketItem);
return this;
}
/**
* Get market
* @return market
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_MARKET)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public java.util.List getMarket() {
return market;
}
@JsonProperty(JSON_PROPERTY_MARKET)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setMarket(java.util.List market) {
this.market = market;
}
/**
* Return true if this InputToResultSecurityIndexMapping object is equal to o.
*/
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
InputToResultSecurityIndexMapping inputToResultSecurityIndexMapping = (InputToResultSecurityIndexMapping) o;
return Objects.equals(this.portfolio, inputToResultSecurityIndexMapping.portfolio) &&
Objects.equals(this.benchmark, inputToResultSecurityIndexMapping.benchmark) &&
Objects.equals(this.market, inputToResultSecurityIndexMapping.market);
}
@Override
public int hashCode() {
return Objects.hash(portfolio, benchmark, market);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class InputToResultSecurityIndexMapping {\n");
sb.append(" portfolio: ").append(toIndentedString(portfolio)).append("\n");
sb.append(" benchmark: ").append(toIndentedString(benchmark)).append("\n");
sb.append(" market: ").append(toIndentedString(market)).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(Object o) {
if (o == null) {
return "null";
}
return o.toString().replace("\n", "\n ");
}
}