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

com.factset.sdk.FactSetBenchmarks.models.FixedIncomeBenchmarkConstituent Maven / Gradle / Ivy

There is a newer version: 3.1.1
Show newest version
/*
 * FactSet Benchmarks API
 * FactSet Benchmarks API gives access to Index Constituents, Prices, Returns, and Ratios. For a sample list of identifiers, use the /metrics endpoint. Equity Only - Fixed Income Benchmark support coming soon. 
 *
 * The version of the OpenAPI document: 1.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.FactSetBenchmarks.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.time.LocalDate;
import java.io.Serializable;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
import com.factset.sdk.FactSetBenchmarks.JSON;


/**
 * FixedIncomeBenchmarkConstituent
 */
@JsonPropertyOrder({
  FixedIncomeBenchmarkConstituent.JSON_PROPERTY_FSYM_ID,
  FixedIncomeBenchmarkConstituent.JSON_PROPERTY_DATE,
  FixedIncomeBenchmarkConstituent.JSON_PROPERTY_FSYM_SECURITY_ID,
  FixedIncomeBenchmarkConstituent.JSON_PROPERTY_WEIGHT_CLOSE,
  FixedIncomeBenchmarkConstituent.JSON_PROPERTY_AMOUNT_OUTSTANDING,
  FixedIncomeBenchmarkConstituent.JSON_PROPERTY_PRICE,
  FixedIncomeBenchmarkConstituent.JSON_PROPERTY_ADJ_MARKET_VALUE,
  FixedIncomeBenchmarkConstituent.JSON_PROPERTY_REQUEST_ID
})
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
public class FixedIncomeBenchmarkConstituent implements Serializable {
  private static final long serialVersionUID = 1L;

  public static final String JSON_PROPERTY_FSYM_ID = "fsymId";
  private String fsymId;

  public static final String JSON_PROPERTY_DATE = "date";
  private LocalDate date;

  public static final String JSON_PROPERTY_FSYM_SECURITY_ID = "fsymSecurityId";
  private String fsymSecurityId;

  public static final String JSON_PROPERTY_WEIGHT_CLOSE = "weightClose";
  private Double weightClose;

  public static final String JSON_PROPERTY_AMOUNT_OUTSTANDING = "amountOutstanding";
  private Double amountOutstanding;

  public static final String JSON_PROPERTY_PRICE = "price";
  private Double price;

  public static final String JSON_PROPERTY_ADJ_MARKET_VALUE = "adjMarketValue";
  private Double adjMarketValue;

  public static final String JSON_PROPERTY_REQUEST_ID = "requestId";
  private String requestId;

  public FixedIncomeBenchmarkConstituent() { 
  }

  public FixedIncomeBenchmarkConstituent fsymId(String fsymId) {
    this.fsymId = fsymId;
    return this;
  }

