Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance. Project price only 1 $
You can buy this project and download/modify it how often you want.
/*
* Universal Screening API
* Through the Universal Screening API, you can access the power of FactSet's Universal Screening Application. Calculate and return the results of your saved Universal Screens.
*
* The version of the OpenAPI document: 2.0.2
* 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.UniversalScreening.models;
import java.util.Objects;
import java.util.Arrays;
import java.util.Map;
import java.util.HashMap;
import com.factset.sdk.UniversalScreening.models.ScreenArchiveOFDBParametersDataArchiveOptions;
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 org.openapitools.jackson.nullable.JsonNullable;
import com.fasterxml.jackson.annotation.JsonIgnore;
import org.openapitools.jackson.nullable.JsonNullable;
import java.util.NoSuchElementException;
import java.io.Serializable;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
import com.factset.sdk.UniversalScreening.JSON;
/**
* Object containing archive request payload
*/
@ApiModel(description = "Object containing archive request payload")
@JsonPropertyOrder({
ScreenArchiveOFDBParametersData.JSON_PROPERTY_ARCHIVE_OPTIONS,
ScreenArchiveOFDBParametersData.JSON_PROPERTY_BACKTEST_DATE,
ScreenArchiveOFDBParametersData.JSON_PROPERTY_GLOBAL_VARIABLES_MAP,
ScreenArchiveOFDBParametersData.JSON_PROPERTY_LEGACY_UNIVERSE_TYPE,
ScreenArchiveOFDBParametersData.JSON_PROPERTY_SCREEN_NAME
})
@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
public class ScreenArchiveOFDBParametersData implements Serializable {
private static final long serialVersionUID = 1L;
public static final String JSON_PROPERTY_ARCHIVE_OPTIONS = "archiveOptions";
private ScreenArchiveOFDBParametersDataArchiveOptions archiveOptions;
public static final String JSON_PROPERTY_BACKTEST_DATE = "backtestDate";
private JsonNullable backtestDate = JsonNullable.undefined();
public static final String JSON_PROPERTY_GLOBAL_VARIABLES_MAP = "globalVariablesMap";
private java.util.Map globalVariablesMap = null;
/**
* Universe type to open a Screen 1.0 document with\\ `equity`: Uses the equity universe from the Screen 1.0 document.\\ `debt`: Uses the debt universe from the Screen 1.0 document.\\ `fund`: Uses the fund universe from the Screen 1.0 document.
*/
public enum LegacyUniverseTypeEnum {
EQUITY("equity"),
DEBT("debt"),
FUND("fund");
private String value;
LegacyUniverseTypeEnum(String value) {
this.value = value;
}
@JsonValue
public String getValue() {
return value;
}
@Override
public String toString() {
return String.valueOf(value);
}
@JsonCreator
public static LegacyUniverseTypeEnum fromValue(String value) {
for (LegacyUniverseTypeEnum b : LegacyUniverseTypeEnum.values()) {
if (b.value.equals(value)) {
return b;
}
}
return null;
}
}
public static final String JSON_PROPERTY_LEGACY_UNIVERSE_TYPE = "legacyUniverseType";
private JsonNullable legacyUniverseType = JsonNullable.of(LegacyUniverseTypeEnum.EQUITY);
public static final String JSON_PROPERTY_SCREEN_NAME = "screenName";
private String screenName;
public ScreenArchiveOFDBParametersData() {
}
@JsonCreator
public ScreenArchiveOFDBParametersData(
@JsonProperty(value=JSON_PROPERTY_SCREEN_NAME, required=true) String screenName
) {
this();
this.screenName = screenName;
}
public ScreenArchiveOFDBParametersData archiveOptions(ScreenArchiveOFDBParametersDataArchiveOptions archiveOptions) {
this.archiveOptions = archiveOptions;
return this;
}
/**
* Get archiveOptions
* @return archiveOptions
**/
@jakarta.annotation.Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_ARCHIVE_OPTIONS)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public ScreenArchiveOFDBParametersDataArchiveOptions getArchiveOptions() {
return archiveOptions;
}
@JsonProperty(JSON_PROPERTY_ARCHIVE_OPTIONS)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setArchiveOptions(ScreenArchiveOFDBParametersDataArchiveOptions archiveOptions) {
this.archiveOptions = archiveOptions;
}
public ScreenArchiveOFDBParametersData backtestDate(String backtestDate) {
this.backtestDate = JsonNullable.of(backtestDate);
return this;
}
/**
* Specifies the backtest date used when running the screen, replacing the backtest date saved in the screen, can be written in YYYYMMDD, MM/DD/YYYY or relative (0, -1, 0/-1/0) format. Requires addtional access to use.
* @return backtestDate
**/
@jakarta.annotation.Nullable
@ApiModelProperty(example = "19951203", value = "Specifies the backtest date used when running the screen, replacing the backtest date saved in the screen, can be written in YYYYMMDD, MM/DD/YYYY or relative (0, -1, 0/-1/0) format. Requires addtional access to use.")
@JsonIgnore
public String getBacktestDate() {
return backtestDate.orElse(null);
}
@JsonProperty(JSON_PROPERTY_BACKTEST_DATE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public JsonNullable getBacktestDate_JsonNullable() {
return backtestDate;
}
@JsonProperty(JSON_PROPERTY_BACKTEST_DATE)
public void setBacktestDate_JsonNullable(JsonNullable backtestDate) {
this.backtestDate = backtestDate;
}
public void setBacktestDate(String backtestDate) {
this.backtestDate = JsonNullable.of(backtestDate);
}
public ScreenArchiveOFDBParametersData globalVariablesMap(java.util.Map globalVariablesMap) {
this.globalVariablesMap = globalVariablesMap;
return this;
}
public ScreenArchiveOFDBParametersData putGlobalVariablesMapItem(String key, String globalVariablesMapItem) {
if (this.globalVariablesMap == null) {
this.globalVariablesMap = new java.util.HashMap<>();
}
this.globalVariablesMap.put(key, globalVariablesMapItem);
return this;
}
/**
* Modifies existing global variables for this calculation request, temporarily adds them if they do not already exist Variable names can only contain the characters A-Z (case insensitive). Variable values must be non-empty.
* @return globalVariablesMap
**/
@jakarta.annotation.Nullable
@ApiModelProperty(value = "Modifies existing global variables for this calculation request, temporarily adds them if they do not already exist Variable names can only contain the characters A-Z (case insensitive). Variable values must be non-empty.")
@JsonProperty(JSON_PROPERTY_GLOBAL_VARIABLES_MAP)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public java.util.Map getGlobalVariablesMap() {
return globalVariablesMap;
}
@JsonProperty(JSON_PROPERTY_GLOBAL_VARIABLES_MAP)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setGlobalVariablesMap(java.util.Map globalVariablesMap) {
this.globalVariablesMap = globalVariablesMap;
}
public ScreenArchiveOFDBParametersData legacyUniverseType(LegacyUniverseTypeEnum legacyUniverseType) {
this.legacyUniverseType = JsonNullable.of(legacyUniverseType);
return this;
}
/**
* Universe type to open a Screen 1.0 document with\\ `equity`: Uses the equity universe from the Screen 1.0 document.\\ `debt`: Uses the debt universe from the Screen 1.0 document.\\ `fund`: Uses the fund universe from the Screen 1.0 document.
* @return legacyUniverseType
**/
@jakarta.annotation.Nullable
@ApiModelProperty(example = "equity", value = "Universe type to open a Screen 1.0 document with\\ `equity`: Uses the equity universe from the Screen 1.0 document.\\ `debt`: Uses the debt universe from the Screen 1.0 document.\\ `fund`: Uses the fund universe from the Screen 1.0 document.")
@JsonIgnore
public LegacyUniverseTypeEnum getLegacyUniverseType() {
return legacyUniverseType.orElse(null);
}
@JsonProperty(JSON_PROPERTY_LEGACY_UNIVERSE_TYPE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public JsonNullable getLegacyUniverseType_JsonNullable() {
return legacyUniverseType;
}
@JsonProperty(JSON_PROPERTY_LEGACY_UNIVERSE_TYPE)
public void setLegacyUniverseType_JsonNullable(JsonNullable legacyUniverseType) {
this.legacyUniverseType = legacyUniverseType;
}
public void setLegacyUniverseType(LegacyUniverseTypeEnum legacyUniverseType) {
this.legacyUniverseType = JsonNullable.of(legacyUniverseType);
}
public ScreenArchiveOFDBParametersData screenName(String screenName) {
this.screenName = screenName;
return this;
}
/**
* Full file path to a valid screen
* @return screenName
**/
@jakarta.annotation.Nonnull
@ApiModelProperty(example = "SAMPLE_SCREENS:KPI_AIR.USWEB", required = true, value = "Full file path to a valid screen")
@JsonProperty(JSON_PROPERTY_SCREEN_NAME)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public String getScreenName() {
return screenName;
}
@JsonProperty(JSON_PROPERTY_SCREEN_NAME)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public void setScreenName(String screenName) {
this.screenName = screenName;
}
/**
* Return true if this ScreenArchiveOFDBParameters_data object is equal to o.
*/
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
ScreenArchiveOFDBParametersData screenArchiveOFDBParametersData = (ScreenArchiveOFDBParametersData) o;
return Objects.equals(this.archiveOptions, screenArchiveOFDBParametersData.archiveOptions) &&
equalsNullable(this.backtestDate, screenArchiveOFDBParametersData.backtestDate) &&
Objects.equals(this.globalVariablesMap, screenArchiveOFDBParametersData.globalVariablesMap) &&
equalsNullable(this.legacyUniverseType, screenArchiveOFDBParametersData.legacyUniverseType) &&
Objects.equals(this.screenName, screenArchiveOFDBParametersData.screenName);
}
private static boolean equalsNullable(JsonNullable a, JsonNullable b) {
return a == b || (a != null && b != null && a.isPresent() && b.isPresent() && Objects.deepEquals(a.get(), b.get()));
}
@Override
public int hashCode() {
return Objects.hash(archiveOptions, hashCodeNullable(backtestDate), globalVariablesMap, hashCodeNullable(legacyUniverseType), screenName);
}
private static int hashCodeNullable(JsonNullable a) {
if (a == null) {
return 1;
}
return a.isPresent() ? Arrays.deepHashCode(new Object[]{a.get()}) : 31;
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class ScreenArchiveOFDBParametersData {\n");
sb.append(" archiveOptions: ").append(toIndentedString(archiveOptions)).append("\n");
sb.append(" backtestDate: ").append(toIndentedString(backtestDate)).append("\n");
sb.append(" globalVariablesMap: ").append(toIndentedString(globalVariablesMap)).append("\n");
sb.append(" legacyUniverseType: ").append(toIndentedString(legacyUniverseType)).append("\n");
sb.append(" screenName: ").append(toIndentedString(screenName)).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 ");
}
}