com.factset.sdk.FactSetPrivateMarkets.models.NonPeriodicRequest Maven / Gradle / Ivy
/*
* FactSet Private Markets API
* FactSet Private Markets API encompasses Private Company Financials data to start. Private Company firmographics can be found in the FactSet Entity API. The future plans of this service will include additional Private Markets data, such as Private Equity/Venture Capital.Rate limit is set to 10 requests per second.
*
* The version of the OpenAPI document: 1.2.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.FactSetPrivateMarkets.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.FactSetPrivateMarkets.JSON;
/**
* Entity Reference Request Body
*/
@ApiModel(description = "Entity Reference Request Body")
@JsonPropertyOrder({
NonPeriodicRequest.JSON_PROPERTY_IDS,
NonPeriodicRequest.JSON_PROPERTY_FIELDS
})
@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
public class NonPeriodicRequest 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_FIELDS = "fields";
private java.util.List fields = null;
public NonPeriodicRequest() {
}
@JsonCreator
public NonPeriodicRequest(
@JsonProperty(value=JSON_PROPERTY_IDS, required=true) java.util.List ids
) {
this();
this.ids = ids;
}
public NonPeriodicRequest ids(java.util.List ids) {
this.ids = ids;
return this;
}
public NonPeriodicRequest addIdsItem(String idsItem) {
this.ids.add(idsItem);
return this;
}
/**
* Security or Entity identifiers. FactSet Identifiers, tickers, CUSIP and SEDOL are accepted input.
* @return ids
**/
@jakarta.annotation.Nonnull
@ApiModelProperty(example = "[\"000BFG-E\",\"000BGZ-E\",\"000C64-E\"]", required = true, value = "Security or Entity identifiers. FactSet Identifiers, tickers, CUSIP and SEDOL are accepted input. ")
@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 NonPeriodicRequest fields(java.util.List fields) {
this.fields = fields;
return this;
}
public NonPeriodicRequest addFieldsItem(String fieldsItem) {
if (this.fields == null) {
this.fields = new java.util.ArrayList<>();
}
this.fields.add(fieldsItem);
return this;
}
/**
* Private Markets Non-Periodic Fields.
* @return fields
**/
@jakarta.annotation.Nullable
@ApiModelProperty(example = "[\"amtRaised\"]", value = "Private Markets Non-Periodic Fields. ")
@JsonProperty(JSON_PROPERTY_FIELDS)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public java.util.List getFields() {
return fields;
}
@JsonProperty(JSON_PROPERTY_FIELDS)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setFields(java.util.List fields) {
this.fields = fields;
}
/**
* Return true if this nonPeriodicRequest object is equal to o.
*/
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
NonPeriodicRequest nonPeriodicRequest = (NonPeriodicRequest) o;
return Objects.equals(this.ids, nonPeriodicRequest.ids) &&
Objects.equals(this.fields, nonPeriodicRequest.fields);
}
@Override
public int hashCode() {
return Objects.hash(ids, fields);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class NonPeriodicRequest {\n");
sb.append(" ids: ").append(toIndentedString(ids)).append("\n");
sb.append(" fields: ").append(toIndentedString(fields)).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 ");
}
}