Package com.veeroute.lss.studio.model
Class Trip
java.lang.Object
com.veeroute.lss.studio.model.Trip
@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 Trip
extends Object
A trip is a set of works planned to be performed by a specific performer on a specific transport, expressed through a [change in the states](#/section/description/trip-model) of the performer.
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddAttributesItem(Attribute attributesItem) addStatesItem(TripState statesItem) addWaitlistItem(String waitlistItem) attributes(Set<Attribute> attributes) booleanstatic TripCreate an instance of Trip given an JSON stringReturn the additional (undeclared) property.Return the additional (undeclared) property with the specified name.Attributes.getKey()Trip key, unique identifier.getName()Name, information field.Get performerList of performer's states.Get statusGet transportList of order keys assigned to the performer, but not scheduled for a specific time and not taken into account in the transport load.inthashCode()performer(AssignedPerformer performer) putAdditionalProperty(String key, Object value) Set the additional (undeclared) property with the specified name and value.voidsetAttributes(Set<Attribute> attributes) voidvoidvoidsetPerformer(AssignedPerformer performer) voidvoidsetStatus(TripStatus status) voidsetTransport(AssignedTransport transport) voidsetWaitlist(Set<String> waitlist) status(TripStatus status) toJson()Convert an instance of Trip to an JSON stringtoString()transport(AssignedTransport transport) 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_PERFORMER
- See Also:
-
SERIALIZED_NAME_TRANSPORT
- See Also:
-
SERIALIZED_NAME_STATES
- See Also:
-
SERIALIZED_NAME_WAITLIST
- See Also:
-
SERIALIZED_NAME_NAME
- See Also:
-
SERIALIZED_NAME_STATUS
- See Also:
-
SERIALIZED_NAME_ATTRIBUTES
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
Trip
public Trip()
-
-
Method Details
-
key
-
getKey
Trip key, unique identifier.- Returns:
- key
-
setKey
-
performer
-
getPerformer
Get performer- Returns:
- performer
-
setPerformer
-
transport
-
getTransport
Get transport- Returns:
- transport
-
setTransport
-
states
-
addStatesItem
-
getStates
List of performer's states.- Returns:
- states
-
setStates
-
waitlist
-
addWaitlistItem
-
getWaitlist
List of order keys assigned to the performer, but not scheduled for a specific time and not taken into account in the transport load.- Returns:
- waitlist
-
setWaitlist
-
name
-
getName
Name, information field.- Returns:
- name
-
setName
-
status
-
getStatus
Get status- Returns:
- status
-
setStatus
-
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 Trip 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 Trip
-
fromJson
Create an instance of Trip given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of Trip
- Throws:
IOException- if the JSON string is invalid with respect to Trip
-
toJson
Convert an instance of Trip to an JSON string- Returns:
- JSON string
-