Package com.veeroute.lss.monitor.model
Class CancelReason
java.lang.Object
com.veeroute.lss.monitor.model.CancelReason
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
date="2026-11-23T13:47:38.388455705+03:00[Europe/Moscow]",
comments="Generator version: 7.17.0")
public class CancelReason
extends Object
Cancellation reason.
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncommentNeeded(Boolean commentNeeded) booleanstatic CancelReasonCreate an instance of CancelReason given an JSON stringReturn the additional (undeclared) property.Return the additional (undeclared) property with the specified name.Whether a comment is required.getGroup()Reason group name.getKey()Reason key, unique within the list.getName()Reason name displayed to the performer.inthashCode()putAdditionalProperty(String key, Object value) Set the additional (undeclared) property with the specified name and value.voidsetCommentNeeded(Boolean commentNeeded) voidvoidvoidtoJson()Convert an instance of CancelReason 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_NAME
- See Also:
-
SERIALIZED_NAME_GROUP
- See Also:
-
SERIALIZED_NAME_COMMENT_NEEDED
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
CancelReason
public CancelReason()
-
-
Method Details
-
key
-
getKey
Reason key, unique within the list.- Returns:
- key
-
setKey
-
name
-
getName
Reason name displayed to the performer.- Returns:
- name
-
setName
-
group
-
getGroup
Reason group name.- Returns:
- group
-
setGroup
-
commentNeeded
-
getCommentNeeded
Whether a comment is required. If `true`, the performer must fill in a text comment (`comment`) when selecting this reason.- Returns:
- commentNeeded
-
setCommentNeeded
-
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 CancelReason 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 CancelReason
-
fromJson
Create an instance of CancelReason given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of CancelReason
- Throws:
IOException- if the JSON string is invalid with respect to CancelReason
-
toJson
Convert an instance of CancelReason to an JSON string- Returns:
- JSON string
-