Package com.veeroute.lss.studio.model
Class TransportShift
java.lang.Object
com.veeroute.lss.studio.model.TransportShift
@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 TransportShift
extends Object
Working shift of transport. Specifies the availability of transport for scheduling. The end of the shift resets the cargo remaining in the body after the execution of demands of the `DROP_FROM_BOX` and `PICKUP_TO_BOX` types.
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddAttributesItem(Attribute attributesItem) attributes(Set<Attribute> attributes) availabilityTime(TimeWindow availabilityTime) booleanfinishLocationKey(String finishLocationKey) static TransportShiftCreate an instance of TransportShift given an JSON stringReturn the additional (undeclared) property.Return the additional (undeclared) property with the specified name.Attributes.The shift time window in which the transport can move between locations and be used by the performer in work on locations.Finish location key.getKey()Shift key, unique identifier.getName()Name, information field.Start location key.Get tariffinthashCode()putAdditionalProperty(String key, Object value) Set the additional (undeclared) property with the specified name and value.voidsetAttributes(Set<Attribute> attributes) voidsetAvailabilityTime(TimeWindow availabilityTime) voidsetFinishLocationKey(String finishLocationKey) voidvoidvoidsetStartLocationKey(String startLocationKey) voidsetTariff(TransportTariff tariff) startLocationKey(String startLocationKey) tariff(TransportTariff tariff) toJson()Convert an instance of TransportShift 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_AVAILABILITY_TIME
- See Also:
-
SERIALIZED_NAME_START_LOCATION_KEY
- See Also:
-
SERIALIZED_NAME_FINISH_LOCATION_KEY
- See Also:
-
SERIALIZED_NAME_TARIFF
- See Also:
-
SERIALIZED_NAME_NAME
- See Also:
-
SERIALIZED_NAME_ATTRIBUTES
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
TransportShift
public TransportShift()
-
-
Method Details
-
key
-
getKey
Shift key, unique identifier.- Returns:
- key
-
setKey
-
availabilityTime
-
getAvailabilityTime
The shift time window in which the transport can move between locations and be used by the performer in work on locations.- Returns:
- availabilityTime
-
setAvailabilityTime
-
startLocationKey
-
getStartLocationKey
Start location key. If the key is not set, then the transport path starts on the first order.- Returns:
- startLocationKey
-
setStartLocationKey
-
finishLocationKey
-
getFinishLocationKey
Finish location key. If the key is not set, then the transport path ends at the last order.- Returns:
- finishLocationKey
-
setFinishLocationKey
-
tariff
-
getTariff
Get tariff- Returns:
- tariff
-
setTariff
-
name
-
getName
Name, information field.- Returns:
- name
-
setName
-
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 TransportShift 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 TransportShift
-
fromJson
Create an instance of TransportShift given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of TransportShift
- Throws:
IOException- if the JSON string is invalid with respect to TransportShift
-
toJson
Convert an instance of TransportShift to an JSON string- Returns:
- JSON string
-