Package com.veeroute.lss.studio.model
Class Fact
java.lang.Object
com.veeroute.lss.studio.model.Fact
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
date="2026-11-23T13:47:57.513559297+03:00[Europe/Moscow]",
comments="Generator version: 7.17.0")
public class Fact
extends Object
Fact is an action completed during the execution of a trip.
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionFact()Fact(OffsetDateTime receptionDate, OffsetDateTime executionDate, FactStatusError statusError) -
Method Summary
Modifier and TypeMethodDescriptionaddAttributesItem(Attribute attributesItem) attributes(Set<Attribute> attributes) creationDate(OffsetDateTime creationDate) booleanstatic FactCreate an instance of Fact given an JSON stringReturn the additional (undeclared) property.Return the additional (undeclared) property with the specified name.Attributes.Fact creation date and time in the [ISO 8601](https://tools.ietf.org/html/rfc3339#section-5.6) format.Date and time of execution the fact by the server in the [ISO 8601](https://tools.ietf.org/html/rfc3339#section-5.6) format.getKey()Fact key.getLore()Get loreDate and time of receipt of the fact by the server in the [ISO 8601](https://tools.ietf.org/html/rfc3339#section-5.6) format.Get statusAdditional information about the fact status, used to clarify fact processing errors.Get statusErrorTrip key, unique identifier.getType()Get typeinthashCode()putAdditionalProperty(String key, Object value) Set the additional (undeclared) property with the specified name and value.voidsetAttributes(Set<Attribute> attributes) voidsetCreationDate(OffsetDateTime creationDate) voidvoidvoidsetStatus(FactStatus status) voidsetStatusDetail(String statusDetail) voidsetTripKey(String tripKey) voidstatus(FactStatus status) statusDetail(String statusDetail) toJson()Convert an instance of Fact 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_KEY
- See Also:
-
SERIALIZED_NAME_TYPE
- See Also:
-
SERIALIZED_NAME_CREATION_DATE
- See Also:
-
SERIALIZED_NAME_RECEPTION_DATE
- See Also:
-
SERIALIZED_NAME_EXECUTION_DATE
- See Also:
-
SERIALIZED_NAME_STATUS
- See Also:
-
SERIALIZED_NAME_STATUS_ERROR
- See Also:
-
SERIALIZED_NAME_STATUS_DETAIL
- See Also:
-
SERIALIZED_NAME_TRIP_KEY
- See Also:
-
SERIALIZED_NAME_LORE
- See Also:
-
SERIALIZED_NAME_ATTRIBUTES
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
Fact
public Fact() -
Fact
public Fact(OffsetDateTime receptionDate, OffsetDateTime executionDate, FactStatusError statusError)
-
-
Method Details
-
key
-
getKey
Fact key.- Returns:
- key
-
setKey
-
type
-
getType
Get type- Returns:
- type
-
setType
-
creationDate
-
getCreationDate
Fact creation date and time in the [ISO 8601](https://tools.ietf.org/html/rfc3339#section-5.6) format.- Returns:
- creationDate
-
setCreationDate
-
getReceptionDate
Date and time of receipt of the fact by the server in the [ISO 8601](https://tools.ietf.org/html/rfc3339#section-5.6) format.- Returns:
- receptionDate
-
getExecutionDate
Date and time of execution the fact by the server in the [ISO 8601](https://tools.ietf.org/html/rfc3339#section-5.6) format.- Returns:
- executionDate
-
status
-
getStatus
Get status- Returns:
- status
-
setStatus
-
getStatusError
Get statusError- Returns:
- statusError
-
statusDetail
-
getStatusDetail
Additional information about the fact status, used to clarify fact processing errors.- Returns:
- statusDetail
-
setStatusDetail
-
tripKey
-
getTripKey
Trip key, unique identifier.- Returns:
- tripKey
-
setTripKey
-
lore
-
getLore
Get lore- Returns:
- lore
-
setLore
-
attributes
-
addAttributesItem
-
getAttributes
Attributes. Used to add service information.- Returns:
- attributes
-
setAttributes
-
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 Fact 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 Fact
-
fromJson
Create an instance of Fact given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of Fact
- Throws:
IOException- if the JSON string is invalid with respect to Fact
-
toJson
Convert an instance of Fact to an JSON string- Returns:
- JSON string
-