com.factset.sdk.PAEngine.models.Metadata Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of paengine Show documentation
Show all versions of paengine Show documentation
FactSet SDK for Java - paengine
/*
* PA Engine API
* Allow clients to fetch Analytics through APIs.
*
* The version of the OpenAPI document: 3.16.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.PAEngine.models;
import java.util.Objects;
import java.util.Arrays;
import java.util.Map;
import java.util.HashMap;
import com.factset.sdk.PAEngine.models.PACommentaryDate;
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.PAEngine.JSON;
/**
* Metadata
*/
@JsonPropertyOrder({
Metadata.JSON_PROPERTY_TILE_NAME,
Metadata.JSON_PROPERTY_PORTFOLIO_DESCRIPTION,
Metadata.JSON_PROPERTY_BENCHMARK_DESCRIPTION,
Metadata.JSON_PROPERTY_START_DATE,
Metadata.JSON_PROPERTY_END_DATE,
Metadata.JSON_PROPERTY_FREQUENCY
})
@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
public class Metadata implements Serializable {
private static final long serialVersionUID = 1L;
public static final String JSON_PROPERTY_TILE_NAME = "tileName";
private JsonNullable tileName = JsonNullable.undefined();
public static final String JSON_PROPERTY_PORTFOLIO_DESCRIPTION = "portfolioDescription";
private JsonNullable portfolioDescription = JsonNullable.undefined();
public static final String JSON_PROPERTY_BENCHMARK_DESCRIPTION = "benchmarkDescription";
private JsonNullable benchmarkDescription = JsonNullable.undefined();
public static final String JSON_PROPERTY_START_DATE = "startDate";
private PACommentaryDate startDate;
public static final String JSON_PROPERTY_END_DATE = "endDate";
private PACommentaryDate endDate;
public static final String JSON_PROPERTY_FREQUENCY = "frequency";
private JsonNullable frequency = JsonNullable.undefined();
public Metadata() {
}
public Metadata tileName(String tileName) {
this.tileName = JsonNullable.of(tileName);
return this;
}
/**
* PA Tile name associated with the component
* @return tileName
**/
@jakarta.annotation.Nullable
@ApiModelProperty(value = "PA Tile name associated with the component")
@JsonIgnore
public String getTileName() {
return tileName.orElse(null);
}
@JsonProperty(JSON_PROPERTY_TILE_NAME)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public JsonNullable getTileName_JsonNullable() {
return tileName;
}
@JsonProperty(JSON_PROPERTY_TILE_NAME)
public void setTileName_JsonNullable(JsonNullable tileName) {
this.tileName = tileName;
}
public void setTileName(String tileName) {
this.tileName = JsonNullable.of(tileName);
}
public Metadata portfolioDescription(String portfolioDescription) {
this.portfolioDescription = JsonNullable.of(portfolioDescription);
return this;
}
/**
* Portfolio name used in generating commentary
* @return portfolioDescription
**/
@jakarta.annotation.Nullable
@ApiModelProperty(value = "Portfolio name used in generating commentary")
@JsonIgnore
public String getPortfolioDescription() {
return portfolioDescription.orElse(null);
}
@JsonProperty(JSON_PROPERTY_PORTFOLIO_DESCRIPTION)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public JsonNullable getPortfolioDescription_JsonNullable() {
return portfolioDescription;
}
@JsonProperty(JSON_PROPERTY_PORTFOLIO_DESCRIPTION)
public void setPortfolioDescription_JsonNullable(JsonNullable portfolioDescription) {
this.portfolioDescription = portfolioDescription;
}
public void setPortfolioDescription(String portfolioDescription) {
this.portfolioDescription = JsonNullable.of(portfolioDescription);
}
public Metadata benchmarkDescription(String benchmarkDescription) {
this.benchmarkDescription = JsonNullable.of(benchmarkDescription);
return this;
}
/**
* Benchmark name used in generating commentary
* @return benchmarkDescription
**/
@jakarta.annotation.Nullable
@ApiModelProperty(value = "Benchmark name used in generating commentary")
@JsonIgnore
public String getBenchmarkDescription() {
return benchmarkDescription.orElse(null);
}
@JsonProperty(JSON_PROPERTY_BENCHMARK_DESCRIPTION)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public JsonNullable getBenchmarkDescription_JsonNullable() {
return benchmarkDescription;
}
@JsonProperty(JSON_PROPERTY_BENCHMARK_DESCRIPTION)
public void setBenchmarkDescription_JsonNullable(JsonNullable benchmarkDescription) {
this.benchmarkDescription = benchmarkDescription;
}
public void setBenchmarkDescription(String benchmarkDescription) {
this.benchmarkDescription = JsonNullable.of(benchmarkDescription);
}
public Metadata startDate(PACommentaryDate startDate) {
this.startDate = startDate;
return this;
}
/**
* Get startDate
* @return startDate
**/
@jakarta.annotation.Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_START_DATE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public PACommentaryDate getStartDate() {
return startDate;
}
@JsonProperty(JSON_PROPERTY_START_DATE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setStartDate(PACommentaryDate startDate) {
this.startDate = startDate;
}
public Metadata endDate(PACommentaryDate endDate) {
this.endDate = endDate;
return this;
}
/**
* Get endDate
* @return endDate
**/
@jakarta.annotation.Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_END_DATE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public PACommentaryDate getEndDate() {
return endDate;
}
@JsonProperty(JSON_PROPERTY_END_DATE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setEndDate(PACommentaryDate endDate) {
this.endDate = endDate;
}
public Metadata frequency(String frequency) {
this.frequency = JsonNullable.of(frequency);
return this;
}
/**
* Date frequency
* @return frequency
**/
@jakarta.annotation.Nullable
@ApiModelProperty(value = "Date frequency")
@JsonIgnore
public String getFrequency() {
return frequency.orElse(null);
}
@JsonProperty(JSON_PROPERTY_FREQUENCY)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public JsonNullable getFrequency_JsonNullable() {
return frequency;
}
@JsonProperty(JSON_PROPERTY_FREQUENCY)
public void setFrequency_JsonNullable(JsonNullable frequency) {
this.frequency = frequency;
}
public void setFrequency(String frequency) {
this.frequency = JsonNullable.of(frequency);
}
/**
* Return true if this Metadata object is equal to o.
*/
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
Metadata metadata = (Metadata) o;
return equalsNullable(this.tileName, metadata.tileName) &&
equalsNullable(this.portfolioDescription, metadata.portfolioDescription) &&
equalsNullable(this.benchmarkDescription, metadata.benchmarkDescription) &&
Objects.equals(this.startDate, metadata.startDate) &&
Objects.equals(this.endDate, metadata.endDate) &&
equalsNullable(this.frequency, metadata.frequency);
}
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(hashCodeNullable(tileName), hashCodeNullable(portfolioDescription), hashCodeNullable(benchmarkDescription), startDate, endDate, hashCodeNullable(frequency));
}
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 Metadata {\n");
sb.append(" tileName: ").append(toIndentedString(tileName)).append("\n");
sb.append(" portfolioDescription: ").append(toIndentedString(portfolioDescription)).append("\n");
sb.append(" benchmarkDescription: ").append(toIndentedString(benchmarkDescription)).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("}");
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 ");
}
}