Class Clock
java.lang.Object
markets.alpaca.client.openapi.trading.model.Clock
- All Implemented Interfaces:
Serializable
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
comments="Generator version: 7.23.0")
public class Clock
extends Object
implements Serializable
Clock
- See Also:
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanstatic ClockCreate an instance of Clock given an JSON stringReturn the additional (undeclared) property.Return the additional (undeclared) property with the specified name.Whether the clock is on a market day.Get marketNext market close timestampNext market open timestampgetPhase()Get phaseThe end of the current phase.The time on the clock.inthashCode()isMarketDay(Boolean isMarketDay) market(PublicMarket market) nextMarketClose(OffsetDateTime nextMarketClose) nextMarketOpen(OffsetDateTime nextMarketOpen) phaseUntil(OffsetDateTime phaseUntil) putAdditionalProperty(String key, Object value) Set the additional (undeclared) property with the specified name and value.voidsetIsMarketDay(Boolean isMarketDay) voidsetMarket(PublicMarket market) voidsetNextMarketClose(OffsetDateTime nextMarketClose) voidsetNextMarketOpen(OffsetDateTime nextMarketOpen) voidvoidsetPhaseUntil(OffsetDateTime phaseUntil) voidsetTimestamp(OffsetDateTime timestamp) timestamp(OffsetDateTime timestamp) toJson()Convert an instance of Clock 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_MARKET_DAY
- See Also:
-
SERIALIZED_NAME_MARKET
- See Also:
-
SERIALIZED_NAME_NEXT_MARKET_CLOSE
- See Also:
-
SERIALIZED_NAME_NEXT_MARKET_OPEN
- See Also:
-
SERIALIZED_NAME_PHASE
- See Also:
-
SERIALIZED_NAME_PHASE_UNTIL
- See Also:
-
SERIALIZED_NAME_TIMESTAMP
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
Clock
public Clock()
-
-
Method Details
-
isMarketDay
-
getIsMarketDay
Whether the clock is on a market day.- Returns:
- isMarketDay
-
setIsMarketDay
-
market
-
getMarket
Get market- Returns:
- market
-
setMarket
-
nextMarketClose
-
getNextMarketClose
Next market close timestamp- Returns:
- nextMarketClose
-
setNextMarketClose
-
nextMarketOpen
-
getNextMarketOpen
Next market open timestamp- Returns:
- nextMarketOpen
-
setNextMarketOpen
-
phase
-
getPhase
Get phase- Returns:
- phase
-
setPhase
-
phaseUntil
-
getPhaseUntil
The end of the current phase.- Returns:
- phaseUntil
-
setPhaseUntil
-
timestamp
-
getTimestamp
The time on the clock.- 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 Clock 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 Clock
-
fromJson
Create an instance of Clock given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of Clock
- Throws:
IOException- if the JSON string is invalid with respect to Clock
-
toJson
Convert an instance of Clock to an JSON string- Returns:
- JSON string
-