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.
/*
* FactSet Estimates
* Gain access to 20+ years of comprehensive estimates and statistics of over 250+ estimated metrics, including financial statement items, product segments, geosegments, and industry metrics. FactSet's consensus estimates are aggregated from a wide base of over 800+ contributors and cover over 19,000 active companies across 90+ countries. Data returned can be accessed on the data frequencies based on quarterly, fiscal years, and calendar years. FactSet Estimates updates on a real time basis intraday (every 5 minutes). Updating times vary based on earning season vs. non-earning season but the goal is to have the data available to the client within a few hours that FactSet receives updated information. Often times updates times can be much faster as FactSet has always been known as one of the fastest estimate providers in the market.
*
* The version of the OpenAPI document: 2.5.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.FactSetEstimates.models;
import java.util.Objects;
import java.util.Arrays;
import java.util.Map;
import java.util.HashMap;
import com.factset.sdk.FactSetEstimates.models.Frequency;
import com.factset.sdk.FactSetEstimates.models.PeriodicityDetail;
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.FactSetEstimates.JSON;
/**
* Request object for requesting rolling detail estimates.
*/
@ApiModel(description = "Request object for requesting rolling detail estimates.")
@JsonPropertyOrder({
RollingDetailRequest.JSON_PROPERTY_IDS,
RollingDetailRequest.JSON_PROPERTY_START_DATE,
RollingDetailRequest.JSON_PROPERTY_END_DATE,
RollingDetailRequest.JSON_PROPERTY_FREQUENCY,
RollingDetailRequest.JSON_PROPERTY_INCLUDE_ALL,
RollingDetailRequest.JSON_PROPERTY_RELATIVE_FISCAL_START,
RollingDetailRequest.JSON_PROPERTY_RELATIVE_FISCAL_END,
RollingDetailRequest.JSON_PROPERTY_PERIODICITY,
RollingDetailRequest.JSON_PROPERTY_METRICS,
RollingDetailRequest.JSON_PROPERTY_CURRENCY
})
@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
public class RollingDetailRequest implements Serializable {
private static final long serialVersionUID = 1L;
public static final String JSON_PROPERTY_IDS = "ids";
private java.util.List ids = new java.util.ArrayList<>();
public static final String JSON_PROPERTY_START_DATE = "startDate";
private String startDate;
public static final String JSON_PROPERTY_END_DATE = "endDate";
private String endDate;
public static final String JSON_PROPERTY_FREQUENCY = "frequency";
private Frequency frequency = Frequency.D;
public static final String JSON_PROPERTY_INCLUDE_ALL = "includeAll";
private Boolean includeAll = false;
public static final String JSON_PROPERTY_RELATIVE_FISCAL_START = "relativeFiscalStart";
private Integer relativeFiscalStart;
public static final String JSON_PROPERTY_RELATIVE_FISCAL_END = "relativeFiscalEnd";
private Integer relativeFiscalEnd;
public static final String JSON_PROPERTY_PERIODICITY = "periodicity";
private PeriodicityDetail periodicity = PeriodicityDetail.ANN;
public static final String JSON_PROPERTY_METRICS = "metrics";
private java.util.List metrics = new java.util.ArrayList<>();
public static final String JSON_PROPERTY_CURRENCY = "currency";
private String currency;
public RollingDetailRequest() {
}
@JsonCreator
public RollingDetailRequest(
@JsonProperty(value=JSON_PROPERTY_IDS, required=true) java.util.List ids,
@JsonProperty(value=JSON_PROPERTY_METRICS, required=true) java.util.List metrics
) {
this();
this.ids = ids;
this.metrics = metrics;
}
public RollingDetailRequest ids(java.util.List ids) {
this.ids = ids;
return this;
}
public RollingDetailRequest addIdsItem(String idsItem) {
this.ids.add(idsItem);
return this;
}
/**
* The requested list of security identifiers. Accepted ID types include Market Tickers, SEDOL, ISINs, CUSIPs, or FactSet Permanent Ids. * Make Note - id limit of 3000 for defaults, otherwise the service is limited to a 30 second duration. This can be reached when increasing total number of metrics requested and depth of history. *
* @return ids
**/
@jakarta.annotation.Nonnull
@ApiModelProperty(example = "[\"FDS-US\"]", required = true, value = "The requested list of security identifiers. Accepted ID types include Market Tickers, SEDOL, ISINs, CUSIPs, or FactSet Permanent Ids. * Make Note - id limit of 3000 for defaults, otherwise the service is limited to a 30 second duration. This can be reached when increasing total number of metrics requested and depth of history. * ")
@JsonProperty(JSON_PROPERTY_IDS)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public java.util.List getIds() {
return ids;
}
@JsonProperty(JSON_PROPERTY_IDS)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public void setIds(java.util.List ids) {
this.ids = ids;
}
public RollingDetailRequest startDate(String startDate) {
this.startDate = startDate;
return this;
}
/**
* The start date requested for a given date range in **YYYY-MM-DD** format. If left blank, the API will default to previous close. Future dates (T+1) are not accepted in this #endpoint.
* @return startDate
**/
@jakarta.annotation.Nullable
@ApiModelProperty(example = "2019-01-01", value = "The start date requested for a given date range in **YYYY-MM-DD** format. If left blank, the API will default to previous close. Future dates (T+1) are not accepted in this #endpoint. ")
@JsonProperty(JSON_PROPERTY_START_DATE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getStartDate() {
return startDate;
}
@JsonProperty(JSON_PROPERTY_START_DATE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setStartDate(String startDate) {
this.startDate = startDate;
}
public RollingDetailRequest endDate(String endDate) {
this.endDate = endDate;
return this;
}
/**
* The end date requested for a given date range in **YYYY-MM-DD** format. If left blank, the API will default to previous close. Future dates (T+1) are not accepted in this endpoint.
* @return endDate
**/
@jakarta.annotation.Nullable
@ApiModelProperty(example = "2019-12-31", value = "The end date requested for a given date range in **YYYY-MM-DD** format. If left blank, the API will default to previous close. Future dates (T+1) are not accepted in this endpoint. ")
@JsonProperty(JSON_PROPERTY_END_DATE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getEndDate() {
return endDate;
}
@JsonProperty(JSON_PROPERTY_END_DATE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setEndDate(String endDate) {
this.endDate = endDate;
}
public RollingDetailRequest frequency(Frequency frequency) {
this.frequency = frequency;
return this;
}
/**
* Get frequency
* @return frequency
**/
@jakarta.annotation.Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_FREQUENCY)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public Frequency getFrequency() {
return frequency;
}
@JsonProperty(JSON_PROPERTY_FREQUENCY)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setFrequency(Frequency frequency) {
this.frequency = frequency;
}
public RollingDetailRequest includeAll(Boolean includeAll) {
this.includeAll = includeAll;
return this;
}
/**
* Include All filter is used to identify included and excluded broker details from the consensus By default the service would return only the brokers included in the consensus- * **TRUE** = Returns all the brokers included and excluded in the consensus * **FALSE** = Returns only the broker details included in the consensus
* @return includeAll
**/
@jakarta.annotation.Nullable
@ApiModelProperty(example = "false", value = "Include All filter is used to identify included and excluded broker details from the consensus By default the service would return only the brokers included in the consensus- * **TRUE** = Returns all the brokers included and excluded in the consensus * **FALSE** = Returns only the broker details included in the consensus ")
@JsonProperty(JSON_PROPERTY_INCLUDE_ALL)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public Boolean getIncludeAll() {
return includeAll;
}
@JsonProperty(JSON_PROPERTY_INCLUDE_ALL)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setIncludeAll(Boolean includeAll) {
this.includeAll = includeAll;
}
public RollingDetailRequest relativeFiscalStart(Integer relativeFiscalStart) {
this.relativeFiscalStart = relativeFiscalStart;
return this;
}
/**
* Relative fiscal period, expressed as an integer, used to filter results.
* @return relativeFiscalStart
**/
@jakarta.annotation.Nullable
@ApiModelProperty(example = "1", value = "Relative fiscal period, expressed as an integer, used to filter results.")
@JsonProperty(JSON_PROPERTY_RELATIVE_FISCAL_START)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public Integer getRelativeFiscalStart() {
return relativeFiscalStart;
}
@JsonProperty(JSON_PROPERTY_RELATIVE_FISCAL_START)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setRelativeFiscalStart(Integer relativeFiscalStart) {
this.relativeFiscalStart = relativeFiscalStart;
}
public RollingDetailRequest relativeFiscalEnd(Integer relativeFiscalEnd) {
this.relativeFiscalEnd = relativeFiscalEnd;
return this;
}
/**
* Relative fiscal period, expressed as an integer, used to filter results.
* @return relativeFiscalEnd
**/
@jakarta.annotation.Nullable
@ApiModelProperty(example = "3", value = "Relative fiscal period, expressed as an integer, used to filter results.")
@JsonProperty(JSON_PROPERTY_RELATIVE_FISCAL_END)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public Integer getRelativeFiscalEnd() {
return relativeFiscalEnd;
}
@JsonProperty(JSON_PROPERTY_RELATIVE_FISCAL_END)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setRelativeFiscalEnd(Integer relativeFiscalEnd) {
this.relativeFiscalEnd = relativeFiscalEnd;
}
public RollingDetailRequest periodicity(PeriodicityDetail periodicity) {
this.periodicity = periodicity;
return this;
}
/**
* Get periodicity
* @return periodicity
**/
@jakarta.annotation.Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_PERIODICITY)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public PeriodicityDetail getPeriodicity() {
return periodicity;
}
@JsonProperty(JSON_PROPERTY_PERIODICITY)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setPeriodicity(PeriodicityDetail periodicity) {
this.periodicity = periodicity;
}
public RollingDetailRequest metrics(java.util.List metrics) {
this.metrics = metrics;
return this;
}
public RollingDetailRequest addMetricsItem(String metricsItem) {
this.metrics.add(metricsItem);
return this;
}
/**
* Requested metrics. Use the metrics endpoint for a list of estimate items. Note, the number of metrics you are allowed to supply is limited to 1 for now. For more details, visit [Online Assistant Page #15034](https://oa.apps.factset.com/pages/15034).
* @return metrics
**/
@jakarta.annotation.Nonnull
@ApiModelProperty(example = "[\"SALES\"]", required = true, value = "Requested metrics. Use the metrics endpoint for a list of estimate items. Note, the number of metrics you are allowed to supply is limited to 1 for now. For more details, visit [Online Assistant Page #15034](https://oa.apps.factset.com/pages/15034).")
@JsonProperty(JSON_PROPERTY_METRICS)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public java.util.List getMetrics() {
return metrics;
}
@JsonProperty(JSON_PROPERTY_METRICS)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public void setMetrics(java.util.List metrics) {
this.metrics = metrics;
}
public RollingDetailRequest currency(String currency) {
this.currency = currency;
return this;
}
/**
* Currency code for adjusting the data. Use input as 'ESTIMATE' for values in Estimate currency. For a list of currency ISO codes, visit [Online Assistant Page #1470](https://oa.apps.factset.com/pages/1470).
* @return currency
**/
@jakarta.annotation.Nullable
@ApiModelProperty(example = "USD", value = "Currency code for adjusting the data. Use input as 'ESTIMATE' for values in Estimate currency. For a list of currency ISO codes, visit [Online Assistant Page #1470](https://oa.apps.factset.com/pages/1470).")
@JsonProperty(JSON_PROPERTY_CURRENCY)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getCurrency() {
return currency;
}
@JsonProperty(JSON_PROPERTY_CURRENCY)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setCurrency(String currency) {
this.currency = currency;
}
/**
* Return true if this rollingDetailRequest object is equal to o.
*/
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
RollingDetailRequest rollingDetailRequest = (RollingDetailRequest) o;
return Objects.equals(this.ids, rollingDetailRequest.ids) &&
Objects.equals(this.startDate, rollingDetailRequest.startDate) &&
Objects.equals(this.endDate, rollingDetailRequest.endDate) &&
Objects.equals(this.frequency, rollingDetailRequest.frequency) &&
Objects.equals(this.includeAll, rollingDetailRequest.includeAll) &&
Objects.equals(this.relativeFiscalStart, rollingDetailRequest.relativeFiscalStart) &&
Objects.equals(this.relativeFiscalEnd, rollingDetailRequest.relativeFiscalEnd) &&
Objects.equals(this.periodicity, rollingDetailRequest.periodicity) &&
Objects.equals(this.metrics, rollingDetailRequest.metrics) &&
Objects.equals(this.currency, rollingDetailRequest.currency);
}
@Override
public int hashCode() {
return Objects.hash(ids, startDate, endDate, frequency, includeAll, relativeFiscalStart, relativeFiscalEnd, periodicity, metrics, currency);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class RollingDetailRequest {\n");
sb.append(" ids: ").append(toIndentedString(ids)).append("\n");
sb.append(" startDate: ").append(toIndentedString(startDate)).append("\n");
sb.append(" endDate: ").append(toIndentedString(endDate)).append("\n");
sb.append(" frequency: ").append(toIndentedString(frequency)).append("\n");
sb.append(" includeAll: ").append(toIndentedString(includeAll)).append("\n");
sb.append(" relativeFiscalStart: ").append(toIndentedString(relativeFiscalStart)).append("\n");
sb.append(" relativeFiscalEnd: ").append(toIndentedString(relativeFiscalEnd)).append("\n");
sb.append(" periodicity: ").append(toIndentedString(periodicity)).append("\n");
sb.append(" metrics: ").append(toIndentedString(metrics)).append("\n");
sb.append(" currency: ").append(toIndentedString(currency)).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 ");
}
}