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

com.factset.sdk.FactSetTickHistory.models.DateTimePeriodMin 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.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;


/**
 *  NOTE:       - The start and end times are processed as the local time of the factsetExchangeCode provided. Please refer to the **Data Model User Guide** for time zone to exchange mappings.    
 */
@ApiModel(description = " NOTE:       - The start and end times are processed as the local time of the factsetExchangeCode provided. Please refer to the **Data Model User Guide** for time zone to exchange mappings.    ")
@JsonPropertyOrder({
  DateTimePeriodMin.JSON_PROPERTY_START,
  DateTimePeriodMin.JSON_PROPERTY_END
})
@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")

public class DateTimePeriodMin implements Serializable {
  private static final long serialVersionUID = 1L;

  public static final String JSON_PROPERTY_START = "start";
  private OffsetDateTime start;

  public static final String JSON_PROPERTY_END = "end";
  private OffsetDateTime end;

  public DateTimePeriodMin() { 
  }

  @JsonCreator
  public DateTimePeriodMin(
    @JsonProperty(value=JSON_PROPERTY_START, required=true) OffsetDateTime start, 
    @JsonProperty(value=JSON_PROPERTY_END, required=true) OffsetDateTime end
  ) {
    this();
    this.start = start;
    this.end = end;
  }

  public DateTimePeriodMin start(OffsetDateTime start) {
    this.start = start;
    return this;
  }

   /**
   * The date for (or from which) the data is required. Supports in YYYY-MM-DDTHH:MM:SSZ format.  
   * @return start
  **/
  @jakarta.annotation.Nonnull
  @ApiModelProperty(example = "2012-01-01T11:00Z", required = true, value = "The date for (or from which) the data is required. Supports in YYYY-MM-DDTHH:MM:SSZ format.  ")
  @JsonProperty(JSON_PROPERTY_START)
  @JsonInclude(value = JsonInclude.Include.ALWAYS)

  public OffsetDateTime getStart() {
    return start;
  }


  @JsonProperty(JSON_PROPERTY_START)
  @JsonInclude(value = JsonInclude.Include.ALWAYS)
  public void setStart(OffsetDateTime start) {
    this.start = start;
  }


  public DateTimePeriodMin end(OffsetDateTime end) {
    this.end = end;
    return this;
  }

   /**
   * The date to which data is required. Supports in YYYY-MM-DDTHH:MM:SSZ format.  
   * @return end
  **/
  @jakarta.annotation.Nonnull
  @ApiModelProperty(example = "2012-01-30T11:20:30Z", required = true, value = "The date to which data is required. Supports in YYYY-MM-DDTHH:MM:SSZ format.  ")
  @JsonProperty(JSON_PROPERTY_END)
  @JsonInclude(value = JsonInclude.Include.ALWAYS)

  public OffsetDateTime getEnd() {
    return end;
  }


  @JsonProperty(JSON_PROPERTY_END)
  @JsonInclude(value = JsonInclude.Include.ALWAYS)
  public void setEnd(OffsetDateTime end) {
    this.end = end;
  }


  /**
   * Return true if this dateTimePeriodMin object is equal to o.
   */
  @Override
  public boolean equals(Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    DateTimePeriodMin dateTimePeriodMin = (DateTimePeriodMin) o;
    return Objects.equals(this.start, dateTimePeriodMin.start) &&
        Objects.equals(this.end, dateTimePeriodMin.end);
  }

  @Override
  public int hashCode() {
    return Objects.hash(start, end);
  }

  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class DateTimePeriodMin {\n");
    sb.append("    start: ").append(toIndentedString(start)).append("\n");
    sb.append("    end: ").append(toIndentedString(end)).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