com.factset.sdk.FactSetFundamentals.models.Profile Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of factsetfundamentals Show documentation
Show all versions of factsetfundamentals Show documentation
FactSet SDK for Java - factsetfundamentals
/*
* FactSet Fundamentals API
* Gain access to current, comprehensive, and comparative information on securities in worldwide developed and emerging markets. Composed of annual and interim/quarterly data, detailed historical financial statement content, per-share data, and calculated ratios, FactSet Fundamentals provides you with the information you need for a global investment perspective.This API is rate-limited to 10 requests per second and 10 concurrent requests per user.
*
* The version of the OpenAPI document: 2.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.FactSetFundamentals.models;
import java.util.Objects;
import java.util.Arrays;
import java.util.Map;
import java.util.HashMap;
import com.factset.sdk.FactSetFundamentals.models.Address;
import com.factset.sdk.FactSetFundamentals.models.CompanyReportErrorObject;
import com.factset.sdk.FactSetFundamentals.models.Exchange;
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 org.openapitools.jackson.nullable.JsonNullable;
import com.fasterxml.jackson.annotation.JsonIgnore;
import org.openapitools.jackson.nullable.JsonNullable;
import java.util.NoSuchElementException;
import java.io.Serializable;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
import com.factset.sdk.FactSetFundamentals.JSON;
/**
* Profile
*/
@JsonPropertyOrder({
Profile.JSON_PROPERTY_REQUEST_ID,
Profile.JSON_PROPERTY_ERROR,
Profile.JSON_PROPERTY_FSYM_ID,
Profile.JSON_PROPERTY_TICKER_REGION,
Profile.JSON_PROPERTY_EXCHANGE,
Profile.JSON_PROPERTY_NAME,
Profile.JSON_PROPERTY_ADDRESS,
Profile.JSON_PROPERTY_INDUSTRY_ID,
Profile.JSON_PROPERTY_INDUSTRY,
Profile.JSON_PROPERTY_SECTOR_ID,
Profile.JSON_PROPERTY_SECTOR,
Profile.JSON_PROPERTY_NUMBER_OF_EMPLOYEES,
Profile.JSON_PROPERTY_CEO,
Profile.JSON_PROPERTY_BUSINESS_SUMMARY,
Profile.JSON_PROPERTY_YEAR_FOUNDED,
Profile.JSON_PROPERTY_MARKET_CAPITALIZATION,
Profile.JSON_PROPERTY_TOTAL_MARKET_CAPITALIZATION,
Profile.JSON_PROPERTY_SHARES_OUTSTANDING,
Profile.JSON_PROPERTY_PE_RATIO
})
@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
public class Profile implements Serializable {
private static final long serialVersionUID = 1L;
public static final String JSON_PROPERTY_REQUEST_ID = "requestId";
private String requestId;
public static final String JSON_PROPERTY_ERROR = "error";
private CompanyReportErrorObject error;
public static final String JSON_PROPERTY_FSYM_ID = "fsymId";
private JsonNullable fsymId = JsonNullable.undefined();
public static final String JSON_PROPERTY_TICKER_REGION = "tickerRegion";
private JsonNullable tickerRegion = JsonNullable.undefined();
public static final String JSON_PROPERTY_EXCHANGE = "exchange";
private Exchange exchange;
public static final String JSON_PROPERTY_NAME = "name";
private JsonNullable name = JsonNullable.undefined();
public static final String JSON_PROPERTY_ADDRESS = "address";
private Address address;
public static final String JSON_PROPERTY_INDUSTRY_ID = "industryId";
private JsonNullable industryId = JsonNullable.undefined();
public static final String JSON_PROPERTY_INDUSTRY = "industry";
private JsonNullable industry = JsonNullable.undefined();
public static final String JSON_PROPERTY_SECTOR_ID = "sectorId";
private JsonNullable sectorId = JsonNullable.undefined();
public static final String JSON_PROPERTY_SECTOR = "sector";
private JsonNullable sector = JsonNullable.undefined();
public static final String JSON_PROPERTY_NUMBER_OF_EMPLOYEES = "numberOfEmployees";
private JsonNullable numberOfEmployees = JsonNullable.undefined();
public static final String JSON_PROPERTY_CEO = "ceo";
private JsonNullable ceo = JsonNullable.undefined();
public static final String JSON_PROPERTY_BUSINESS_SUMMARY = "businessSummary";
private JsonNullable businessSummary = JsonNullable.undefined();
public static final String JSON_PROPERTY_YEAR_FOUNDED = "yearFounded";
private JsonNullable yearFounded = JsonNullable.undefined();
public static final String JSON_PROPERTY_MARKET_CAPITALIZATION = "marketCapitalization";
private JsonNullable marketCapitalization = JsonNullable.undefined();
public static final String JSON_PROPERTY_TOTAL_MARKET_CAPITALIZATION = "totalMarketCapitalization";
private JsonNullable totalMarketCapitalization = JsonNullable.undefined();
public static final String JSON_PROPERTY_SHARES_OUTSTANDING = "sharesOutstanding";
private JsonNullable sharesOutstanding = JsonNullable.undefined();
public static final String JSON_PROPERTY_PE_RATIO = "peRatio";
private JsonNullable peRatio = JsonNullable.undefined();
public Profile() {
}
public Profile requestId(String requestId) {
this.requestId = requestId;
return this;
}
/**
* Identifier that was used for the request.
* @return requestId
**/
@jakarta.annotation.Nullable
@ApiModelProperty(example = "AAPL-USA", value = "Identifier that was used for 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;
}
public Profile error(CompanyReportErrorObject error) {
this.error = error;
return this;
}
/**
* Get error
* @return error
**/
@jakarta.annotation.Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_ERROR)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public CompanyReportErrorObject getError() {
return error;
}
@JsonProperty(JSON_PROPERTY_ERROR)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setError(CompanyReportErrorObject error) {
this.error = error;
}
public Profile fsymId(String fsymId) {
this.fsymId = JsonNullable.of(fsymId);
return this;
}
/**
* FactSet Regional Security Identifier. Six alpha-numeric characters, excluding vowels, with an -R suffix (XXXXXX-R). Identifies the security's best regional security data series per currency. For equities, all primary listings per region and currency are allocated a regional-level permanent identifier. The regional-level permanent identifier will be available once a SEDOL representing the region/currency has been allocated and the identifiers are on FactSet.
* @return fsymId
**/
@jakarta.annotation.Nullable
@ApiModelProperty(example = "SJY281-R", value = "FactSet Regional Security Identifier. Six alpha-numeric characters, excluding vowels, with an -R suffix (XXXXXX-R). Identifies the security's best regional security data series per currency. For equities, all primary listings per region and currency are allocated a regional-level permanent identifier. The regional-level permanent identifier will be available once a SEDOL representing the region/currency has been allocated and the identifiers are on FactSet.")
@JsonIgnore
public String getFsymId() {
return fsymId.orElse(null);
}
@JsonProperty(JSON_PROPERTY_FSYM_ID)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public JsonNullable getFsymId_JsonNullable() {
return fsymId;
}
@JsonProperty(JSON_PROPERTY_FSYM_ID)
public void setFsymId_JsonNullable(JsonNullable fsymId) {
this.fsymId = fsymId;
}
public void setFsymId(String fsymId) {
this.fsymId = JsonNullable.of(fsymId);
}
public Profile tickerRegion(String tickerRegion) {
this.tickerRegion = JsonNullable.of(tickerRegion);
return this;
}
/**
* FactSet Ticker-Region for the requested security.
* @return tickerRegion
**/
@jakarta.annotation.Nullable
@ApiModelProperty(example = "AAPL-US", value = "FactSet Ticker-Region for the requested security.")
@JsonIgnore
public String getTickerRegion() {
return tickerRegion.orElse(null);
}
@JsonProperty(JSON_PROPERTY_TICKER_REGION)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public JsonNullable getTickerRegion_JsonNullable() {
return tickerRegion;
}
@JsonProperty(JSON_PROPERTY_TICKER_REGION)
public void setTickerRegion_JsonNullable(JsonNullable tickerRegion) {
this.tickerRegion = tickerRegion;
}
public void setTickerRegion(String tickerRegion) {
this.tickerRegion = JsonNullable.of(tickerRegion);
}
public Profile exchange(Exchange exchange) {
this.exchange = exchange;
return this;
}
/**
* Get exchange
* @return exchange
**/
@jakarta.annotation.Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_EXCHANGE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public Exchange getExchange() {
return exchange;
}
@JsonProperty(JSON_PROPERTY_EXCHANGE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setExchange(Exchange exchange) {
this.exchange = exchange;
}
public Profile name(String name) {
this.name = JsonNullable.of(name);
return this;
}
/**
* Name of the security
* @return name
**/
@jakarta.annotation.Nullable
@ApiModelProperty(example = "Apple Inc.", value = "Name of the security")
@JsonIgnore
public String getName() {
return name.orElse(null);
}
@JsonProperty(JSON_PROPERTY_NAME)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public JsonNullable getName_JsonNullable() {
return name;
}
@JsonProperty(JSON_PROPERTY_NAME)
public void setName_JsonNullable(JsonNullable name) {
this.name = name;
}
public void setName(String name) {
this.name = JsonNullable.of(name);
}
public Profile address(Address address) {
this.address = address;
return this;
}
/**
* Get address
* @return address
**/
@jakarta.annotation.Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_ADDRESS)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public Address getAddress() {
return address;
}
@JsonProperty(JSON_PROPERTY_ADDRESS)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setAddress(Address address) {
this.address = address;
}
public Profile industryId(String industryId) {
this.industryId = JsonNullable.of(industryId);
return this;
}
/**
* The industry classification Id for this security. The industry level 5 RBIC (Revere Business Industry Classification) system is used in classification. For more info, visit: [OA page](https://my.apps.factset.com/oa/pages/17498)
* @return industryId
**/
@jakarta.annotation.Nullable
@ApiModelProperty(example = "5515", value = "The industry classification Id for this security. The industry level 5 RBIC (Revere Business Industry Classification) system is used in classification. For more info, visit: [OA page](https://my.apps.factset.com/oa/pages/17498)")
@JsonIgnore
public String getIndustryId() {
return industryId.orElse(null);
}
@JsonProperty(JSON_PROPERTY_INDUSTRY_ID)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public JsonNullable getIndustryId_JsonNullable() {
return industryId;
}
@JsonProperty(JSON_PROPERTY_INDUSTRY_ID)
public void setIndustryId_JsonNullable(JsonNullable industryId) {
this.industryId = industryId;
}
public void setIndustryId(String industryId) {
this.industryId = JsonNullable.of(industryId);
}
public Profile industry(String industry) {
this.industry = JsonNullable.of(industry);
return this;
}
/**
* The industry classification for this security. The industry level 5 RBIC (Revere Business Industry Classification) system is used in classification. For more info, visit: [OA page](https://my.apps.factset.com/oa/pages/17498)
* @return industry
**/
@jakarta.annotation.Nullable
@ApiModelProperty(example = "Hardware", value = "The industry classification for this security. The industry level 5 RBIC (Revere Business Industry Classification) system is used in classification. For more info, visit: [OA page](https://my.apps.factset.com/oa/pages/17498)")
@JsonIgnore
public String getIndustry() {
return industry.orElse(null);
}
@JsonProperty(JSON_PROPERTY_INDUSTRY)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public JsonNullable getIndustry_JsonNullable() {
return industry;
}
@JsonProperty(JSON_PROPERTY_INDUSTRY)
public void setIndustry_JsonNullable(JsonNullable industry) {
this.industry = industry;
}
public void setIndustry(String industry) {
this.industry = JsonNullable.of(industry);
}
public Profile sectorId(String sectorId) {
this.sectorId = JsonNullable.of(sectorId);
return this;
}
/**
* The sector classification Id for this security. The sector level 2 RBIC (Revere Business Industry Classification) system is used in classification. For more info, visit: [OA page](https://my.apps.factset.com/oa/pages/17498)
* @return sectorId
**/
@jakarta.annotation.Nullable
@ApiModelProperty(example = "5515154530", value = "The sector classification Id for this security. The sector level 2 RBIC (Revere Business Industry Classification) system is used in classification. For more info, visit: [OA page](https://my.apps.factset.com/oa/pages/17498)")
@JsonIgnore
public String getSectorId() {
return sectorId.orElse(null);
}
@JsonProperty(JSON_PROPERTY_SECTOR_ID)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public JsonNullable getSectorId_JsonNullable() {
return sectorId;
}
@JsonProperty(JSON_PROPERTY_SECTOR_ID)
public void setSectorId_JsonNullable(JsonNullable sectorId) {
this.sectorId = sectorId;
}
public void setSectorId(String sectorId) {
this.sectorId = JsonNullable.of(sectorId);
}
public Profile sector(String sector) {
this.sector = JsonNullable.of(sector);
return this;
}
/**
* The sector classification for this security. The sector level 2 RBIC (Revere Business Industry Classification) system is used in classification. For more info, visit: [OA page](https://my.apps.factset.com/oa/pages/17498)
* @return sector
**/
@jakarta.annotation.Nullable
@ApiModelProperty(example = "Smart Phone Manufacturing", value = "The sector classification for this security. The sector level 2 RBIC (Revere Business Industry Classification) system is used in classification. For more info, visit: [OA page](https://my.apps.factset.com/oa/pages/17498)")
@JsonIgnore
public String getSector() {
return sector.orElse(null);
}
@JsonProperty(JSON_PROPERTY_SECTOR)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public JsonNullable getSector_JsonNullable() {
return sector;
}
@JsonProperty(JSON_PROPERTY_SECTOR)
public void setSector_JsonNullable(JsonNullable sector) {
this.sector = sector;
}
public void setSector(String sector) {
this.sector = JsonNullable.of(sector);
}
public Profile numberOfEmployees(Integer numberOfEmployees) {
this.numberOfEmployees = JsonNullable.of(numberOfEmployees);
return this;
}
/**
* Number of employees working in the company
* @return numberOfEmployees
**/
@jakarta.annotation.Nullable
@ApiModelProperty(example = "161000", value = "Number of employees working in the company")
@JsonIgnore
public Integer getNumberOfEmployees() {
return numberOfEmployees.orElse(null);
}
@JsonProperty(JSON_PROPERTY_NUMBER_OF_EMPLOYEES)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public JsonNullable getNumberOfEmployees_JsonNullable() {
return numberOfEmployees;
}
@JsonProperty(JSON_PROPERTY_NUMBER_OF_EMPLOYEES)
public void setNumberOfEmployees_JsonNullable(JsonNullable numberOfEmployees) {
this.numberOfEmployees = numberOfEmployees;
}
public void setNumberOfEmployees(Integer numberOfEmployees) {
this.numberOfEmployees = JsonNullable.of(numberOfEmployees);
}
public Profile ceo(String ceo) {
this.ceo = JsonNullable.of(ceo);
return this;
}
/**
* A chief executive officer (CEO) is the highest-ranking executive in a company
* @return ceo
**/
@jakarta.annotation.Nullable
@ApiModelProperty(example = "Mr. Timothy Donald Cook", value = "A chief executive officer (CEO) is the highest-ranking executive in a company")
@JsonIgnore
public String getCeo() {
return ceo.orElse(null);
}
@JsonProperty(JSON_PROPERTY_CEO)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public JsonNullable getCeo_JsonNullable() {
return ceo;
}
@JsonProperty(JSON_PROPERTY_CEO)
public void setCeo_JsonNullable(JsonNullable ceo) {
this.ceo = ceo;
}
public void setCeo(String ceo) {
this.ceo = JsonNullable.of(ceo);
}
public Profile businessSummary(String businessSummary) {
this.businessSummary = JsonNullable.of(businessSummary);
return this;
}
/**
* Summary of the security being requested
* @return businessSummary
**/
@jakarta.annotation.Nullable
@ApiModelProperty(example = "Apple, Inc. engages in the design, manufacture, and sale of smartphones, personal computers, tablets, wearables and accessories, and other varieties of related services. It operates through the following geographical segments: Americas, Europe, Greater China, Japan, and Rest of Asia Pacific. The Americas segment includes North and South America. The Europe segment consists of European countries, as well as India, the Middle East, and Africa. The Greater China segment comprises China, Hong Kong, and Taiwan. The Rest of Asia Pacific segment includes Australia and Asian countries. Its products and services include iPhone, Mac, iPad, AirPods, Apple TV, Apple Watch, Beats products, AppleCare, iCloud, digital content stores, streaming, and licensing services. The company was founded by Steven Paul Jobs, Ronald Gerald Wayne, and Stephen G. Wozniak in April 1976 and is headquartered in Cupertino, CA.", value = "Summary of the security being requested")
@JsonIgnore
public String getBusinessSummary() {
return businessSummary.orElse(null);
}
@JsonProperty(JSON_PROPERTY_BUSINESS_SUMMARY)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public JsonNullable getBusinessSummary_JsonNullable() {
return businessSummary;
}
@JsonProperty(JSON_PROPERTY_BUSINESS_SUMMARY)
public void setBusinessSummary_JsonNullable(JsonNullable businessSummary) {
this.businessSummary = businessSummary;
}
public void setBusinessSummary(String businessSummary) {
this.businessSummary = JsonNullable.of(businessSummary);
}
public Profile yearFounded(Integer yearFounded) {
this.yearFounded = JsonNullable.of(yearFounded);
return this;
}
/**
* The year this security is founded
* @return yearFounded
**/
@jakarta.annotation.Nullable
@ApiModelProperty(example = "1976", value = "The year this security is founded")
@JsonIgnore
public Integer getYearFounded() {
return yearFounded.orElse(null);
}
@JsonProperty(JSON_PROPERTY_YEAR_FOUNDED)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public JsonNullable getYearFounded_JsonNullable() {
return yearFounded;
}
@JsonProperty(JSON_PROPERTY_YEAR_FOUNDED)
public void setYearFounded_JsonNullable(JsonNullable yearFounded) {
this.yearFounded = yearFounded;
}
public void setYearFounded(Integer yearFounded) {
this.yearFounded = JsonNullable.of(yearFounded);
}
public Profile marketCapitalization(Long marketCapitalization) {
this.marketCapitalization = JsonNullable.of(marketCapitalization);
return this;
}
/**
* The market capitalization of a company. It is the total value of the company's outstanding shares of common stock
* @return marketCapitalization
**/
@jakarta.annotation.Nullable
@ApiModelProperty(example = "26155490220", value = "The market capitalization of a company. It is the total value of the company's outstanding shares of common stock")
@JsonIgnore
public Long getMarketCapitalization() {
return marketCapitalization.orElse(null);
}
@JsonProperty(JSON_PROPERTY_MARKET_CAPITALIZATION)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public JsonNullable getMarketCapitalization_JsonNullable() {
return marketCapitalization;
}
@JsonProperty(JSON_PROPERTY_MARKET_CAPITALIZATION)
public void setMarketCapitalization_JsonNullable(JsonNullable marketCapitalization) {
this.marketCapitalization = marketCapitalization;
}
public void setMarketCapitalization(Long marketCapitalization) {
this.marketCapitalization = JsonNullable.of(marketCapitalization);
}
public Profile totalMarketCapitalization(Long totalMarketCapitalization) {
this.totalMarketCapitalization = JsonNullable.of(totalMarketCapitalization);
return this;
}
/**
* The total public shares for the company's listed equity. This aggregates across all share classes, with including non-traded shares.
* @return totalMarketCapitalization
**/
@jakarta.annotation.Nullable
@ApiModelProperty(example = "2615545855361", value = "The total public shares for the company's listed equity. This aggregates across all share classes, with including non-traded shares.")
@JsonIgnore
public Long getTotalMarketCapitalization() {
return totalMarketCapitalization.orElse(null);
}
@JsonProperty(JSON_PROPERTY_TOTAL_MARKET_CAPITALIZATION)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public JsonNullable getTotalMarketCapitalization_JsonNullable() {
return totalMarketCapitalization;
}
@JsonProperty(JSON_PROPERTY_TOTAL_MARKET_CAPITALIZATION)
public void setTotalMarketCapitalization_JsonNullable(JsonNullable totalMarketCapitalization) {
this.totalMarketCapitalization = totalMarketCapitalization;
}
public void setTotalMarketCapitalization(Long totalMarketCapitalization) {
this.totalMarketCapitalization = JsonNullable.of(totalMarketCapitalization);
}
public Profile sharesOutstanding(Long sharesOutstanding) {
this.sharesOutstanding = JsonNullable.of(sharesOutstanding);
return this;
}
/**
* The number of common shares that a company has issued and are held by investors
* @return sharesOutstanding
**/
@jakarta.annotation.Nullable
@ApiModelProperty(example = "15441900000", value = "The number of common shares that a company has issued and are held by investors")
@JsonIgnore
public Long getSharesOutstanding() {
return sharesOutstanding.orElse(null);
}
@JsonProperty(JSON_PROPERTY_SHARES_OUTSTANDING)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public JsonNullable getSharesOutstanding_JsonNullable() {
return sharesOutstanding;
}
@JsonProperty(JSON_PROPERTY_SHARES_OUTSTANDING)
public void setSharesOutstanding_JsonNullable(JsonNullable sharesOutstanding) {
this.sharesOutstanding = sharesOutstanding;
}
public void setSharesOutstanding(Long sharesOutstanding) {
this.sharesOutstanding = JsonNullable.of(sharesOutstanding);
}
public Profile peRatio(Double peRatio) {
this.peRatio = JsonNullable.of(peRatio);
return this;
}
/**
* The price-earnings ratio (P/E ratio) is the ratio for valuing a company that measures its current share price relative to its per-share earnings (EPS)
* @return peRatio
**/
@jakarta.annotation.Nullable
@ApiModelProperty(example = "26.8057", value = "The price-earnings ratio (P/E ratio) is the ratio for valuing a company that measures its current share price relative to its per-share earnings (EPS)")
@JsonIgnore
public Double getPeRatio() {
return peRatio.orElse(null);
}
@JsonProperty(JSON_PROPERTY_PE_RATIO)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public JsonNullable getPeRatio_JsonNullable() {
return peRatio;
}
@JsonProperty(JSON_PROPERTY_PE_RATIO)
public void setPeRatio_JsonNullable(JsonNullable peRatio) {
this.peRatio = peRatio;
}
public void setPeRatio(Double peRatio) {
this.peRatio = JsonNullable.of(peRatio);
}
/**
* Return true if this Profile object is equal to o.
*/
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
Profile profile = (Profile) o;
return Objects.equals(this.requestId, profile.requestId) &&
Objects.equals(this.error, profile.error) &&
equalsNullable(this.fsymId, profile.fsymId) &&
equalsNullable(this.tickerRegion, profile.tickerRegion) &&
Objects.equals(this.exchange, profile.exchange) &&
equalsNullable(this.name, profile.name) &&
Objects.equals(this.address, profile.address) &&
equalsNullable(this.industryId, profile.industryId) &&
equalsNullable(this.industry, profile.industry) &&
equalsNullable(this.sectorId, profile.sectorId) &&
equalsNullable(this.sector, profile.sector) &&
equalsNullable(this.numberOfEmployees, profile.numberOfEmployees) &&
equalsNullable(this.ceo, profile.ceo) &&
equalsNullable(this.businessSummary, profile.businessSummary) &&
equalsNullable(this.yearFounded, profile.yearFounded) &&
equalsNullable(this.marketCapitalization, profile.marketCapitalization) &&
equalsNullable(this.totalMarketCapitalization, profile.totalMarketCapitalization) &&
equalsNullable(this.sharesOutstanding, profile.sharesOutstanding) &&
equalsNullable(this.peRatio, profile.peRatio);
}
private static boolean equalsNullable(JsonNullable a, JsonNullable b) {
return a == b || (a != null && b != null && a.isPresent() && b.isPresent() && Objects.deepEquals(a.get(), b.get()));
}
@Override
public int hashCode() {
return Objects.hash(requestId, error, hashCodeNullable(fsymId), hashCodeNullable(tickerRegion), exchange, hashCodeNullable(name), address, hashCodeNullable(industryId), hashCodeNullable(industry), hashCodeNullable(sectorId), hashCodeNullable(sector), hashCodeNullable(numberOfEmployees), hashCodeNullable(ceo), hashCodeNullable(businessSummary), hashCodeNullable(yearFounded), hashCodeNullable(marketCapitalization), hashCodeNullable(totalMarketCapitalization), hashCodeNullable(sharesOutstanding), hashCodeNullable(peRatio));
}
private static int hashCodeNullable(JsonNullable a) {
if (a == null) {
return 1;
}
return a.isPresent() ? Arrays.deepHashCode(new Object[]{a.get()}) : 31;
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class Profile {\n");
sb.append(" requestId: ").append(toIndentedString(requestId)).append("\n");
sb.append(" error: ").append(toIndentedString(error)).append("\n");
sb.append(" fsymId: ").append(toIndentedString(fsymId)).append("\n");
sb.append(" tickerRegion: ").append(toIndentedString(tickerRegion)).append("\n");
sb.append(" exchange: ").append(toIndentedString(exchange)).append("\n");
sb.append(" name: ").append(toIndentedString(name)).append("\n");
sb.append(" address: ").append(toIndentedString(address)).append("\n");
sb.append(" industryId: ").append(toIndentedString(industryId)).append("\n");
sb.append(" industry: ").append(toIndentedString(industry)).append("\n");
sb.append(" sectorId: ").append(toIndentedString(sectorId)).append("\n");
sb.append(" sector: ").append(toIndentedString(sector)).append("\n");
sb.append(" numberOfEmployees: ").append(toIndentedString(numberOfEmployees)).append("\n");
sb.append(" ceo: ").append(toIndentedString(ceo)).append("\n");
sb.append(" businessSummary: ").append(toIndentedString(businessSummary)).append("\n");
sb.append(" yearFounded: ").append(toIndentedString(yearFounded)).append("\n");
sb.append(" marketCapitalization: ").append(toIndentedString(marketCapitalization)).append("\n");
sb.append(" totalMarketCapitalization: ").append(toIndentedString(totalMarketCapitalization)).append("\n");
sb.append(" sharesOutstanding: ").append(toIndentedString(sharesOutstanding)).append("\n");
sb.append(" peRatio: ").append(toIndentedString(peRatio)).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 ");
}
}