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

com.factset.sdk.FactSetGlobalPrices.models.AnnualizedDividendsRequest 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.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; /** * Annualized Dividends Request Body */ @ApiModel(description = "Annualized Dividends Request Body") @JsonPropertyOrder({ AnnualizedDividendsRequest.JSON_PROPERTY_IDS, AnnualizedDividendsRequest.JSON_PROPERTY_CURRENCY, AnnualizedDividendsRequest.JSON_PROPERTY_BATCH }) @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") public class AnnualizedDividendsRequest 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_CURRENCY = "currency"; private String currency; public static final String JSON_PROPERTY_BATCH = "batch"; private Batch batch = Batch.N; public AnnualizedDividendsRequest() { } @JsonCreator public AnnualizedDividendsRequest( @JsonProperty(value=JSON_PROPERTY_IDS, required=true) java.util.List ids ) { this(); this.ids = ids; } public AnnualizedDividendsRequest ids(java.util.List ids) { this.ids = ids; return this; } public AnnualizedDividendsRequest 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 AnnualizedDividendsRequest currency(String currency) { this.currency = currency; return this; } /** * Currency code for adjusting prices. Default is Local. 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 prices. Default is Local. 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; } public AnnualizedDividendsRequest 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 annualizedDividendsRequest object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { return true; } if (o == null || getClass() != o.getClass()) { return false; } AnnualizedDividendsRequest annualizedDividendsRequest = (AnnualizedDividendsRequest) o; return Objects.equals(this.ids, annualizedDividendsRequest.ids) && Objects.equals(this.currency, annualizedDividendsRequest.currency) && Objects.equals(this.batch, annualizedDividendsRequest.batch); } @Override public int hashCode() { return Objects.hash(ids, currency, batch); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class AnnualizedDividendsRequest {\n"); sb.append(" ids: ").append(toIndentedString(ids)).append("\n"); sb.append(" currency: ").append(toIndentedString(currency)).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