com.factset.sdk.OpenRisk.models.SupportedStatsLevels 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;
/**
* Indicates whether each level is supported by the base stat and all derived stats
*/
@ApiModel(description = "Indicates whether each level is supported by the base stat and all derived stats")
@JsonPropertyOrder({
SupportedStatsLevels.JSON_PROPERTY_PORTFOLIO,
SupportedStatsLevels.JSON_PROPERTY_SECURITY,
SupportedStatsLevels.JSON_PROPERTY_SECURITY_GROUP,
SupportedStatsLevels.JSON_PROPERTY_SECURITY_SECURITY,
SupportedStatsLevels.JSON_PROPERTY_FACTOR,
SupportedStatsLevels.JSON_PROPERTY_FACTOR_GROUP,
SupportedStatsLevels.JSON_PROPERTY_FACTOR_FACTOR,
SupportedStatsLevels.JSON_PROPERTY_FACTOR_SECURITY,
SupportedStatsLevels.JSON_PROPERTY_FACTOR_GROUP_SECURITY,
SupportedStatsLevels.JSON_PROPERTY_FACTOR_SECURITY_GROUP,
SupportedStatsLevels.JSON_PROPERTY_FACTOR_GROUP_SECURITY_GROUP
})
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
public class SupportedStatsLevels implements Serializable {
private static final long serialVersionUID = 1L;
public static final String JSON_PROPERTY_PORTFOLIO = "Portfolio";
private Boolean portfolio;
public static final String JSON_PROPERTY_SECURITY = "Security";
private Boolean security;
public static final String JSON_PROPERTY_SECURITY_GROUP = "SecurityGroup";
private Boolean securityGroup;
public static final String JSON_PROPERTY_SECURITY_SECURITY = "SecuritySecurity";
private Boolean securitySecurity;
public static final String JSON_PROPERTY_FACTOR = "Factor";
private Boolean factor;
public static final String JSON_PROPERTY_FACTOR_GROUP = "FactorGroup";
private Boolean factorGroup;
public static final String JSON_PROPERTY_FACTOR_FACTOR = "FactorFactor";
private Boolean factorFactor;
public static final String JSON_PROPERTY_FACTOR_SECURITY = "FactorSecurity";
private Boolean factorSecurity;
public static final String JSON_PROPERTY_FACTOR_GROUP_SECURITY = "FactorGroupSecurity";
private Boolean factorGroupSecurity;
public static final String JSON_PROPERTY_FACTOR_SECURITY_GROUP = "FactorSecurityGroup";
private Boolean factorSecurityGroup;
public static final String JSON_PROPERTY_FACTOR_GROUP_SECURITY_GROUP = "FactorGroupSecurityGroup";
private Boolean factorGroupSecurityGroup;
public SupportedStatsLevels() {
}
@JsonCreator
public SupportedStatsLevels(
@JsonProperty(value=JSON_PROPERTY_PORTFOLIO, required=true) Boolean portfolio,
@JsonProperty(value=JSON_PROPERTY_SECURITY, required=true) Boolean security,
@JsonProperty(value=JSON_PROPERTY_SECURITY_GROUP, required=true) Boolean securityGroup,
@JsonProperty(value=JSON_PROPERTY_SECURITY_SECURITY, required=true) Boolean securitySecurity,
@JsonProperty(value=JSON_PROPERTY_FACTOR, required=true) Boolean factor,
@JsonProperty(value=JSON_PROPERTY_FACTOR_GROUP, required=true) Boolean factorGroup,
@JsonProperty(value=JSON_PROPERTY_FACTOR_FACTOR, required=true) Boolean factorFactor,
@JsonProperty(value=JSON_PROPERTY_FACTOR_SECURITY, required=true) Boolean factorSecurity,
@JsonProperty(value=JSON_PROPERTY_FACTOR_GROUP_SECURITY, required=true) Boolean factorGroupSecurity,
@JsonProperty(value=JSON_PROPERTY_FACTOR_SECURITY_GROUP, required=true) Boolean factorSecurityGroup,
@JsonProperty(value=JSON_PROPERTY_FACTOR_GROUP_SECURITY_GROUP, required=true) Boolean factorGroupSecurityGroup
) {
this();
this.portfolio = portfolio;
this.security = security;
this.securityGroup = securityGroup;
this.securitySecurity = securitySecurity;
this.factor = factor;
this.factorGroup = factorGroup;
this.factorFactor = factorFactor;
this.factorSecurity = factorSecurity;
this.factorGroupSecurity = factorGroupSecurity;
this.factorSecurityGroup = factorSecurityGroup;
this.factorGroupSecurityGroup = factorGroupSecurityGroup;
}
public SupportedStatsLevels portfolio(Boolean portfolio) {
this.portfolio = portfolio;
return this;
}
/**
* Get portfolio
* @return portfolio
**/
@javax.annotation.Nonnull
@ApiModelProperty(required = true, value = "")
@JsonProperty(JSON_PROPERTY_PORTFOLIO)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public Boolean getPortfolio() {
return portfolio;
}
@JsonProperty(JSON_PROPERTY_PORTFOLIO)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public void setPortfolio(Boolean portfolio) {
this.portfolio = portfolio;
}
public SupportedStatsLevels security(Boolean security) {
this.security = security;
return this;
}
/**
* Get security
* @return security
**/
@javax.annotation.Nonnull
@ApiModelProperty(required = true, value = "")
@JsonProperty(JSON_PROPERTY_SECURITY)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public Boolean getSecurity() {
return security;
}
@JsonProperty(JSON_PROPERTY_SECURITY)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public void setSecurity(Boolean security) {
this.security = security;
}
public SupportedStatsLevels securityGroup(Boolean securityGroup) {
this.securityGroup = securityGroup;
return this;
}
/**
* Get securityGroup
* @return securityGroup
**/
@javax.annotation.Nonnull
@ApiModelProperty(required = true, value = "")
@JsonProperty(JSON_PROPERTY_SECURITY_GROUP)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public Boolean getSecurityGroup() {
return securityGroup;
}
@JsonProperty(JSON_PROPERTY_SECURITY_GROUP)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public void setSecurityGroup(Boolean securityGroup) {
this.securityGroup = securityGroup;
}
public SupportedStatsLevels securitySecurity(Boolean securitySecurity) {
this.securitySecurity = securitySecurity;
return this;
}
/**
* Get securitySecurity
* @return securitySecurity
**/
@javax.annotation.Nonnull
@ApiModelProperty(required = true, value = "")
@JsonProperty(JSON_PROPERTY_SECURITY_SECURITY)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public Boolean getSecuritySecurity() {
return securitySecurity;
}
@JsonProperty(JSON_PROPERTY_SECURITY_SECURITY)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public void setSecuritySecurity(Boolean securitySecurity) {
this.securitySecurity = securitySecurity;
}
public SupportedStatsLevels factor(Boolean factor) {
this.factor = factor;
return this;
}
/**
* Get factor
* @return factor
**/
@javax.annotation.Nonnull
@ApiModelProperty(required = true, value = "")
@JsonProperty(JSON_PROPERTY_FACTOR)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public Boolean getFactor() {
return factor;
}
@JsonProperty(JSON_PROPERTY_FACTOR)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public void setFactor(Boolean factor) {
this.factor = factor;
}
public SupportedStatsLevels factorGroup(Boolean factorGroup) {
this.factorGroup = factorGroup;
return this;
}
/**
* Get factorGroup
* @return factorGroup
**/
@javax.annotation.Nonnull
@ApiModelProperty(required = true, value = "")
@JsonProperty(JSON_PROPERTY_FACTOR_GROUP)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public Boolean getFactorGroup() {
return factorGroup;
}
@JsonProperty(JSON_PROPERTY_FACTOR_GROUP)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public void setFactorGroup(Boolean factorGroup) {
this.factorGroup = factorGroup;
}
public SupportedStatsLevels factorFactor(Boolean factorFactor) {
this.factorFactor = factorFactor;
return this;
}
/**
* Get factorFactor
* @return factorFactor
**/
@javax.annotation.Nonnull
@ApiModelProperty(required = true, value = "")
@JsonProperty(JSON_PROPERTY_FACTOR_FACTOR)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public Boolean getFactorFactor() {
return factorFactor;
}
@JsonProperty(JSON_PROPERTY_FACTOR_FACTOR)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public void setFactorFactor(Boolean factorFactor) {
this.factorFactor = factorFactor;
}
public SupportedStatsLevels factorSecurity(Boolean factorSecurity) {
this.factorSecurity = factorSecurity;
return this;
}
/**
* Get factorSecurity
* @return factorSecurity
**/
@javax.annotation.Nonnull
@ApiModelProperty(required = true, value = "")
@JsonProperty(JSON_PROPERTY_FACTOR_SECURITY)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public Boolean getFactorSecurity() {
return factorSecurity;
}
@JsonProperty(JSON_PROPERTY_FACTOR_SECURITY)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public void setFactorSecurity(Boolean factorSecurity) {
this.factorSecurity = factorSecurity;
}
public SupportedStatsLevels factorGroupSecurity(Boolean factorGroupSecurity) {
this.factorGroupSecurity = factorGroupSecurity;
return this;
}
/**
* Get factorGroupSecurity
* @return factorGroupSecurity
**/
@javax.annotation.Nonnull
@ApiModelProperty(required = true, value = "")
@JsonProperty(JSON_PROPERTY_FACTOR_GROUP_SECURITY)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public Boolean getFactorGroupSecurity() {
return factorGroupSecurity;
}
@JsonProperty(JSON_PROPERTY_FACTOR_GROUP_SECURITY)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public void setFactorGroupSecurity(Boolean factorGroupSecurity) {
this.factorGroupSecurity = factorGroupSecurity;
}
public SupportedStatsLevels factorSecurityGroup(Boolean factorSecurityGroup) {
this.factorSecurityGroup = factorSecurityGroup;
return this;
}
/**
* Get factorSecurityGroup
* @return factorSecurityGroup
**/
@javax.annotation.Nonnull
@ApiModelProperty(required = true, value = "")
@JsonProperty(JSON_PROPERTY_FACTOR_SECURITY_GROUP)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public Boolean getFactorSecurityGroup() {
return factorSecurityGroup;
}
@JsonProperty(JSON_PROPERTY_FACTOR_SECURITY_GROUP)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public void setFactorSecurityGroup(Boolean factorSecurityGroup) {
this.factorSecurityGroup = factorSecurityGroup;
}
public SupportedStatsLevels factorGroupSecurityGroup(Boolean factorGroupSecurityGroup) {
this.factorGroupSecurityGroup = factorGroupSecurityGroup;
return this;
}
/**
* Get factorGroupSecurityGroup
* @return factorGroupSecurityGroup
**/
@javax.annotation.Nonnull
@ApiModelProperty(required = true, value = "")
@JsonProperty(JSON_PROPERTY_FACTOR_GROUP_SECURITY_GROUP)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public Boolean getFactorGroupSecurityGroup() {
return factorGroupSecurityGroup;
}
@JsonProperty(JSON_PROPERTY_FACTOR_GROUP_SECURITY_GROUP)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public void setFactorGroupSecurityGroup(Boolean factorGroupSecurityGroup) {
this.factorGroupSecurityGroup = factorGroupSecurityGroup;
}
/**
* Return true if this SupportedStats_levels object is equal to o.
*/
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
SupportedStatsLevels supportedStatsLevels = (SupportedStatsLevels) o;
return Objects.equals(this.portfolio, supportedStatsLevels.portfolio) &&
Objects.equals(this.security, supportedStatsLevels.security) &&
Objects.equals(this.securityGroup, supportedStatsLevels.securityGroup) &&
Objects.equals(this.securitySecurity, supportedStatsLevels.securitySecurity) &&
Objects.equals(this.factor, supportedStatsLevels.factor) &&
Objects.equals(this.factorGroup, supportedStatsLevels.factorGroup) &&
Objects.equals(this.factorFactor, supportedStatsLevels.factorFactor) &&
Objects.equals(this.factorSecurity, supportedStatsLevels.factorSecurity) &&
Objects.equals(this.factorGroupSecurity, supportedStatsLevels.factorGroupSecurity) &&
Objects.equals(this.factorSecurityGroup, supportedStatsLevels.factorSecurityGroup) &&
Objects.equals(this.factorGroupSecurityGroup, supportedStatsLevels.factorGroupSecurityGroup);
}
@Override
public int hashCode() {
return Objects.hash(portfolio, security, securityGroup, securitySecurity, factor, factorGroup, factorFactor, factorSecurity, factorGroupSecurity, factorSecurityGroup, factorGroupSecurityGroup);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class SupportedStatsLevels {\n");
sb.append(" portfolio: ").append(toIndentedString(portfolio)).append("\n");
sb.append(" security: ").append(toIndentedString(security)).append("\n");
sb.append(" securityGroup: ").append(toIndentedString(securityGroup)).append("\n");
sb.append(" securitySecurity: ").append(toIndentedString(securitySecurity)).append("\n");
sb.append(" factor: ").append(toIndentedString(factor)).append("\n");
sb.append(" factorGroup: ").append(toIndentedString(factorGroup)).append("\n");
sb.append(" factorFactor: ").append(toIndentedString(factorFactor)).append("\n");
sb.append(" factorSecurity: ").append(toIndentedString(factorSecurity)).append("\n");
sb.append(" factorGroupSecurity: ").append(toIndentedString(factorGroupSecurity)).append("\n");
sb.append(" factorSecurityGroup: ").append(toIndentedString(factorSecurityGroup)).append("\n");
sb.append(" factorGroupSecurityGroup: ").append(toIndentedString(factorGroupSecurityGroup)).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 ");
}
}