Package io.camunda.document.api
Record Class DocumentMetadataModel
java.lang.Object
java.lang.Record
io.camunda.document.api.DocumentMetadataModel
-
Constructor Summary
ConstructorsConstructorDescriptionDocumentMetadataModel(String contentType, String fileName, OffsetDateTime expiresAt, Long size, String processDefinitionId, Long processInstanceKey, Map<String, Object> customProperties) Creates an instance of aDocumentMetadataModelrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecontentTyperecord component.Returns the value of thecustomPropertiesrecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of theexpiresAtrecord component.fileName()Returns the value of thefileNamerecord component.final inthashCode()Returns a hash code value for this object.Returns the value of theprocessDefinitionIdrecord component.Returns the value of theprocessInstanceKeyrecord component.size()Returns the value of thesizerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
DocumentMetadataModel
public DocumentMetadataModel(String contentType, String fileName, OffsetDateTime expiresAt, Long size, String processDefinitionId, Long processInstanceKey, Map<String, Object> customProperties) Creates an instance of aDocumentMetadataModelrecord class.- Parameters:
contentType- the value for thecontentTyperecord componentfileName- the value for thefileNamerecord componentexpiresAt- the value for theexpiresAtrecord componentsize- the value for thesizerecord componentprocessDefinitionId- the value for theprocessDefinitionIdrecord componentprocessInstanceKey- the value for theprocessInstanceKeyrecord componentcustomProperties- the value for thecustomPropertiesrecord component
-
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
contentType
Returns the value of thecontentTyperecord component.- Returns:
- the value of the
contentTyperecord component
-
fileName
Returns the value of thefileNamerecord component.- Returns:
- the value of the
fileNamerecord component
-
expiresAt
Returns the value of theexpiresAtrecord component.- Returns:
- the value of the
expiresAtrecord component
-
size
Returns the value of thesizerecord component.- Returns:
- the value of the
sizerecord component
-
processDefinitionId
Returns the value of theprocessDefinitionIdrecord component.- Returns:
- the value of the
processDefinitionIdrecord component
-
processInstanceKey
Returns the value of theprocessInstanceKeyrecord component.- Returns:
- the value of the
processInstanceKeyrecord component
-
customProperties
Returns the value of thecustomPropertiesrecord component.- Returns:
- the value of the
customPropertiesrecord component
-