All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.factset.sdk.FactSetGlobalPrices.models.SharesOutstandingRequestBody Maven / Gradle / Ivy

There is a newer version: 3.1.2
Show newest version
/*
 * FactSet Global Prices API
 * The FactSet Global Prices API provides end of day market pricing content using cloud and microservices technology, encompassing both pricing as well as corporate actions and events data.

* * The version of the OpenAPI document: 1.7.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.FactSetGlobalPrices.models; import java.util.Objects; import java.util.Arrays; import java.util.Map; import java.util.HashMap; import com.factset.sdk.FactSetGlobalPrices.models.Batch; import com.factset.sdk.FactSetGlobalPrices.models.Calendar; import com.factset.sdk.FactSetGlobalPrices.models.Frequency; 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.FactSetGlobalPrices.JSON; /** * Shares Outstanding Request Body */ @ApiModel(description = "Shares Outstanding Request Body") @JsonPropertyOrder({ SharesOutstandingRequestBody.JSON_PROPERTY_IDS, SharesOutstandingRequestBody.JSON_PROPERTY_START_DATE, SharesOutstandingRequestBody.JSON_PROPERTY_END_DATE, SharesOutstandingRequestBody.JSON_PROPERTY_FREQUENCY, SharesOutstandingRequestBody.JSON_PROPERTY_CALENDAR, SharesOutstandingRequestBody.JSON_PROPERTY_BATCH }) @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") public class SharesOutstandingRequestBody 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_CALENDAR = "calendar"; private Calendar calendar = Calendar.FIVEDAY; public static final String JSON_PROPERTY_BATCH = "batch"; private Batch batch = Batch.N; public SharesOutstandingRequestBody() { } @JsonCreator public SharesOutstandingRequestBody( @JsonProperty(value=JSON_PROPERTY_IDS, required=true) java.util.List ids ) { this(); this.ids = ids; } public SharesOutstandingRequestBody ids(java.util.List ids) { this.ids = ids; return this; } public SharesOutstandingRequestBody 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. Requests are limited to 50 IDs. * @return ids **/ @jakarta.annotation.Nonnull @ApiModelProperty(example = "[\"AAPL-US\"]", required = true, value = "The requested list of security identifiers. Accepted ID types include Market Tickers, SEDOL, ISINs, CUSIPs, or FactSet Permanent Ids. Requests are limited to 50 IDs. ") @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 SharesOutstandingRequestBody startDate(String startDate) { this.startDate = startDate; return this; } /** * The start date requested for a given date range in **YYYY-MM-DD** format. Future dates (T+1) are not accepted in this endpoint. * @return startDate **/ @jakarta.annotation.Nullable @ApiModelProperty(example = "2020-06-30", value = "The start date requested for a given date range in **YYYY-MM-DD** format. 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 SharesOutstandingRequestBody endDate(String endDate) { this.endDate = endDate; return this; } /** * The end date requested for a given date range in **YYYY-MM-DD** format. Future dates (T+1) are not accepted in this endpoint. * @return endDate **/ @jakarta.annotation.Nullable @ApiModelProperty(example = "2021-06-30", value = "The end date requested for a given date range in **YYYY-MM-DD** format. 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 SharesOutstandingRequestBody 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 SharesOutstandingRequestBody calendar(Calendar calendar) { this.calendar = calendar; return this; } /** * Get calendar * @return calendar **/ @jakarta.annotation.Nullable @ApiModelProperty(value = "") @JsonProperty(JSON_PROPERTY_CALENDAR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Calendar getCalendar() { return calendar; } @JsonProperty(JSON_PROPERTY_CALENDAR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setCalendar(Calendar calendar) { this.calendar = calendar; } public SharesOutstandingRequestBody batch(Batch batch) { this.batch = batch; return this; } /** * Get batch * @return batch **/ @jakarta.annotation.Nullable @ApiModelProperty(value = "") @JsonProperty(JSON_PROPERTY_BATCH) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Batch getBatch() { return batch; } @JsonProperty(JSON_PROPERTY_BATCH) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setBatch(Batch batch) { this.batch = batch; } /** * Return true if this sharesOutstandingRequestBody object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { return true; } if (o == null || getClass() != o.getClass()) { return false; } SharesOutstandingRequestBody sharesOutstandingRequestBody = (SharesOutstandingRequestBody) o; return Objects.equals(this.ids, sharesOutstandingRequestBody.ids) && Objects.equals(this.startDate, sharesOutstandingRequestBody.startDate) && Objects.equals(this.endDate, sharesOutstandingRequestBody.endDate) && Objects.equals(this.frequency, sharesOutstandingRequestBody.frequency) && Objects.equals(this.calendar, sharesOutstandingRequestBody.calendar) && Objects.equals(this.batch, sharesOutstandingRequestBody.batch); } @Override public int hashCode() { return Objects.hash(ids, startDate, endDate, frequency, calendar, batch); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class SharesOutstandingRequestBody {\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(" calendar: ").append(toIndentedString(calendar)).append("\n"); sb.append(" batch: ").append(toIndentedString(batch)).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 "); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy