com.factset.sdk.FactSetTickHistory.models.TickData Maven / Gradle / Ivy
/*
* Tick History
* Tick History provides dynamic access to historical tick data for a specific security for specific dates or date range.
*
* The version of the OpenAPI document: 2.3.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.FactSetTickHistory.models;
import java.util.Objects;
import java.util.Arrays;
import java.util.Map;
import java.util.HashMap;
import com.factset.sdk.FactSetTickHistory.models.Files;
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.OffsetDateTime;
import java.io.Serializable;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
import com.factset.sdk.FactSetTickHistory.JSON;
/**
* Returns Tick History Response.
*/
@ApiModel(description = " Returns Tick History Response.")
@JsonPropertyOrder({
TickData.JSON_PROPERTY_REQUEST_TIMESTAMP,
TickData.JSON_PROPERTY_UPDATE_TIMESTAMP,
TickData.JSON_PROPERTY_NOT_AUTHORIZED_TICKERS,
TickData.JSON_PROPERTY_INVALID_TICKERS,
TickData.JSON_PROPERTY_LIST_OF_FILES
})
@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
public class TickData implements Serializable {
private static final long serialVersionUID = 1L;
public static final String JSON_PROPERTY_REQUEST_TIMESTAMP = "requestTimestamp";
private OffsetDateTime requestTimestamp;
public static final String JSON_PROPERTY_UPDATE_TIMESTAMP = "updateTimestamp";
private OffsetDateTime updateTimestamp;
public static final String JSON_PROPERTY_NOT_AUTHORIZED_TICKERS = "notAuthorizedTickers";
private java.util.List notAuthorizedTickers = null;
public static final String JSON_PROPERTY_INVALID_TICKERS = "invalidTickers";
private java.util.List invalidTickers = null;
public static final String JSON_PROPERTY_LIST_OF_FILES = "listOfFiles";
private java.util.List listOfFiles = null;
public TickData() {
}
public TickData requestTimestamp(OffsetDateTime requestTimestamp) {
this.requestTimestamp = requestTimestamp;
return this;
}
/**
* Timestamp of when request was made
* @return requestTimestamp
**/
@jakarta.annotation.Nullable
@ApiModelProperty(value = "Timestamp of when request was made")
@JsonProperty(JSON_PROPERTY_REQUEST_TIMESTAMP)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public OffsetDateTime getRequestTimestamp() {
return requestTimestamp;
}
@JsonProperty(JSON_PROPERTY_REQUEST_TIMESTAMP)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setRequestTimestamp(OffsetDateTime requestTimestamp) {
this.requestTimestamp = requestTimestamp;
}
public TickData updateTimestamp(OffsetDateTime updateTimestamp) {
this.updateTimestamp = updateTimestamp;
return this;
}
/**
* Timestamp when the file was last updated
* @return updateTimestamp
**/
@jakarta.annotation.Nullable
@ApiModelProperty(value = "Timestamp when the file was last updated")
@JsonProperty(JSON_PROPERTY_UPDATE_TIMESTAMP)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public OffsetDateTime getUpdateTimestamp() {
return updateTimestamp;
}
@JsonProperty(JSON_PROPERTY_UPDATE_TIMESTAMP)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setUpdateTimestamp(OffsetDateTime updateTimestamp) {
this.updateTimestamp = updateTimestamp;
}
public TickData notAuthorizedTickers(java.util.List notAuthorizedTickers) {
this.notAuthorizedTickers = notAuthorizedTickers;
return this;
}
public TickData addNotAuthorizedTickersItem(String notAuthorizedTickersItem) {
if (this.notAuthorizedTickers == null) {
this.notAuthorizedTickers = new java.util.ArrayList<>();
}
this.notAuthorizedTickers.add(notAuthorizedTickersItem);
return this;
}
/**
* Returns not Authorized Tickers
* @return notAuthorizedTickers
**/
@jakarta.annotation.Nullable
@ApiModelProperty(value = "Returns not Authorized Tickers")
@JsonProperty(JSON_PROPERTY_NOT_AUTHORIZED_TICKERS)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public java.util.List getNotAuthorizedTickers() {
return notAuthorizedTickers;
}
@JsonProperty(JSON_PROPERTY_NOT_AUTHORIZED_TICKERS)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setNotAuthorizedTickers(java.util.List notAuthorizedTickers) {
this.notAuthorizedTickers = notAuthorizedTickers;
}
public TickData invalidTickers(java.util.List invalidTickers) {
this.invalidTickers = invalidTickers;
return this;
}
public TickData addInvalidTickersItem(String invalidTickersItem) {
if (this.invalidTickers == null) {
this.invalidTickers = new java.util.ArrayList<>();
}
this.invalidTickers.add(invalidTickersItem);
return this;
}
/**
* Returns invalid Tickers
* @return invalidTickers
**/
@jakarta.annotation.Nullable
@ApiModelProperty(value = "Returns invalid Tickers")
@JsonProperty(JSON_PROPERTY_INVALID_TICKERS)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public java.util.List getInvalidTickers() {
return invalidTickers;
}
@JsonProperty(JSON_PROPERTY_INVALID_TICKERS)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setInvalidTickers(java.util.List invalidTickers) {
this.invalidTickers = invalidTickers;
}
public TickData listOfFiles(java.util.List listOfFiles) {
this.listOfFiles = listOfFiles;
return this;
}
public TickData addListOfFilesItem(Files listOfFilesItem) {
if (this.listOfFiles == null) {
this.listOfFiles = new java.util.ArrayList<>();
}
this.listOfFiles.add(listOfFilesItem);
return this;
}
/**
* Contains list of Files
* @return listOfFiles
**/
@jakarta.annotation.Nullable
@ApiModelProperty(value = "Contains list of Files")
@JsonProperty(JSON_PROPERTY_LIST_OF_FILES)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public java.util.List getListOfFiles() {
return listOfFiles;
}
@JsonProperty(JSON_PROPERTY_LIST_OF_FILES)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setListOfFiles(java.util.List listOfFiles) {
this.listOfFiles = listOfFiles;
}
/**
* Return true if this TickData object is equal to o.
*/
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
TickData tickData = (TickData) o;
return Objects.equals(this.requestTimestamp, tickData.requestTimestamp) &&
Objects.equals(this.updateTimestamp, tickData.updateTimestamp) &&
Objects.equals(this.notAuthorizedTickers, tickData.notAuthorizedTickers) &&
Objects.equals(this.invalidTickers, tickData.invalidTickers) &&
Objects.equals(this.listOfFiles, tickData.listOfFiles);
}
@Override
public int hashCode() {
return Objects.hash(requestTimestamp, updateTimestamp, notAuthorizedTickers, invalidTickers, listOfFiles);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class TickData {\n");
sb.append(" requestTimestamp: ").append(toIndentedString(requestTimestamp)).append("\n");
sb.append(" updateTimestamp: ").append(toIndentedString(updateTimestamp)).append("\n");
sb.append(" notAuthorizedTickers: ").append(toIndentedString(notAuthorizedTickers)).append("\n");
sb.append(" invalidTickers: ").append(toIndentedString(invalidTickers)).append("\n");
sb.append(" listOfFiles: ").append(toIndentedString(listOfFiles)).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 ");
}
}