Record Class FileUploadRequest
java.lang.Object
java.lang.Record
org.alfresco.hxi_connector.live_ingester.adapters.messaging.hx_insight.storage.connector.FileUploadRequest
-
Constructor Summary
ConstructorsConstructorDescriptionFileUploadRequest(File file, String contentType, URL storageLocation) Creates an instance of aFileUploadRequestrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecontentTyperecord component.final booleanIndicates whether some other object is "equal to" this one.file()Returns the value of thefilerecord component.final inthashCode()Returns a hash code value for this object.Returns the value of thestorageLocationrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
FileUploadRequest
Creates an instance of aFileUploadRequestrecord class.- Parameters:
file- the value for thefilerecord componentcontentType- the value for thecontentTyperecord componentstorageLocation- the value for thestorageLocationrecord 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). -
file
Returns the value of thefilerecord component.- Returns:
- the value of the
filerecord component
-
contentType
Returns the value of thecontentTyperecord component.- Returns:
- the value of the
contentTyperecord component
-
storageLocation
Returns the value of thestorageLocationrecord component.- Returns:
- the value of the
storageLocationrecord component
-