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, ZonedDateTime expiresAt, Long size, Map<String, Object> additionalProperties) Creates an instance of aDocumentMetadataModelrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theadditionalPropertiesrecord component.Returns the value of thecontentTyperecord 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.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, ZonedDateTime expiresAt, Long size, Map<String, Object> additionalProperties) 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 componentadditionalProperties- the value for theadditionalPropertiesrecord 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
-
additionalProperties
Returns the value of theadditionalPropertiesrecord component.- Returns:
- the value of the
additionalPropertiesrecord component
-