Class LegacyCalendarDay

java.lang.Object
markets.alpaca.client.openapi.trading.model.LegacyCalendarDay
All Implemented Interfaces:
Serializable

@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", comments="Generator version: 7.23.0") public class LegacyCalendarDay extends Object implements Serializable
A calendar day.
See Also:
  • Field Details

  • Constructor Details

    • LegacyCalendarDay

      public LegacyCalendarDay()
  • Method Details

    • close

      public LegacyCalendarDay close(@Nonnull String close)
    • getClose

      @Nonnull public String getClose()
      The time the market closes at on this date in HH:MM format.
      Returns:
      close
    • setClose

      public void setClose(@Nonnull String close)
    • date

      public LegacyCalendarDay date(@Nonnull LocalDate date)
    • getDate

      @Nonnull public LocalDate getDate()
      Date string in YYYY-MM-DD format.
      Returns:
      date
    • setDate

      public void setDate(@Nonnull LocalDate date)
    • open

      public LegacyCalendarDay open(@Nonnull String open)
    • getOpen

      @Nonnull public String getOpen()
      The time the market opens at on this date in HH:MM format.
      Returns:
      open
    • setOpen

      public void setOpen(@Nonnull String open)
    • sessionClose

      public LegacyCalendarDay sessionClose(@Nonnull String sessionClose)
    • getSessionClose

      @Nonnull public String getSessionClose()
      The time the session closes at on this date in HHMM format.
      Returns:
      sessionClose
    • setSessionClose

      public void setSessionClose(@Nonnull String sessionClose)
    • sessionOpen

      public LegacyCalendarDay sessionOpen(@Nonnull String sessionOpen)
    • getSessionOpen

      @Nonnull public String getSessionOpen()
      The time the session opens at on this date in HHMM format.
      Returns:
      sessionOpen
    • setSessionOpen

      public void setSessionOpen(@Nonnull String sessionOpen)
    • settlementDate

      public LegacyCalendarDay settlementDate(@Nonnull LocalDate settlementDate)
    • getSettlementDate

      @Nonnull public LocalDate getSettlementDate()
      Date string in YYYY-MM-DD format. Representing the settlement date for the trade date.
      Returns:
      settlementDate
    • setSettlementDate

      public void setSettlementDate(@Nonnull LocalDate settlementDate)
    • putAdditionalProperty

      public LegacyCalendarDay putAdditionalProperty(String key, Object value)
      Set the additional (undeclared) property with the specified name and value. If the property does not already exist, create it otherwise replace it.
      Parameters:
      key - name of the property
      value - value of the property
      Returns:
      the LegacyCalendarDay instance itself
    • getAdditionalProperties

      public Map<String,Object> getAdditionalProperties()
      Return the additional (undeclared) property.
      Returns:
      a map of objects
    • getAdditionalProperty

      public Object getAdditionalProperty(String key)
      Return the additional (undeclared) property with the specified name.
      Parameters:
      key - name of the property
      Returns:
      an object
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • validateJsonElement

      public static void validateJsonElement(com.google.gson.JsonElement jsonElement) throws IOException
      Validates the JSON Element and throws an exception if issues found
      Parameters:
      jsonElement - JSON Element
      Throws:
      IOException - if the JSON Element is invalid with respect to LegacyCalendarDay
    • fromJson

      public static LegacyCalendarDay fromJson(String jsonString) throws IOException
      Create an instance of LegacyCalendarDay given an JSON string
      Parameters:
      jsonString - JSON string
      Returns:
      An instance of LegacyCalendarDay
      Throws:
      IOException - if the JSON string is invalid with respect to LegacyCalendarDay
    • toJson

      public String toJson()
      Convert an instance of LegacyCalendarDay to an JSON string
      Returns:
      JSON string