Class LegacyClock
java.lang.Object
markets.alpaca.client.openapi.broker.model.LegacyClock
- All Implemented Interfaces:
Serializable
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
comments="Generator version: 7.23.0")
public class LegacyClock
extends Object
implements Serializable
LegacyClock
- See Also:
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanstatic LegacyClockCreate an instance of LegacyClock given an JSON stringReturn the additional (undeclared) property.Return the additional (undeclared) property with the specified name.Whether or not the market is open.Next market close timestamp.Next market open timestamp.Current timestamp.inthashCode()nextClose(OffsetDateTime nextClose) nextOpen(OffsetDateTime nextOpen) putAdditionalProperty(String key, Object value) Set the additional (undeclared) property with the specified name and value.voidvoidsetNextClose(OffsetDateTime nextClose) voidsetNextOpen(OffsetDateTime nextOpen) voidsetTimestamp(OffsetDateTime timestamp) timestamp(OffsetDateTime timestamp) toJson()Convert an instance of LegacyClock to an JSON stringtoString()static voidvalidateJsonElement(com.google.gson.JsonElement jsonElement) Validates the JSON Element and throws an exception if issues found
-
Field Details
-
SERIALIZED_NAME_IS_OPEN
- See Also:
-
SERIALIZED_NAME_NEXT_CLOSE
- See Also:
-
SERIALIZED_NAME_NEXT_OPEN
- See Also:
-
SERIALIZED_NAME_TIMESTAMP
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
LegacyClock
public LegacyClock()
-
-
Method Details
-
isOpen
-
getIsOpen
Whether or not the market is open.- Returns:
- isOpen
-
setIsOpen
-
nextClose
-
getNextClose
Next market close timestamp.- Returns:
- nextClose
-
setNextClose
-
nextOpen
-
getNextOpen
Next market open timestamp.- Returns:
- nextOpen
-
setNextOpen
-
timestamp
-
getTimestamp
Current timestamp.- Returns:
- timestamp
-
setTimestamp
-
putAdditionalProperty
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 propertyvalue- value of the property- Returns:
- the LegacyClock instance itself
-
getAdditionalProperties
Return the additional (undeclared) property.- Returns:
- a map of objects
-
getAdditionalProperty
Return the additional (undeclared) property with the specified name.- Parameters:
key- name of the property- Returns:
- an object
-
equals
-
hashCode
public int hashCode() -
toString
-
validateJsonElement
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 LegacyClock
-
fromJson
Create an instance of LegacyClock given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of LegacyClock
- Throws:
IOException- if the JSON string is invalid with respect to LegacyClock
-
toJson
Convert an instance of LegacyClock to an JSON string- Returns:
- JSON string
-