Package com.veeroute.lss.studio.model
Class WorkAndRestRules
java.lang.Object
com.veeroute.lss.studio.model.WorkAndRestRules
@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 WorkAndRestRules
extends Object
Performer's work and rest rules.
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddIgnoreLocationKeysItem(String ignoreLocationKeysItem) addResetLocationKeysItem(String resetLocationKeysItem) breakRules(BreakRules breakRules) booleanstatic WorkAndRestRulesCreate an instance of WorkAndRestRules given an JSON stringReturn the additional (undeclared) property.Return the additional (undeclared) property with the specified name.Get breakRulesList of location keys whose stay is not taken into account in the total trip execution time counter.A list of locations keys in which the counters for breaks and rest are reset when located.Get restRulesinthashCode()ignoreLocationKeys(List<String> ignoreLocationKeys) putAdditionalProperty(String key, Object value) Set the additional (undeclared) property with the specified name and value.resetLocationKeys(List<String> resetLocationKeys) voidsetBreakRules(BreakRules breakRules) voidsetIgnoreLocationKeys(List<String> ignoreLocationKeys) voidsetResetLocationKeys(List<String> resetLocationKeys) voidsetRestRules(RestRules restRules) toJson()Convert an instance of WorkAndRestRules 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_REST_RULES
- See Also:
-
SERIALIZED_NAME_BREAK_RULES
- See Also:
-
SERIALIZED_NAME_RESET_LOCATION_KEYS
- See Also:
-
SERIALIZED_NAME_IGNORE_LOCATION_KEYS
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
WorkAndRestRules
public WorkAndRestRules()
-
-
Method Details
-
restRules
-
getRestRules
Get restRules- Returns:
- restRules
-
setRestRules
-
breakRules
-
getBreakRules
Get breakRules- Returns:
- breakRules
-
setBreakRules
-
resetLocationKeys
-
addResetLocationKeysItem
-
getResetLocationKeys
A list of locations keys in which the counters for breaks and rest are reset when located.- Returns:
- resetLocationKeys
-
setResetLocationKeys
-
ignoreLocationKeys
-
addIgnoreLocationKeysItem
-
getIgnoreLocationKeys
List of location keys whose stay is not taken into account in the total trip execution time counter.- Returns:
- ignoreLocationKeys
-
setIgnoreLocationKeys
-
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 WorkAndRestRules 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 WorkAndRestRules
-
fromJson
Create an instance of WorkAndRestRules given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of WorkAndRestRules
- Throws:
IOException- if the JSON string is invalid with respect to WorkAndRestRules
-
toJson
Convert an instance of WorkAndRestRules to an JSON string- Returns:
- JSON string
-