   /**
   * Benchmark Id
   * @return fsymId
  **/
  @javax.annotation.Nullable
  @ApiModelProperty(example = "LHMN0001", value = "Benchmark Id")
  @JsonProperty(JSON_PROPERTY_FSYM_ID)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)

  public String getFsymId() {
    return fsymId;
  }


  @JsonProperty(JSON_PROPERTY_FSYM_ID)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
  public void setFsymId(String fsymId) {
    this.fsymId = fsymId;
  }


  public FixedIncomeBenchmarkConstituent date(LocalDate date) {
    this.date = date;
    return this;
  }

   /**
   * Date of weight and shares.
   * @return date
  **/
  @javax.annotation.Nullable
  @ApiModelProperty(example = "Mon Apr 12 00:00:00 UTC 2021", value = "Date of weight and shares.")
  @JsonProperty(JSON_PROPERTY_DATE)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)

  public LocalDate getDate() {
    return date;
  }


  @JsonProperty(JSON_PROPERTY_DATE)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
  public void setDate(LocalDate date) {
    this.date = date;
  }


  public FixedIncomeBenchmarkConstituent fsymSecurityId(String fsymSecurityId) {
    this.fsymSecurityId = fsymSecurityId;
    return this;
  }

   /**
   * FactSet Security Identifier (-S).
   * @return fsymSecurityId
  **/
  @javax.annotation.Nullable
  @ApiModelProperty(example = "FV4SC0-S", value = "FactSet Security Identifier (-S).")
  @JsonProperty(JSON_PROPERTY_FSYM_SECURITY_ID)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)

  public String getFsymSecurityId() {
    return fsymSecurityId;
  }


  @JsonProperty(JSON_PROPERTY_FSYM_SECURITY_ID)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
  public void setFsymSecurityId(String fsymSecurityId) {
    this.fsymSecurityId = fsymSecurityId;
  }


  public FixedIncomeBenchmarkConstituent weightClose(Double weightClose) {
    this.weightClose = weightClose;
    return this;
  }

   /**
   * Weight of Security in benchmark (percent).
   * @return weightClose
  **/
  @javax.annotation.Nullable
  @ApiModelProperty(example = "0.00303380596473456", value = "Weight of Security in benchmark (percent).")
  @JsonProperty(JSON_PROPERTY_WEIGHT_CLOSE)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)

  public Double getWeightClose() {
    return weightClose;
  }


  @JsonProperty(JSON_PROPERTY_WEIGHT_CLOSE)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
  public void setWeightClose(Double weightClose) {
    this.weightClose = weightClose;
  }


  public FixedIncomeBenchmarkConstituent amountOutstanding(Double amountOutstanding) {
    this.amountOutstanding = amountOutstanding;
    return this;
  }

   /**
   * Amount Outstanding for the Fixed Income Security.
   * @return amountOutstanding
  **/
  @javax.annotation.Nullable
  @ApiModelProperty(example = "700000", value = "Amount Outstanding for the Fixed Income Security.")
  @JsonProperty(JSON_PROPERTY_AMOUNT_OUTSTANDING)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)

  public Double getAmountOutstanding() {
    return amountOutstanding;
  }


  @JsonProperty(JSON_PROPERTY_AMOUNT_OUTSTANDING)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
  public void setAmountOutstanding(Double amountOutstanding) {
    this.amountOutstanding = amountOutstanding;
  }


  public FixedIncomeBenchmarkConstituent price(Double price) {
    this.price = price;
    return this;
  }

   /**
   * Fixed Income Price of security held.
   * @return price
  **/
  @javax.annotation.Nullable
  @ApiModelProperty(example = "106.976", value = "Fixed Income Price of security held.")
  @JsonProperty(JSON_PROPERTY_PRICE)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)

  public Double getPrice() {
    return price;
  }


  @JsonProperty(JSON_PROPERTY_PRICE)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
  public void setPrice(Double price) {
    this.price = price;
  }


  public FixedIncomeBenchmarkConstituent adjMarketValue(Double adjMarketValue) {
    this.adjMarketValue = adjMarketValue;
    return this;
  }

   /**
   * Market value adjusted. Market Value represented in Millions.
   * @return adjMarketValue
  **/
  @javax.annotation.Nullable
  @ApiModelProperty(example = "757.233375", value = "Market value adjusted. Market Value represented in Millions.")
  @JsonProperty(JSON_PROPERTY_ADJ_MARKET_VALUE)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)

  public Double getAdjMarketValue() {
    return adjMarketValue;
  }


  @JsonProperty(JSON_PROPERTY_ADJ_MARKET_VALUE)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
  public void setAdjMarketValue(Double adjMarketValue) {
    this.adjMarketValue = adjMarketValue;
  }


  public FixedIncomeBenchmarkConstituent requestId(String requestId) {
    this.requestId = requestId;
    return this;
  }

   /**
   * Identifier specified in the request
   * @return requestId
  **/
  @javax.annotation.Nullable
  @ApiModelProperty(example = "LHMN0001", value = "Identifier specified in the request")
  @JsonProperty(JSON_PROPERTY_REQUEST_ID)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)

  public String getRequestId() {
    return requestId;
  }


  @JsonProperty(JSON_PROPERTY_REQUEST_ID)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
  public void setRequestId(String requestId) {
    this.requestId = requestId;
  }


  /**
   * Return true if this fixedIncomeBenchmarkConstituent object is equal to o.
   */
  @Override
  public boolean equals(Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    FixedIncomeBenchmarkConstituent fixedIncomeBenchmarkConstituent = (FixedIncomeBenchmarkConstituent) o;
    return Objects.equals(this.fsymId, fixedIncomeBenchmarkConstituent.fsymId) &&
        Objects.equals(this.date, fixedIncomeBenchmarkConstituent.date) &&
        Objects.equals(this.fsymSecurityId, fixedIncomeBenchmarkConstituent.fsymSecurityId) &&
        Objects.equals(this.weightClose, fixedIncomeBenchmarkConstituent.weightClose) &&
        Objects.equals(this.amountOutstanding, fixedIncomeBenchmarkConstituent.amountOutstanding) &&
        Objects.equals(this.price, fixedIncomeBenchmarkConstituent.price) &&
        Objects.equals(this.adjMarketValue, fixedIncomeBenchmarkConstituent.adjMarketValue) &&
        Objects.equals(this.requestId, fixedIncomeBenchmarkConstituent.requestId);
  }

  @Override
  public int hashCode() {
    return Objects.hash(fsymId, date, fsymSecurityId, weightClose, amountOutstanding, price, adjMarketValue, requestId);
  }

  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class FixedIncomeBenchmarkConstituent {\n");
    sb.append("    fsymId: ").append(toIndentedString(fsymId)).append("\n");
    sb.append("    date: ").append(toIndentedString(date)).append("\n");
    sb.append("    fsymSecurityId: ").append(toIndentedString(fsymSecurityId)).append("\n");
    sb.append("    weightClose: ").append(toIndentedString(weightClose)).append("\n");
    sb.append("    amountOutstanding: ").append(toIndentedString(amountOutstanding)).append("\n");
    sb.append("    price: ").append(toIndentedString(price)).append("\n");
    sb.append("    adjMarketValue: ").append(toIndentedString(adjMarketValue)).append("\n");
    sb.append("    requestId: ").append(toIndentedString(requestId)).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