Class CalendarDay

java.lang.Object
markets.alpaca.client.openapi.broker.model.CalendarDay
All Implemented Interfaces:
Serializable

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

  • Constructor Details

    • CalendarDay

      public CalendarDay()
  • Method Details

    • coreEnd

      public CalendarDay coreEnd(@Nonnull OffsetDateTime coreEnd)
    • getCoreEnd

      @Nonnull public OffsetDateTime getCoreEnd()
      The end time of the core market session.
      Returns:
      coreEnd
    • setCoreEnd

      public void setCoreEnd(@Nonnull OffsetDateTime coreEnd)
    • coreStart

      public CalendarDay coreStart(@Nonnull OffsetDateTime coreStart)
    • getCoreStart

      @Nonnull public OffsetDateTime getCoreStart()
      The start time of the core market session.
      Returns:
      coreStart
    • setCoreStart

      public void setCoreStart(@Nonnull OffsetDateTime coreStart)
    • date

      public CalendarDay date(@Nonnull LocalDate date)
    • getDate

      @Nonnull public LocalDate getDate()
      The date of the calendar day.
      Returns:
      date
    • setDate

      public void setDate(@Nonnull LocalDate date)
    • lunchEnd

      public CalendarDay lunchEnd(@Nullable OffsetDateTime lunchEnd)
    • getLunchEnd

      @Nullable public OffsetDateTime getLunchEnd()
      The end time of the lunch session.
      Returns:
      lunchEnd
    • setLunchEnd

      public void setLunchEnd(@Nullable OffsetDateTime lunchEnd)
    • lunchStart

      public CalendarDay lunchStart(@Nullable OffsetDateTime lunchStart)
    • getLunchStart

      @Nullable public OffsetDateTime getLunchStart()
      The start time of the lunch session.
      Returns:
      lunchStart
    • setLunchStart

      public void setLunchStart(@Nullable OffsetDateTime lunchStart)
    • postEnd

      public CalendarDay postEnd(@Nullable OffsetDateTime postEnd)
    • getPostEnd

      @Nullable public OffsetDateTime getPostEnd()
      The end time of the after-hours session.
      Returns:
      postEnd
    • setPostEnd

      public void setPostEnd(@Nullable OffsetDateTime postEnd)
    • postStart

      public CalendarDay postStart(@Nullable OffsetDateTime postStart)
    • getPostStart

      @Nullable public OffsetDateTime getPostStart()
      The start time of the after-hours session.
      Returns:
      postStart
    • setPostStart

      public void setPostStart(@Nullable OffsetDateTime postStart)
    • preEnd

      public CalendarDay preEnd(@Nullable OffsetDateTime preEnd)
    • getPreEnd

      @Nullable public OffsetDateTime getPreEnd()
      The end time of the pre-market session.
      Returns:
      preEnd
    • setPreEnd

      public void setPreEnd(@Nullable OffsetDateTime preEnd)
    • preStart

      public CalendarDay preStart(@Nullable OffsetDateTime preStart)
    • getPreStart

      @Nullable public OffsetDateTime getPreStart()
      The start time of the pre-market session.
      Returns:
      preStart
    • setPreStart

      public void setPreStart(@Nullable OffsetDateTime preStart)
    • settlementDate

      public CalendarDay settlementDate(@Nullable LocalDate settlementDate)
    • getSettlementDate

      @Nullable public LocalDate getSettlementDate()
      The settlement date.
      Returns:
      settlementDate
    • setSettlementDate

      public void setSettlementDate(@Nullable LocalDate settlementDate)
    • putAdditionalProperty

      public CalendarDay 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 CalendarDay 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 CalendarDay
    • fromJson

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

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